11 if (!$this->isBreadcrumb || $lvl==1) {
13 <ul
class=
"<?php echo $this->cssClass; ?> lvl<?php echo $lvl; ?>">
17 foreach ($branch as $index => $item) {
18 if ($this->isBreadcrumb && !(in_array($item[
'contentid'], $this->activePath))){
26 $excludeURLs = Yii::app()->getModule(
'navigation')->excludeURLs;
28 if (empty($url) || in_array($url, $excludeURLs)) {
29 unset($branch[$index]);
33 $hasChildrenClass = !empty($item[
'children']) ?
'has-children' :
'';
34 if (strpos($url,
'http') ===
false) {
35 if (in_array($item[
'contentid'], $this->activePath)) {
36 echo CHtml::link($name, Yii::app()->createUrl($url), array(
'class'=>
'active '.$hasChildrenClass));
38 echo CHtml::link($name, Yii::app()->createUrl($url), array(
'class'=>$hasChildrenClass));
41 echo CHtml::link($name, $url, array(
'class'=>$hasChildrenClass));
45 if (isset($item[
'children']) && (in_array($item[
'contentid'], $this->activePath) || $this->isSitemap) && ($this->maxLvl == 0 || $lvl < $this->maxLvl)) {
46 $this->render(
'_branch', array(
'branch'=>$item[
'children'],
'lvl'=>($lvl+1)));
52 if (!$this->isBreadcrumb || $lvl==1) {