Commit d6788a9b by niskac

fixed BootMenu to display the correct divider when type is set to 'list'

parent fc68bf51
......@@ -27,6 +27,14 @@ abstract class BootBaseMenu extends CWidget
public $htmlOptions = array();
/**
* Initializes the widget.
*/
public function init()
{
$this->htmlOptions['id'] = $this->getId();
}
/**
* Runs the widget.
*/
public function run()
......
......@@ -85,7 +85,10 @@ class BootMenu extends BootBaseMenu
foreach ($items as $item)
{
if (!is_array($item))
echo '<li class="divider-vertical"></li>';
{
$class = $this->type !== self::TYPE_LIST ? 'divider-vertical' : 'divider';
echo '<li class="'.$class.'"></li>';
}
else
{
if (!isset($item['itemOptions']))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment