11 if (!$this->isBreadcrumb || $lvl==1) {
13 <ul
class=
"<?php echo $this->cssClass; ?> lvl<?php echo $lvl; ?>">
17 foreach ($branch as $item) {
18 if ($this->isBreadcrumb && !(in_array($item[
'contentid'], $this->activePath))){
24 $name = !empty($item[
'attributes'][
'name_'.$this->lang]) ? $item[
'attributes'][
'name_'.$this->lang] : $item[
'attributes'][
'name'];
25 $url = isset($item[
'attributes'][
'startpageurl_'.$this->lang]) ? $item[
'attributes'][
'startpageurl_'.$this->lang] : (isset($item[
'attributes'][
'startpageurl']) ? $item[
'attributes'][
'startpageurl'] :
'');
27 $hasChildrenClass = !empty($item[
'children']) ?
'has-children' :
'';
28 if (strpos($url,
'http') ===
false) {
29 if (in_array($item[
'contentid'], $this->activePath)) {
30 echo CHtml::link($name, Yii::app()->createUrl($url), array(
'class'=>
'active '.$hasChildrenClass));
32 echo CHtml::link($name, Yii::app()->createUrl($url), array(
'class'=>$hasChildrenClass));
35 echo CHtml::link($name, $url, array(
'class'=>$hasChildrenClass));
39 if (isset($item[
'children']) && (in_array($item[
'contentid'], $this->activePath) || $this->isSitemap) && ($this->maxLvl == 0 || $lvl < $this->maxLvl)) {
40 $this->render(
'_branch', array(
'branch'=>$item[
'children'],
'lvl'=>($lvl+1)));
46 if (!$this->isBreadcrumb || $lvl==1) {