| @@ 121-130 (lines=10) @@ | ||
| 118 | */ |
|
| 119 | protected function renderMenuItem($item) |
|
| 120 | {
|
|
| 121 | if (isset($item['icon'])) |
|
| 122 | {
|
|
| 123 | if (strpos($item['icon'], 'icon') === false) |
|
| 124 | {
|
|
| 125 | $pieces = explode(' ', $item['icon']);
|
|
| 126 | $item['icon'] = 'icon-'.implode(' icon-', $pieces);
|
|
| 127 | } |
|
| 128 | ||
| 129 | $item['label'] = '<i class="'.$item['icon'].'"></i> '.$item['label']; |
|
| 130 | } |
|
| 131 | ||
| 132 | if (!isset($item['linkOptions'])) |
|
| 133 | $item['linkOptions'] = array(); |
|
| @@ 39-48 (lines=10) @@ | ||
| 36 | */ |
|
| 37 | protected function renderMenuItem($item) |
|
| 38 | {
|
|
| 39 | if (isset($item['icon'])) |
|
| 40 | {
|
|
| 41 | if (strpos($item['icon'], 'icon') === false) |
|
| 42 | {
|
|
| 43 | $pieces = explode(' ', $item['icon']);
|
|
| 44 | $item['icon'] = 'icon-'.implode(' icon-', $pieces);
|
|
| 45 | } |
|
| 46 | ||
| 47 | $item['label'] = '<i class="'.$item['icon'].'"></i> '.$item['label']; |
|
| 48 | } |
|
| 49 | ||
| 50 | if (!isset($item['linkOptions'])) |
|
| 51 | $item['linkOptions'] = array(); |
|