10 Yii::import(
'booster.widgets.TbBaseMenu');
64 $classes = array(
'nav');
66 $validTypes = array(self::TYPE_TABS, self::TYPE_PILLS, self::TYPE_LIST, self::TYPE_NAVBAR);
68 if (isset($this->type) && in_array($this->type, $validTypes)) {
69 $classes[] = $this->type === self::TYPE_NAVBAR ?
'navbar-nav' :
'nav-' .
$this->type;
72 if ($this->stacked && $this->type !== self::TYPE_LIST) {
73 $classes[] =
'nav-stacked';
76 if ($this->justified && $this->type !== self::TYPE_LIST) {
77 $classes[] =
'nav-justified';
80 if ($this->dropup ===
true) {
81 $classes[] =
'dropup';
84 if (isset($this->scrollspy)) {
86 $this->widget(
'booster.widgets.TbScrollSpy',
$scrollspy);
89 if (!empty($classes)) {
90 $classes = implode(
' ', $classes);
91 if (isset($this->htmlOptions[
'class'])) {
92 $this->htmlOptions[
'class'] .=
' ' . $classes;
94 $this->htmlOptions[
'class'] = $classes;
108 return (isset($this->type) && $this->type === self::TYPE_LIST) ?
'nav-divider' :
'divider-vertical';