|
|
@ -177,7 +177,9 @@ class Nav extends Widget |
|
|
|
$active = $this->isItemActive($item); |
|
|
|
$active = $this->isItemActive($item); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (!empty($items)) { |
|
|
|
if (empty($items)) { |
|
|
|
|
|
|
|
$items = ''; |
|
|
|
|
|
|
|
} else { |
|
|
|
$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,10 +194,6 @@ class Nav extends Widget |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (empty($items)) { |
|
|
|
|
|
|
|
$items = ''; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ($this->activateItems && $active) { |
|
|
|
if ($this->activateItems && $active) { |
|
|
|
Html::addCssClass($options, 'active'); |
|
|
|
Html::addCssClass($options, 'active'); |
|
|
|
} |
|
|
|
} |
|
|
|