1
|
<?php
|
2
|
/**
|
3
|
* @package Warp Theme Framework
|
4
|
* @author YOOtheme http://www.yootheme.com
|
5
|
* @copyright Copyright (C) YOOtheme GmbH
|
6
|
* @license http://www.gnu.org/licenses/gpl.html GNU/GPL
|
7
|
*/
|
8
|
|
9
|
// no direct access
|
10
|
defined('_JEXEC') or die;
|
11
|
|
12
|
?>
|
13
|
|
14
|
<?php if (count($this->items[$this->parent->id]) > 0 && $this->maxLevelcat != 0) : ?>
|
15
|
<ul>
|
16
|
<?php foreach($this->items[$this->parent->id] as $id => $item) : ?>
|
17
|
<?php if ($this->params->get('show_empty_categories_cat') || $item->numitems || count($item->getChildren())) : ?>
|
18
|
<li>
|
19
|
<a href="<?php echo JRoute::_(ContactHelperRoute::getCategoryRoute($item->id));?>"><?php echo $this->escape($item->title); ?></a>
|
20
|
|
21
|
<?php if ($this->params->get('show_cat_items_cat') == 1) : ?>
|
22
|
<small>(<?php echo $item->numitems; ?>)</small>
|
23
|
<?php endif; ?>
|
24
|
|
25
|
<?php if (($this->params->get('show_subcat_desc_cat') == 1) && $item->description) : ?>
|
26
|
<div><?php echo JHtml::_('content.prepare', $item->description, '', 'com_contact.categories'); ?></div>
|
27
|
<?php endif; ?>
|
28
|
|
29
|
<?php
|
30
|
if (count($item->getChildren()) > 0) {
|
31
|
$this->items[$item->id] = $item->getChildren();
|
32
|
$this->parent = $item;
|
33
|
$this->maxLevelcat--;
|
34
|
echo $this->loadTemplate('items');
|
35
|
$this->parent = $item->getParent();
|
36
|
$this->maxLevelcat++;
|
37
|
}
|
38
|
?>
|
39
|
</li>
|
40
|
<?php endif; ?>
|
41
|
<?php endforeach; ?>
|
42
|
</ul>
|
43
|
<?php endif;
|