PATH:
home
/
letacommog
/
letaweb
/
protected
/
widgets
<?php Yii::import('zii.widgets.CMenu'); class CAdminMenu extends CMenu { protected function renderMenuItem($item) { if (isset($item['url'])) { $label = $this->linkLabelWrapper === null ? $item['label'] : CHtml::tag($this->linkLabelWrapper, $this->linkLabelWrapperHtmlOptions, $item['label']); $icon = ''; if (isset($item['icon'])) { $icon = '<span class="icon"><i class="fa fa-'.$item['icon'].'"></i></span>'; } return CHtml::link($icon.$label, $item['url'], isset($item['linkOptions']) ? $item['linkOptions'] : array()); } else { return CHtml::tag('span', isset($item['linkOptions']) ? $item['linkOptions'] : array(), $item['label']); } } }
[+]
..
[-] CAdminMenu.php
[edit]