Skip to content

Commit f1b51d4

Browse files
authored
Fix underline between icon and link in mod_syndicate (#35560)
1 parent 3cbb87c commit f1b51d4

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

modules/mod_syndicate/tmpl/default.php

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,16 @@
99

1010
defined('_JEXEC') or die;
1111

12+
use Joomla\CMS\HTML\HTMLHelper;
1213
use Joomla\CMS\Language\Text;
1314

14-
?>
15-
<a href="<?php echo $link; ?>" class="mod-syndicate syndicate-module">
16-
<span class="icon-feed" aria-hidden="true"></span>
17-
<?php $class = $params->get('display_text', 1) ? '' : 'class="visually-hidden"'; ?>
18-
<span <?php echo $class; ?>>
19-
<?php if (str_replace(' ', '', $text) !== '') : ?>
20-
<?php echo $text; ?>
21-
<?php else : ?>
22-
<?php echo Text::_('MOD_SYNDICATE_DEFAULT_FEED_ENTRIES'); ?>
23-
<?php endif; ?>
24-
</span>
25-
</a>
15+
$textClass = ($params->get('display_text', 1) ? '' : 'class="visually-hidden"');
16+
17+
$linkText = '<span class="icon-feed m-1" aria-hidden="true"></span>';
18+
$linkText .= '<span ' . $textClass . '>' . (!empty($text) ? $text : Text::_('MOD_SYNDICATE_DEFAULT_FEED_ENTRIES')) . '</span>';
19+
20+
$attribs = [
21+
'class' => 'mod-syndicate syndicate-module'
22+
];
23+
24+
echo HTMLHelper::_('link', $link, $linkText, $attribs);

0 commit comments

Comments
 (0)