|
|
@ -177,7 +177,7 @@ class Nav extends Widget |
|
|
|
$active = $this->isItemActive($item); |
|
|
|
$active = $this->isItemActive($item); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if ($items !== null) { |
|
|
|
if (!empty($items)) { |
|
|
|
$linkOptions['data-toggle'] = 'dropdown'; |
|
|
|
$linkOptions['data-toggle'] = 'dropdown'; |
|
|
|
Html::addCssClass($options, ['widget' => 'dropdown']); |
|
|
|
Html::addCssClass($options, ['widget' => 'dropdown']); |
|
|
|
Html::addCssClass($linkOptions, ['widget' => 'dropdown-toggle']); |
|
|
|
Html::addCssClass($linkOptions, ['widget' => 'dropdown-toggle']); |
|
|
@ -192,6 +192,10 @@ class Nav extends Widget |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (empty($items)) { |
|
|
|
|
|
|
|
$items = ''; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if ($this->activateItems && $active) { |
|
|
|
if ($this->activateItems && $active) { |
|
|
|
Html::addCssClass($options, 'active'); |
|
|
|
Html::addCssClass($options, 'active'); |
|
|
|
} |
|
|
|
} |
|
|
|