diff --git a/src/components/com_weblinks/tmpl/weblink/default.php b/src/components/com_weblinks/tmpl/weblink/default.php index 65b3a36..ade2317 100644 --- a/src/components/com_weblinks/tmpl/weblink/default.php +++ b/src/components/com_weblinks/tmpl/weblink/default.php @@ -10,6 +10,7 @@ defined('_JEXEC') or die; use Joomla\CMS\Factory; +use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\String\PunycodeHelper; $weblinkUrl = PunycodeHelper::urlToUTF8($this->item->url); @@ -29,7 +30,52 @@ $weblinkUrl = PunycodeHelper::urlToUTF8($this->item->url); - item->description; ?> + + params->get('show_link_description')) && ($this->item->description != '')) : ?> +
+ item->images); ?> + image_first)) : ?> + float_first)) : + $imgFloat = $images->float_first == 'right' ? 'float-end' : 'float-start'; + endif; + $img = HTMLHelper::cleanImageURL($images->image_first); + $alt = empty($images->image_first_alt) && empty($images->image_first_alt_empty) + ? '' + : 'alt="' . htmlspecialchars($images->image_first_alt, ENT_COMPAT, 'UTF-8') . '"'; + ?> +
+ itemprop="thumbnail" /> + image_first_caption)) : ?> +
image_first_caption, ENT_COMPAT, 'UTF-8'); ?>
+ +
+ + + image_second)) : ?> + float_second)) : + $imgFloat = $images->float_second == 'right' ? 'float-end' : 'float-start'; + endif; + $img = HTMLHelper::cleanImageURL($images->image_second); + $alt = empty($images->image_first_alt) && empty($images->image_second_alt_empty) + ? '' + : 'alt="' . htmlspecialchars($images->image_second_alt, ENT_COMPAT, 'UTF-8') . '"'; + ?> +
+ itemprop="thumbnail" /> + image_second_caption)) : ?> +
image_second_caption, ENT_COMPAT, 'UTF-8'); ?>
+ +
+ + + item->description; ?> + +
+ item->event->afterDisplayContent; ?>