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
0c2354c0
Commit
0c2354c0
authored
Feb 09, 2012
by
niskac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes some minor issues with BootMenu.
parent
5ec03366
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
BootMenu.php
widgets/BootMenu.php
+5
-2
No files found.
widgets/BootMenu.php
View file @
0c2354c0
...
...
@@ -161,11 +161,11 @@ class BootMenu extends BootWidget
*/
protected
function
renderItem
(
$item
)
{
if
(
isset
(
$item
[
'items'
]))
{
if
(
!
isset
(
$item
[
'url'
]))
$item
[
'url'
]
=
'#'
;
if
(
isset
(
$item
[
'items'
]))
{
if
(
isset
(
$item
[
'linkOptions'
][
'class'
]))
$item
[
'linkOptions'
][
'class'
]
.=
' dropdown-toggle'
;
else
...
...
@@ -175,7 +175,10 @@ class BootMenu extends BootWidget
$item
[
'linkOptions'
][
'data-toggle'
]
=
'dropdown'
;
}
if
(
isset
(
$item
[
'url'
]))
return
CHtml
::
link
(
$item
[
'label'
],
$item
[
'url'
],
isset
(
$item
[
'linkOptions'
])
?
$item
[
'linkOptions'
]
:
array
());
else
return
$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