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
ebdb78f9
Commit
ebdb78f9
authored
Mar 08, 2012
by
niskac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed a minor bug in BootMenu (introduced in #139)
parent
dad11791
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
7 deletions
+4
-7
index.php
demo/protected/views/site/index.php
+4
-4
BootMenu.php
widgets/BootMenu.php
+0
-3
No files found.
demo/protected/views/site/index.php
View file @
ebdb78f9
...
@@ -230,11 +230,11 @@ Yii::app()->user->setFlash('error', '<strong>Oh snap!</strong> Change a few thin
...
@@ -230,11 +230,11 @@ Yii::app()->user->setFlash('error', '<strong>Oh snap!</strong> Change a few thin
<?php
$this
->
widget
(
'bootstrap.widgets.BootMenu'
,
array
(
<?php
$this
->
widget
(
'bootstrap.widgets.BootMenu'
,
array
(
'type'
=>
'list'
,
'type'
=>
'list'
,
'items'
=>
array
(
'items'
=>
array
(
array
(
'label'
=>
'LIST HEADER'
,
'itemOptions'
=>
array
(
'class'
=>
'nav-header'
)
),
array
(
'label'
=>
'LIST HEADER'
),
array
(
'label'
=>
'Home'
,
'icon'
=>
'home'
,
'url'
=>
'#'
,
'active'
=>
true
),
array
(
'label'
=>
'Home'
,
'icon'
=>
'home'
,
'url'
=>
'#'
,
'active'
=>
true
),
array
(
'label'
=>
'Library'
,
'icon'
=>
'book'
,
'url'
=>
'#'
),
array
(
'label'
=>
'Library'
,
'icon'
=>
'book'
,
'url'
=>
'#'
),
array
(
'label'
=>
'Application'
,
'icon'
=>
'pencil'
,
'url'
=>
'#'
),
array
(
'label'
=>
'Application'
,
'icon'
=>
'pencil'
,
'url'
=>
'#'
),
array
(
'label'
=>
'ANOTHER LIST HEADER'
,
'itemOptions'
=>
array
(
'class'
=>
'nav-header'
)
),
array
(
'label'
=>
'ANOTHER LIST HEADER'
),
array
(
'label'
=>
'Profile'
,
'icon'
=>
'user'
,
'url'
=>
'#'
),
array
(
'label'
=>
'Profile'
,
'icon'
=>
'user'
,
'url'
=>
'#'
),
array
(
'label'
=>
'Settings'
,
'icon'
=>
'cog'
,
'url'
=>
'#'
),
array
(
'label'
=>
'Settings'
,
'icon'
=>
'cog'
,
'url'
=>
'#'
),
array
(
'label'
=>
'Help'
,
'icon'
=>
'flag'
,
'url'
=>
'#'
),
array
(
'label'
=>
'Help'
,
'icon'
=>
'flag'
,
'url'
=>
'#'
),
...
@@ -250,11 +250,11 @@ Yii::app()->user->setFlash('error', '<strong>Oh snap!</strong> Change a few thin
...
@@ -250,11 +250,11 @@ Yii::app()->user->setFlash('error', '<strong>Oh snap!</strong> Change a few thin
<?php
\$
this->widget('bootstrap.widgets.BootMenu', array(
<?php
\$
this->widget('bootstrap.widgets.BootMenu', array(
'type'=>'list',
'type'=>'list',
'items'=>array(
'items'=>array(
array('label'=>'LIST HEADER'
, 'itemOptions'=>array('class'=>'nav-header')
),
array('label'=>'LIST HEADER'),
array('label'=>'Home', 'icon'=>'home', 'url'=>'#', 'active'=>true),
array('label'=>'Home', 'icon'=>'home', 'url'=>'#', 'active'=>true),
array('label'=>'Library', 'icon'=>'book', 'url'=>'#'),
array('label'=>'Library', 'icon'=>'book', 'url'=>'#'),
array('label'=>'Application', 'icon'=>'pencil', 'url'=>'#'),
array('label'=>'Application', 'icon'=>'pencil', 'url'=>'#'),
array('label'=>'ANOTHER LIST HEADER'
, 'itemOptions'=>array('class'=>'nav-header')
),
array('label'=>'ANOTHER LIST HEADER'),
array('label'=>'Profile', 'icon'=>'user', 'url'=>'#'),
array('label'=>'Profile', 'icon'=>'user', 'url'=>'#'),
array('label'=>'Settings', 'icon'=>'cog', 'url'=>'#'),
array('label'=>'Settings', 'icon'=>'cog', 'url'=>'#'),
array('label'=>'Help', 'icon'=>'flag', 'url'=>'#'),
array('label'=>'Help', 'icon'=>'flag', 'url'=>'#'),
...
...
widgets/BootMenu.php
View file @
ebdb78f9
...
@@ -151,9 +151,6 @@ class BootMenu extends BootBaseMenu
...
@@ -151,9 +151,6 @@ class BootMenu extends BootBaseMenu
$item
[
'label'
]
.=
' <span class="caret"></span>'
;
$item
[
'label'
]
.=
' <span class="caret"></span>'
;
}
}
if
(
!
isset
(
$item
[
'url'
]))
$item
[
'url'
]
=
'#'
;
return
parent
::
renderItem
(
$item
);
return
parent
::
renderItem
(
$item
);
}
}
...
...
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