Commit 48a9eb4e by Alexander Makarov

Merge pull request #1552 from Alex-Code/bootstrap-navbar

Allow multiple navbars
parents b62b4eae 5fa2d6d3
...@@ -76,7 +76,7 @@ class NavBar extends Widget ...@@ -76,7 +76,7 @@ class NavBar extends Widget
} }
echo Html::endTag('div'); echo Html::endTag('div');
echo Html::beginTag('div', ['class' => 'collapse navbar-collapse navbar-ex1-collapse']); echo Html::beginTag('div', ['class' => "collapse navbar-collapse navbar-{$this->options['id']}-collapse"]);
} }
/** /**
...@@ -102,7 +102,7 @@ class NavBar extends Widget ...@@ -102,7 +102,7 @@ class NavBar extends Widget
return Html::button("{$screenReader}\n{$bar}\n{$bar}\n{$bar}", [ return Html::button("{$screenReader}\n{$bar}\n{$bar}\n{$bar}", [
'class' => 'navbar-toggle', 'class' => 'navbar-toggle',
'data-toggle' => 'collapse', 'data-toggle' => 'collapse',
'data-target' => '.navbar-ex1-collapse', 'data-target' => ".navbar-{$this->options['id']}-collapse",
]); ]);
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment