File tree Expand file tree Collapse file tree 1 file changed +11
-12
lines changed
modules/mod_syndicate/tmpl Expand file tree Collapse file tree 1 file changed +11
-12
lines changed Original file line number Diff line number Diff line change 99
1010defined ('_JEXEC ' ) or die;
1111
12+ use Joomla \CMS \HTML \HTMLHelper ;
1213use 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 );
You can’t perform that action at this time.
0 commit comments