Skip to content

Commit

Permalink
Merge pull request #942 from co11ter/master
Browse files Browse the repository at this point in the history
Update TbBaseMenu.php
  • Loading branch information
hijarian committed Nov 12, 2015
2 parents eeb0cb3 + cd8447a commit 1cebac6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/widgets/TbBaseMenu.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ protected function renderMenu($items) {
*/
protected function renderMenuItem($item) {

if($this->linkLabelWrapper !== null) {
$item['label'] = CHtml::tag($this->linkLabelWrapper, $this->linkLabelWrapperHtmlOptions, $item['label']);
}
if (isset($item['icon'])) {
if (strpos($item['icon'], 'icon') === false && strpos($item['icon'], 'fa') === false) {
$item['icon'] = 'glyphicon glyphicon-' . implode(' glyphicon-', explode(' ', $item['icon']));
Expand Down

0 comments on commit 1cebac6

Please sign in to comment.