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 @@
});
});
});");
+
?>
>
-
+ 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) :
?>
-
escape($this->state->get('list.direction'));
?>
-
items)) : ?>
-
-