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
00269992
Commit
00269992
authored
Feb 03, 2012
by
niskac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed the issue with dropdown menu caret not showing.
parent
939b267b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
BootMenu.php
widgets/BootMenu.php
+2
-1
BootNav.php
widgets/BootNav.php
+2
-1
BootTwipsy.php
widgets/BootTwipsy.php
+1
-1
No files found.
widgets/BootMenu.php
View file @
00269992
...
...
@@ -191,10 +191,11 @@ class BootMenu extends CMenu
else
$item
[
'linkOptions'
][
'class'
]
=
'dropdown-toggle'
;
$item
[
'label'
]
.=
' <b class="caret"></b>'
;
$item
[
'linkOptions'
][
'data-toggle'
]
=
'dropdown'
;
}
$label
=
$this
->
linkLabelWrapper
===
null
?
$item
[
'label'
]
:
'<'
.
$this
->
linkLabelWrapper
.
'>'
.
$item
[
'label'
]
.
'<
b class="caret"></b><
/'
.
$this
->
linkLabelWrapper
.
'>'
;
$label
=
$this
->
linkLabelWrapper
===
null
?
$item
[
'label'
]
:
'<'
.
$this
->
linkLabelWrapper
.
'>'
.
$item
[
'label'
]
.
'</'
.
$this
->
linkLabelWrapper
.
'>'
;
return
CHtml
::
link
(
$label
,
$item
[
'url'
],
isset
(
$item
[
'linkOptions'
])
?
$item
[
'linkOptions'
]
:
array
());
}
}
widgets/BootNav.php
View file @
00269992
...
...
@@ -79,7 +79,8 @@ class BootNav extends BootWidget
echo
CHtml
::
openTag
(
'div'
,
$this
->
htmlOptions
);
echo
'<div class="navbar-inner"><div class="'
.
$containerCssClass
.
'">'
;
echo
'<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"></a>'
;
//todo: Add support for collapse on narrow layouts.
//todo: Add support for collapse on narrow layouts.
//echo '<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"></a>';
echo
CHtml
::
openTag
(
'a'
,
$this
->
brandOptions
)
.
$this
->
brand
.
'</a>'
;
echo
'<div class="nav-collapse">'
;
...
...
widgets/BootTwipsy.php
View file @
00269992
...
...
@@ -13,7 +13,7 @@ class BootTwipsy extends BootWidget
/**
* @var string the CSS selector to use for selecting the twipsy elements.
*/
public
$selector
=
'a[title]'
;
public
$selector
=
'a[title]
, a[data-title]
'
;
/**
* Initializes the widget.
...
...
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