diff --git a/components/com_newsfeeds/views/categories/tmpl/default.php b/components/com_newsfeeds/views/categories/tmpl/default.php index e1f7edb4d1bc4..0f6c60003c28a 100644 --- a/components/com_newsfeeds/views/categories/tmpl/default.php +++ b/components/com_newsfeeds/views/categories/tmpl/default.php @@ -22,10 +22,9 @@ }); }); });"); + ?>
- loadTemplate('items'); - ?> + + loadTemplate('items'); ?>
diff --git a/components/com_newsfeeds/views/categories/tmpl/default_items.php b/components/com_newsfeeds/views/categories/tmpl/default_items.php index a4ca6cd46d97e..7166c1449ecfd 100644 --- a/components/com_newsfeeds/views/categories/tmpl/default_items.php +++ b/components/com_newsfeeds/views/categories/tmpl/default_items.php @@ -11,23 +11,21 @@ JHtml::_('bootstrap.tooltip'); -$class = ' class="first"'; -if ($this->maxLevelcat != 0 && count($this->items[$this->parent->id]) > 0) : ?> + +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())) : - if (!isset($this->items[$this->parent->id][$id + 1])) - { - $class = ' class="last"'; - } - ?> -
> - + params->get('show_empty_categories_cat') || $item->numitems || count($item->getChildren())) : ?> + items[$this->parent->id][$id + 1])) : ?> + + + > + params->get('show_subcat_desc_cat') == 1) : ?> @@ -45,17 +45,14 @@
- getChildren()) > 0 && $this->maxLevelcat > 1) : ?>
- items[$item->id] = $item->getChildren(); - $this->parent = $item; - $this->maxLevelcat--; - echo $this->loadTemplate('items'); - $this->parent = $item->getParent(); - $this->maxLevelcat++; - ?> + items[$item->id] = $item->getChildren(); ?> + parent = $item; ?> + maxLevelcat--; ?> + loadTemplate('items'); ?> + parent = $item->getParent(); ?> + maxLevelcat++; ?>
diff --git a/components/com_newsfeeds/views/category/tmpl/default.php b/components/com_newsfeeds/views/category/tmpl/default.php index 4e55395218831..cfbce91ba219c 100644 --- a/components/com_newsfeeds/views/category/tmpl/default.php +++ b/components/com_newsfeeds/views/category/tmpl/default.php @@ -14,6 +14,7 @@ JHtml::_('formbehavior.chosen', 'select'); $pageClass = $this->params->get('pageclass_sfx'); + ?>
params->get('show_page_heading')) : ?> @@ -26,16 +27,14 @@ category->title, '', 'com_newsfeeds.category.title'); ?> - params->get('show_tags', 1) && !empty($this->category->tags->itemTags)) : ?> category->tagLayout = new JLayoutFile('joomla.content.tags'); ?> category->tagLayout->render($this->category->tags->itemTags); ?> - params->get('show_description', 1) || $this->params->def('show_description_image', 1)) : ?>
params->get('show_description_image') && $this->category->getParams()->get('image')) : ?> - + params->get('show_description') && $this->category->description) : ?> category->description, '', 'com_newsfeeds.category'); ?> @@ -43,12 +42,12 @@
- loadTemplate('items'); ?> - maxLevel != 0 && !empty($this->children[$this->category->id])) : ?>
-

+

+ +

loadTemplate('children'); ?>
diff --git a/components/com_newsfeeds/views/category/tmpl/default_children.php b/components/com_newsfeeds/views/category/tmpl/default_children.php index 686a3233d6032..f8bec6ef57fcf 100644 --- a/components/com_newsfeeds/views/category/tmpl/default_children.php +++ b/components/com_newsfeeds/views/category/tmpl/default_children.php @@ -9,49 +9,49 @@ defined('_JEXEC') or die; -$class = ' class="first"'; -if ($this->maxLevel != 0 && count($this->children[$this->category->id]) > 0) : ?> -