You have to move the entire "if" block. It terminates with "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:
<?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; ?>
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