User tests: Successful: Unsuccessful:
This pull request adds a conditional check before rendering the email form heading in
components/com_contact/tmpl/contact/default.php.
The email form heading (COM_CONTACT_EMAIL_FORM) is currently rendered unconditionally.
This causes the heading to appear even when the email form itself is hidden or disabled.
Examples:
show_email_form is disabled.This leads to unnecessary UI output and inconsistent layout behavior.
The email form heading is now displayed only when:
show_email_form).show_email_heading (default: 1) is enabled.Wrapped the heading inside a new conditional block:
<?php if ($tparams->get('show_email_heading', 1)) : ?>
<<?= $htag2 ?>><?= Text::_('COM_CONTACT_EMAIL_FORM') ?></<?= $htag2 ?>>
<?php endif; ?>| Status | New | ⇒ | Pending |
| Category | ⇒ | Repository Front End com_contact Libraries |
| Status | Pending | ⇒ | Closed |
| Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2025-11-20 06:28:35 |
| Closed_By | ⇒ | sshekhar563 | |
| Labels |
Added:
PR-5.4-dev
|
||