Quantcast
Channel: Joomla! Forum - community, help and support
Viewing all articles
Browse latest Browse all 2145

Administration Joomla! 4.x • Re: Contact form miscellaneous information first

$
0
0
You have to move the entire "if" block. It terminates with "endif":

Code:

    <?php if ($this->item->misc && $tparams->get('show_misc')) : ?>        <?php echo '<' . $htag2 . '>' . Text::_('COM_CONTACT_OTHER_INFORMATION') . '</' . $htag2 . '>'; ?>        <div class="com-contact__miscinfo contact-miscinfo">            <dl class="dl-horizontal">                <dt>                    <?php if (!$this->params->get('marker_misc')) : ?>                        <span class="icon-info-circle" aria-hidden="true"></span>                        <span class="visually-hidden"><?php echo Text::_('COM_CONTACT_OTHER_INFORMATION'); ?></span>                    <?php else : ?>                        <span class="<?php echo $this->params->get('marker_class'); ?>">                            <?php echo $this->params->get('marker_misc'); ?>                        </span>                    <?php endif; ?>                </dt>                <dd>                    <span class="contact-misc">                        <?php echo $this->item->misc; ?>                    </span>                </dd>            </dl>        </div>    <?php endif; ?>
To have it appear in the form block, you'd have move the code from default.php to default_form.php. Also copy the used variables. They should be placed somewhere before the misc code:

Code:

$tparams = $this->item->params;$htag2   = ($tparams->get('show_page_heading') && $tparams->get('show_name')) ? 'h3' : 'h2';

Statistics: Posted by SharkyKZ — Fri May 03, 2024 5:27 am



Viewing all articles
Browse latest Browse all 2145

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>