From 95b07343a9b565ce05fc83a177a1aacf3a4911be Mon Sep 17 00:00:00 2001 From: chmst Date: Sat, 25 Sep 2021 23:32:56 +0200 Subject: [PATCH 1/4] repeat adapting to com_categories --- .../tmpl/categories/default_items.php | 64 ++++++++++--------- 1 file changed, 34 insertions(+), 30 deletions(-) diff --git a/src/components/com_weblinks/tmpl/categories/default_items.php b/src/components/com_weblinks/tmpl/categories/default_items.php index 6417cc4..fad8cd7 100644 --- a/src/components/com_weblinks/tmpl/categories/default_items.php +++ b/src/components/com_weblinks/tmpl/categories/default_items.php @@ -16,18 +16,20 @@ use Joomla\Component\Weblinks\Site\Helper\RouteHelper; if ($this->maxLevelcat != 0 && count($this->items[$this->parent->id]) > 0) : ?> - items[$this->parent->id] as $id => $item) : ?> - params->get('show_empty_categories_cat') || $item->numitems || count($item->getChildren())) : ?> - - - + + From 9f53917bf7985daa0e9c288a3b0213451b84a226 Mon Sep 17 00:00:00 2001 From: chmst Date: Sat, 25 Sep 2021 23:46:01 +0200 Subject: [PATCH 2/4] move expand button to the end of a category description --- .../tmpl/categories/default_items.php | 21 +++++++++---------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/src/components/com_weblinks/tmpl/categories/default_items.php b/src/components/com_weblinks/tmpl/categories/default_items.php index fad8cd7..8857aeb 100644 --- a/src/components/com_weblinks/tmpl/categories/default_items.php +++ b/src/components/com_weblinks/tmpl/categories/default_items.php @@ -30,7 +30,16 @@ if ($this->maxLevelcat != 0 && count($this->items[$this->parent->id]) > 0) : - maxLevelcat > 1 && count($item->getChildren()) > 0) : ?> + params->get('show_subcat_desc_cat') == 1) : ?> + description) : ?> +
+ description, '', 'com_weblinks.categories'); ?> +
+ + + params->get('show_description_image') && $item->getParams()->get('image')) : ?> + <?php echo htmlspecialchars($item->getParams()->get('image_alt'), ENT_COMPAT, 'UTF-8'); ?> + maxLevelcat > 1 && count($item->getChildren()) > 0) : ?> - params->get('show_subcat_desc_cat') == 1) : ?> - description) : ?> -
- description, '', 'com_weblinks.categories'); ?> -
- - - params->get('show_description_image') && $item->getParams()->get('image')) : ?> - <?php echo htmlspecialchars($item->getParams()->get('image_alt'), ENT_COMPAT, 'UTF-8'); ?> - maxLevelcat > 1 && count($item->getChildren()) > 0) : ?>