diff --git a/components/com_contact/views/categories/tmpl/default_items.php b/components/com_contact/views/categories/tmpl/default_items.php index 2d718bf1f5c83..a09b2520274d5 100644 --- a/components/com_contact/views/categories/tmpl/default_items.php +++ b/components/com_contact/views/categories/tmpl/default_items.php @@ -12,33 +12,31 @@ JHtml::_('bootstrap.tooltip'); $class = ' class="first"'; -if (count($this->items[$this->parent->id]) > 0 && $this->maxLevelcat != 0) : ?> + +items[$this->parent->id]) > 0 && $this->maxLevelcat != 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) :?> + params->get('show_subcat_desc_cat') == 1) : ?> description) : ?>
description, '', 'com_contact.categories'); ?> @@ -46,18 +44,17 @@ - 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++; - ?> + getChildren()) > 0 && $this->maxLevelcat > 1) : ?> +
+ items[$item->id] = $item->getChildren(); ?> + parent = $item; ?> + maxLevelcat--; ?> + loadTemplate('items'); ?> + parent = $item->getParent(); ?> + maxLevelcat++; ?>
- + +