|
10 | 10 | defined('_JEXEC') or die; |
11 | 11 |
|
12 | 12 | use Joomla\CMS\HTML\HTMLHelper; |
13 | | -use Joomla\CMS\Layout\LayoutHelper; |
14 | 13 |
|
15 | 14 | // Note that there are certain parts of this layout used only when there is exactly one tag. |
16 | 15 | $isSingleTag = count($this->item) === 1; |
|
36 | 35 | <div class="com-tags-tag__description category-desc"> |
37 | 36 | <?php $images = json_decode($this->item[0]->images); ?> |
38 | 37 | <?php if ($this->params->get('tag_list_show_tag_image', 1) == 1 && !empty($images->image_fulltext)) : ?> |
39 | | - <?php echo LayoutHelper::render('joomla.html.image', ['src' => $images->image_fulltext, 'alt' => $images->image_fulltext_alt]); ?> |
| 38 | + <?php echo HTMLHelper::_('image', $images->image_fulltext, $images->image_fulltext_alt); ?> |
40 | 39 | <?php endif; ?> |
41 | 40 | <?php if ($this->params->get('tag_list_show_tag_description') == 1 && $this->item[0]->description) : ?> |
42 | 41 | <?php echo HTMLHelper::_('content.prepare', $this->item[0]->description, '', 'com_tags.tag'); ?> |
|
47 | 46 | <?php // If there are multiple tags and a description or image has been supplied use that. ?> |
48 | 47 | <?php if ($this->params->get('tag_list_show_tag_description', 1) || $this->params->get('show_description_image', 1)) : ?> |
49 | 48 | <?php if ($this->params->get('show_description_image', 1) == 1 && $this->params->get('tag_list_image')) : ?> |
50 | | - <?php echo LayoutHelper::render('joomla.html.image', ['src' => $this->params->get('tag_list_image'), 'alt' => empty($this->params->get('tag_list_image_alt')) && empty($this->params->get('tag_list_image_alt_empty')) ? false : $this->params->get('tag_list_image_alt')]); ?> |
| 49 | + <?php echo HTMLHelper::_('image', $this->params->get('tag_list_image'), empty($this->params->get('tag_list_image_alt')) && empty($this->params->get('tag_list_image_alt_empty')) ? false : $this->params->get('tag_list_image_alt')); ?> |
51 | 50 | <?php endif; ?> |
52 | 51 | <?php if ($this->params->get('tag_list_description', '') > '') : ?> |
53 | 52 | <?php echo HTMLHelper::_('content.prepare', $this->params->get('tag_list_description'), '', 'com_tags.tag'); ?> |
|
0 commit comments