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
ba829504
Commit
ba829504
authored
May 13, 2012
by
Crisu83
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed BootMenu to not set a default type
parent
4fccdc2a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
BootMenu.php
widgets/BootMenu.php
+3
-7
No files found.
widgets/BootMenu.php
View file @
ba829504
...
...
@@ -26,7 +26,7 @@ class BootMenu extends BootBaseMenu
* @var string the menu type.
* Valid values are '', 'tabs' and 'pills'. Defaults to ''.
*/
public
$type
=
self
::
TYPE_UNSTYLED
;
public
$type
;
/**
* @var boolean whether to stack navigation items.
*/
...
...
@@ -50,9 +50,9 @@ class BootMenu extends BootBaseMenu
$classes
=
array
(
'nav'
);
$validTypes
=
array
(
self
::
TYPE_
UNSTYLED
,
self
::
TYPE_
TABS
,
self
::
TYPE_PILLS
,
self
::
TYPE_LIST
);
$validTypes
=
array
(
self
::
TYPE_TABS
,
self
::
TYPE_PILLS
,
self
::
TYPE_LIST
);
if
(
!
empty
(
$this
->
type
)
&&
in_array
(
$this
->
type
,
$validTypes
))
if
(
isset
(
$this
->
type
)
&&
in_array
(
$this
->
type
,
$validTypes
))
$classes
[]
=
'nav-'
.
$this
->
type
;
if
(
$this
->
type
!==
self
::
TYPE_LIST
&&
$this
->
stacked
)
...
...
@@ -179,10 +179,6 @@ class BootMenu extends BootBaseMenu
continue
;
}
if
(
!
is_array
(
$item
))
{
continue
;
}
if
(
!
isset
(
$item
[
'label'
]))
$item
[
'label'
]
=
''
;
...
...
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