Commits

Christoffer Niska  committed 997f9e9

added support for vertical divider in menus

  • Participants
  • Parent commits d23364b
  • Branches 1.0.0-wip

Comments (0)

Files changed (2)

File demo/protected/views/site/index.php

 					array('label'=>'Link', 'url'=>'#'),
 					array('label'=>'Link', 'url'=>'#'),
 					array('label'=>'Dropdown', 'url'=>'#', 'items'=>array(
-						array('label'=>'DROPDOWN HEADER'),
 						array('label'=>'Action', 'url'=>'#'),
 						array('label'=>'Another action', 'url'=>'#'),
 						array('label'=>'Something else here', 'url'=>'#'),
 						'---',
+						array('label'=>'NAV HEADER'),
 						array('label'=>'Separated link', 'url'=>'#'),
+						array('label'=>'One more separated link', 'url'=>'#'),
 					)),
 				),
 			),
 				'htmlOptions'=>array('class'=>'pull-right'),
 				'items'=>array(
 					array('label'=>'Link', 'url'=>'#'),
+					'---',
 					array('label'=>'Dropdown', 'url'=>'#', 'items'=>array(
-						array('label'=>'DROPDOWN HEADER'),
 						array('label'=>'Action', 'url'=>'#'),
 						array('label'=>'Another action', 'url'=>'#'),
 						array('label'=>'Something else here', 'url'=>'#'),
 				array('label'=>'Home', 'url'=>'#', 'active'=>true),
 				array('label'=>'Link', 'url'=>'#'),
 				array('label'=>'Dropdown', 'url'=>'#', 'items'=>array(
-					array('label'=>'DROPDOWN HEADER'),
 					array('label'=>'Action', 'url'=>'#'),
 					array('label'=>'Another action', 'url'=>'#'),
 					array('label'=>'Something else here', 'url'=>'#'),
 					'---',
+					array('label'=>'NAV HEADER'),
 					array('label'=>'Separated link', 'url'=>'#'),
+					array('label'=>'One more separated link', 'url'=>'#'),
 				)),
 			),
 		),
 			'htmlOptions'=>array('class'=>'pull-right'),
 			'items'=>array(
 				array('label'=>'Link', 'url'=>'#'),
+				'---',
 				array('label'=>'Dropdown', 'url'=>'#', 'items'=>array(
-					array('label'=>'DROPDOWN HEADER'),
 					array('label'=>'Action', 'url'=>'#'),
 					array('label'=>'Another action', 'url'=>'#'),
 					array('label'=>'Something else here', 'url'=>'#'),

File widgets/BootMenu.php

 		foreach ($items as $item)
 		{
 			if (!is_array($item))
-				echo '<li class="divider"></li>';
+				echo '<li class="divider-vertical"></li>';
 			else
 			{
 				if (!isset($item['itemOptions']))