Commits

Dirk Adler committed 59bea15

Added support for white icons in BootMenu and BootButtonColumn

Comments (0)

Files changed (2)

widgets/BootButtonColumn.php

 		if (isset($button['icon']))
 		{
 			if (strpos($button['icon'], 'icon') === false)
-				$button['icon'] = 'icon-'.$button['icon'];
+                $button['icon'] = 'icon-'.implode(' icon-', explode(' ', $button['icon']));
 
 			echo CHtml::link('<i class="'.$button['icon'].'"></i>', $url, $options);
 		}

widgets/BootMenu.php

 	{
 		if (isset($item['icon'])) {
 			if (strpos($item['icon'], 'icon') === false)
-				$item['icon'] = 'icon-'.$item['icon'];
+                $item['icon'] = 'icon-'.implode(' icon-', explode(' ', $item['icon']));
 
 			$item['label'] = '<i class="'.$item['icon'].'"></i> '.$item['label'];
 		}