diff --git a/components/com_content/views/category/tmpl/blog_children.php b/components/com_content/views/category/tmpl/blog_children.php index c68fdb575a7cb..645704e9a7746 100644 --- a/components/com_content/views/category/tmpl/blog_children.php +++ b/components/com_content/views/category/tmpl/blog_children.php @@ -11,71 +11,75 @@ JHtml::_('bootstrap.tooltip'); -$class = ' class="first"'; -$lang = JFactory::getLanguage(); +$class = ' class="first"'; +$lang = JFactory::getLanguage(); +$user = JFactory::getUser(); +$groups = $user->getAuthorisedViewLevels(); if ($this->maxLevel != 0 && count($this->children[$this->category->id]) > 0) : ?> children[$this->category->id] as $id => $child) : ?> - params->get('show_empty_categories') || $child->numitems || count($child->getChildren())) : - if (!isset($this->children[$this->category->id][$id + 1])) : - $class = ' class="last"'; - endif; - ?> - > - - isRtl()) : ?> - - - - - - params->get('show_subcat_desc') == 1) : ?> - description) : ?> -
- description, '', 'com_content.category'); ?> -
- - - - maxLevel > 1 && count($child->getChildren()) > 0) : ?> -
- children[$child->id] = $child->getChildren(); - $this->category = $child; - $this->maxLevel--; - echo $this->loadTemplate('children'); - $this->category = $child->getParent(); - $this->maxLevel++; - ?>
- diff --git a/components/com_content/views/category/tmpl/default_children.php b/components/com_content/views/category/tmpl/default_children.php index a950123454398..6f36899dc9d9f 100644 --- a/components/com_content/views/category/tmpl/default_children.php +++ b/components/com_content/views/category/tmpl/default_children.php @@ -11,71 +11,78 @@ JHtml::_('bootstrap.tooltip'); -$class = ' class="first"'; -$lang = JFactory::getLanguage(); +$class = ' class="first"'; +$lang = JFactory::getLanguage(); +$user = JFactory::getUser(); +$groups = $user->getAuthorisedViewLevels(); ?> children[$this->category->id]) > 0) : ?> + children[$this->category->id] as $id => $child) : ?> - params->get('show_empty_categories') || $child->getNumItems(true) || count($child->getChildren())) : - if (!isset($this->children[$this->category->id][$id + 1])) : - $class = ' class="last"'; - endif; - ?> + + access, $groups)) : ?> + params->get('show_empty_categories') || $child->getNumItems(true) || count($child->getChildren())) : + if (!isset($this->children[$this->category->id][$id + 1])) : + $class = ' class="last"'; + endif; + ?> - > - - isRtl()) : ?> - - - - params->get('show_subcat_desc') == 1) : ?> - description) : ?> -
- description, '', 'com_content.category'); ?> +
+ children[$child->id] = $child->getChildren(); + $this->category = $child; + $this->maxLevel--; + echo $this->loadTemplate('children'); + $this->category = $child->getParent(); + $this->maxLevel++; + ?>
- - - getChildren()) > 0 && $this->maxLevel > 1) : ?> -
- children[$child->id] = $child->getChildren(); - $this->category = $child; - $this->maxLevel--; - echo $this->loadTemplate('children'); - $this->category = $child->getParent(); - $this->maxLevel++; - ?>
- -
+ diff --git a/templates/beez3/html/com_content/category/blog_children.php b/templates/beez3/html/com_content/category/blog_children.php index 8b436743bfcd4..2ba4c9d94cefc 100644 --- a/templates/beez3/html/com_content/category/blog_children.php +++ b/templates/beez3/html/com_content/category/blog_children.php @@ -12,56 +12,62 @@ $app = JFactory::getApplication(); $templateparams = $app->getTemplate(true)->params; -$class = ' class="first"'; +$class = ' class="first"'; +$user = JFactory::getUser(); +$groups = $user->getAuthorisedViewLevels(); ?> - children[$this->category->id]) > 0) : ?> - diff --git a/templates/beez3/html/com_content/category/default_children.php b/templates/beez3/html/com_content/category/default_children.php index a529f39e5526f..43cf3d87d146f 100644 --- a/templates/beez3/html/com_content/category/default_children.php +++ b/templates/beez3/html/com_content/category/default_children.php @@ -12,59 +12,63 @@ $app = JFactory::getApplication(); $templateparams = $app->getTemplate(true)->params; - - -$class = ' class="first"'; +$class = ' class="first"'; +$user = JFactory::getUser(); +$groups = $user->getAuthorisedViewLevels(); ?> children[$this->category->id]) > 0) :?> +