From 0f3af5e64452cf87da003f7e0c4cbb6686443040 Mon Sep 17 00:00:00 2001 From: Brian Teeman Date: Sun, 27 Sep 2020 10:14:25 +0100 Subject: [PATCH] [4.0] mod_article_news readmore (#30780) This PR simply changes the Article News module to use the existing joomla.content.readmore layout --- modules/mod_articles_news/tmpl/_item.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/mod_articles_news/tmpl/_item.php b/modules/mod_articles_news/tmpl/_item.php index 9ecaeda6c0c92..1248fea7c8161 100644 --- a/modules/mod_articles_news/tmpl/_item.php +++ b/modules/mod_articles_news/tmpl/_item.php @@ -8,6 +8,8 @@ */ defined('_JEXEC') or die; + +use Joomla\CMS\Layout\LayoutHelper; ?> get('item_title')) : ?> @@ -23,7 +25,7 @@ > -get('img_intro_full') !== 'none' && !empty($item->imageSrc)) : ?> +get('img_intro_full') !== 'none' && !empty($item->imageSrc)) : ?>
<?php echo $item->imageAlt; ?> imageCaption)) : ?> @@ -47,5 +49,5 @@ afterDisplayContent; ?> link) && $item->readmore != 0 && $params->get('readmore')) : ?> - link . '">' . $item->linkText . ''; ?> + $item, 'params' => $item->params, 'link' => $item->link)); ?>