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