From 5f8f6cc0ccd64ee2be039f227505acd8233834fe Mon Sep 17 00:00:00 2001 From: SharkyKZ Date: Thu, 7 Jun 2018 11:17:08 +0300 Subject: [PATCH 1/2] Don't hide filter form --- .../views/category/tmpl/default_items.php | 233 +++++++++--------- 1 file changed, 118 insertions(+), 115 deletions(-) diff --git a/src/components/com_weblinks/views/category/tmpl/default_items.php b/src/components/com_weblinks/views/category/tmpl/default_items.php index c49b298..d0aac0c 100644 --- a/src/components/com_weblinks/views/category/tmpl/default_items.php +++ b/src/components/com_weblinks/views/category/tmpl/default_items.php @@ -29,143 +29,146 @@ $listOrder = $this->escape($this->state->get('list.ordering')); $listDirn = $this->escape($this->state->get('list.direction')); ?> -items)) : ?> -

- -
params->get('filter_field') != 'hide' || $this->params->get('show_pagination_limit')) : ?> -
- params->get('filter_field') != 'hide') : ?> -
- - -
- +
+ params->get('filter_field') != 'hide') : ?> +
+ + +
+ - params->get('show_pagination_limit')) : ?> -
- - pagination->getLimitBox(); ?> -
- -
+ params->get('show_pagination_limit')) : ?> +
+ + pagination->getLimitBox(); ?> +
+ +
+ + items)) : ?> +

+ + - - params->get('show_pagination')) : ?> + params->get('show_pagination')) : ?> - -
- + pagination->getPagesLinks(); ?> + + + From d1e941f581e17892b7a3cdf6ba2dbdd223257e2a Mon Sep 17 00:00:00 2001 From: Tuan Pham Ngoc Date: Wed, 18 Aug 2021 16:05:20 +0700 Subject: [PATCH 2/2] Resolve conflicts --- .../com_weblinks/views/category/tmpl/default_items.php | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/components/com_weblinks/views/category/tmpl/default_items.php b/src/components/com_weblinks/views/category/tmpl/default_items.php index d0aac0c..877d265 100644 --- a/src/components/com_weblinks/views/category/tmpl/default_items.php +++ b/src/components/com_weblinks/views/category/tmpl/default_items.php @@ -13,9 +13,6 @@ JHtml::addIncludePath(JPATH_COMPONENT . '/helpers/html'); JHtml::_('behavior.framework'); -// Create a shortcut for params. -$params = &$this->item->params; - // Get the user object. $user = JFactory::getUser(); @@ -69,7 +66,7 @@ $listDirn = $this->escape($this->state->get('list.direction')); - + params); ?> @@ -123,9 +120,8 @@ $listDirn = $this->escape($this->state->get('list.direction')); ?> tags->getItemTags('com_weblinks.weblink', $item->id); ?> - params->get('show_tags', 1)) : ?> - item->tagLayout = new JLayoutFile('joomla.content.tags'); ?> - item->tagLayout->render($tagsData); ?> + params->get('show_tags', 1) && !empty($item->tags->itemTags)) : ?> + tags->itemTags); ?> params->get('show_link_description')) && ($item->description != '')) : ?> images); ?>