Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
d6866256
Commit
d6866256
authored
Dec 17, 2013
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
only add navbar-default when no other class is set (e.g. navbar-inverse)
fixes #1553
parent
4ed1c2fc
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
CHANGELOG.md
extensions/yii/bootstrap/CHANGELOG.md
+1
-0
NavBar.php
extensions/yii/bootstrap/NavBar.php
+4
-1
No files found.
extensions/yii/bootstrap/CHANGELOG.md
View file @
d6866256
...
...
@@ -5,6 +5,7 @@ Yii Framework 2 bootstrap extension Change Log
----------------------------
-
Enh #1474: Added option to make NavBar 100% width (cebe)
-
Enh #1553: Only add navbar-default class to NavBar when no other class is specified (cebe)
2.
0.0 alpha, December 1, 2013
-----------------------------
...
...
extensions/yii/bootstrap/NavBar.php
View file @
d6866256
...
...
@@ -67,7 +67,10 @@ class NavBar extends Widget
{
parent
::
init
();
$this
->
clientOptions
=
false
;
Html
::
addCssClass
(
$this
->
options
,
'navbar navbar-default'
);
Html
::
addCssClass
(
$this
->
options
,
'navbar'
);
if
(
$this
->
options
[
'class'
]
==
'navbar'
)
{
Html
::
addCssClass
(
$this
->
options
,
'navbar-default'
);
}
Html
::
addCssClass
(
$this
->
brandOptions
,
'navbar-brand'
);
if
(
empty
(
$this
->
options
[
'role'
]))
{
$this
->
options
[
'role'
]
=
'navigation'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment