diff --git a/src/modules/mod_weblinks/tmpl/default.php b/src/modules/mod_weblinks/tmpl/default.php index 8f34446..e1fd4a7 100644 --- a/src/modules/mod_weblinks/tmpl/default.php +++ b/src/modules/mod_weblinks/tmpl/default.php @@ -11,110 +11,126 @@ defined('_JEXEC') or die; use Joomla\CMS\Language\Text; -?> +if ($params->get('groupby', 0)) : + $cats = []; + $cols = $params->get('groupby_columns', 3); -get('groupby', 0)) : ?> - - get('groupby_columns', 3); ?> - - $l->catid, 'title' => $l->category_title); ?> - - - $cat) : ?> - - - catid == $cat['catid']) : ?> - - - - 1) : ?> - -
- -
- - get('groupby_showtitle', 1)) : ?> -

- - - 1) : ?> -
- -
- - - - - - + echo ''; + + if ($cols > 1) : + echo ''; + + if (($k + 1) % $cols == 0 || $k == count($cats) - 1) : + echo ''; + endif; + + endif; + endforeach; +else : + echo ''; +endif; ?>