Browse Source

Change condition

tags/2.0.0-beta
Thiago Talma 11 years ago
parent
commit
286f040873
  1. 2
      Dropdown.php

2
Dropdown.php

@ -84,7 +84,7 @@ class Dropdown extends Widget
$linkOptions = ArrayHelper::getValue($item, 'linkOptions', []); $linkOptions = ArrayHelper::getValue($item, 'linkOptions', []);
$linkOptions['tabindex'] = '-1'; $linkOptions['tabindex'] = '-1';
$content = Html::a($label, ArrayHelper::getValue($item, 'url', '#'), $linkOptions); $content = Html::a($label, ArrayHelper::getValue($item, 'url', '#'), $linkOptions);
if (isset($item['items']) && is_array($item['items'])) { if (!empty($item['items'])) {
$content .= $this->renderItems($item['items']); $content .= $this->renderItems($item['items']);
Html::addCssClass($options, 'dropdown-submenu'); Html::addCssClass($options, 'dropdown-submenu');
} }

Loading…
Cancel
Save