*/ // no direct access defined('_JEXEC') or die; if (empty($this->children)) { ?> no children <?php } else { ?> <h5>Children</h5> <ol> <?php foreach ($this->children as &$item) { ?> <li> <a href="<?php echo JRoute::_(ContactRoute::category($item->slug)); ?> "> <?php echo $this->escape($item->title); ?> </a> </li> <?php } ?> </ol> <?php }
echo "</ul>"; } $curLevel = $item->level; } elseif ($difLevel > 0) { for ($i = 0, $n = $difLevel; $i < $n; $i++) { ?> <ul> <?php } $curLevel = $item->level; } ?> <li> <span class="jitem-title"><a href="<?php echo ContactRoute::category('index.php?option=com_contact&view=category&catid=' . $this->escape($item->slug)); ?> "> <?php echo $this->escape($item->title); ?> </a> </span> <?php if ($item->description) { ?> <div class="jdescription"> <?php echo $item->description; ?> </div>