From a81d79c2c72604fb6fe1a72371361648da1bb422 Mon Sep 17 00:00:00 2001 From: Rick R2H Date: Fri, 27 Sep 2024 09:55:30 +0200 Subject: [PATCH] Update read more to use jlayout --- modules/mod_articles/tmpl/default_items.php | 24 ++++++--------------- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/modules/mod_articles/tmpl/default_items.php b/modules/mod_articles/tmpl/default_items.php index bbbeb46ea6b7b..22d61b21904ab 100644 --- a/modules/mod_articles/tmpl/default_items.php +++ b/modules/mod_articles/tmpl/default_items.php @@ -31,7 +31,7 @@
get('item_title') || $displayInfo || $params->get('show_tags') || $params->get('show_introtext') || $params->get('show_readmore')) : ?> -
+
get('item_title')) : ?> get('item_heading', 'h4'); ?> @@ -106,22 +106,12 @@ displayIntrotext; ?> - get('show_readmore')) : ?> -

- - '; ?> - alternative_readmore) : ?> - alternative_readmore; ?> - get('show_readmore_title', 0)) : ?> - title, $params->get('readmore_limit')) - ); ?> - - - - -

+ link) && $item->readmore != 0 && $params->get('show_readmore')) : ?> + get('show_readmore_title', '') !== '') : ?> + params->set('show_readmore_title', $params->get('show_readmore_title')); ?> + params->set('readmore_limit', $params->get('readmore_limit')); ?> + + $item, 'params' => $item->params, 'link' => $item->link]); ?>