Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
Yii Bootstrap 3
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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Common
Yii Bootstrap 3
Commits
5b96a619
Commit
5b96a619
authored
Mar 08, 2012
by
niskac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor addition to #140
parent
ebdb78f9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
0 deletions
+12
-0
BootBaseMenu.php
widgets/BootBaseMenu.php
+3
-0
BootDropdown.php
widgets/BootDropdown.php
+3
-0
BootMenu.php
widgets/BootMenu.php
+6
-0
No files found.
widgets/BootBaseMenu.php
View file @
5b96a619
...
@@ -55,6 +55,9 @@ abstract class BootBaseMenu extends BootWidget
...
@@ -55,6 +55,9 @@ abstract class BootBaseMenu extends BootWidget
$item
[
'label'
]
=
'<i class="'
.
$item
[
'icon'
]
.
'"></i> '
.
$item
[
'label'
];
$item
[
'label'
]
=
'<i class="'
.
$item
[
'icon'
]
.
'"></i> '
.
$item
[
'label'
];
}
}
if
(
!
isset
(
$item
[
'header'
])
&&
!
isset
(
$item
[
'url'
]))
$item
[
'url'
]
=
'#'
;
if
(
isset
(
$item
[
'url'
]))
if
(
isset
(
$item
[
'url'
]))
return
CHtml
::
link
(
$item
[
'label'
],
$item
[
'url'
],
$item
[
'linkOptions'
]);
return
CHtml
::
link
(
$item
[
'label'
],
$item
[
'url'
],
$item
[
'linkOptions'
]);
else
else
...
...
widgets/BootDropdown.php
View file @
5b96a619
...
@@ -49,7 +49,10 @@ class BootDropdown extends BootBaseMenu
...
@@ -49,7 +49,10 @@ class BootDropdown extends BootBaseMenu
$class
=
array
();
$class
=
array
();
if
(
!
isset
(
$item
[
'url'
]))
if
(
!
isset
(
$item
[
'url'
]))
{
$item
[
'header'
]
=
true
;
$class
[]
=
'nav-header'
;
$class
[]
=
'nav-header'
;
}
if
(
$item
[
'active'
])
if
(
$item
[
'active'
])
$class
[]
=
'active'
;
$class
[]
=
'active'
;
...
...
widgets/BootMenu.php
View file @
5b96a619
...
@@ -97,6 +97,12 @@ class BootMenu extends BootBaseMenu
...
@@ -97,6 +97,12 @@ class BootMenu extends BootBaseMenu
if
(
$item
[
'active'
]
||
(
isset
(
$item
[
'items'
])
&&
$this
->
isChildActive
(
$item
[
'items'
])))
if
(
$item
[
'active'
]
||
(
isset
(
$item
[
'items'
])
&&
$this
->
isChildActive
(
$item
[
'items'
])))
$class
[]
=
'active'
;
$class
[]
=
'active'
;
if
(
$this
->
type
===
self
::
TYPE_LIST
&&
!
isset
(
$item
[
'url'
]))
{
$item
[
'header'
]
=
true
;
$class
[]
=
'nav-header'
;
}
if
(
isset
(
$item
[
'items'
]))
if
(
isset
(
$item
[
'items'
]))
$class
[]
=
'dropdown'
;
$class
[]
=
'dropdown'
;
...
...
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