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
953d1e60
Commit
953d1e60
authored
Feb 08, 2012
by
niskac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes a minor issue with BootNavbar.
parent
25a2168e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
BootNavbar.php
widgets/BootNavbar.php
+10
-10
No files found.
widgets/BootNavbar.php
View file @
953d1e60
...
@@ -33,12 +33,12 @@ class BootNavbar extends BootWidget
...
@@ -33,12 +33,12 @@ class BootNavbar extends BootWidget
*/
*/
public
$items
=
array
();
public
$items
=
array
();
/**
/**
* @var boolean
flag that indicates if the nav should use the full width available
. Defaults to false.
* @var boolean
whether the nav span over the full width
. Defaults to false.
* @since 0.9.8
* @since 0.9.8
*/
*/
public
$fluid
=
false
;
public
$fluid
=
false
;
/**
/**
* @var boolean
flag that indicates if the nav bar should be
fixed to the top of the page. Defaults to true.
* @var boolean
whether the nav bar is
fixed to the top of the page. Defaults to true.
* @since 0.9.8
* @since 0.9.8
*/
*/
public
$fixed
=
true
;
public
$fixed
=
true
;
...
@@ -48,7 +48,7 @@ class BootNavbar extends BootWidget
...
@@ -48,7 +48,7 @@ class BootNavbar extends BootWidget
*/
*/
public
function
init
()
public
function
init
()
{
{
if
(
$this
->
brand
!==
false
)
if
(
!
$this
->
brand
)
{
{
$this
->
brand
=
CHtml
::
encode
(
Yii
::
app
()
->
name
);
$this
->
brand
=
CHtml
::
encode
(
Yii
::
app
()
->
name
);
...
@@ -86,7 +86,7 @@ class BootNavbar extends BootWidget
...
@@ -86,7 +86,7 @@ class BootNavbar extends BootWidget
echo
'<div class="navbar-inner"><div class="'
.
$containerCssClass
.
'">'
;
echo
'<div class="navbar-inner"><div class="'
.
$containerCssClass
.
'">'
;
echo
'<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"></a>'
;
echo
'<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"></a>'
;
if
(
$this
->
brand
)
if
(
$this
->
brand
!==
false
)
echo
CHtml
::
openTag
(
'a'
,
$this
->
brandOptions
)
.
$this
->
brand
.
'</a>'
;
echo
CHtml
::
openTag
(
'a'
,
$this
->
brandOptions
)
.
$this
->
brand
.
'</a>'
;
echo
'<div class="nav-collapse">'
;
echo
'<div class="nav-collapse">'
;
...
@@ -97,13 +97,13 @@ class BootNavbar extends BootWidget
...
@@ -97,13 +97,13 @@ class BootNavbar extends BootWidget
echo
$item
;
echo
$item
;
else
else
{
{
if
(
!
isset
(
$item
[
'class'
]))
if
(
isset
(
$item
[
'class'
]))
$item
[
'class'
]
=
'bootstrap.widgets.BootMenu'
;
{
$className
=
$item
[
'class'
];
unset
(
$item
[
'class'
]);
$className
=
$item
[
'class'
];
$this
->
controller
->
widget
(
$className
,
$item
);
unset
(
$item
[
'class'
]);
}
$this
->
controller
->
widget
(
$className
,
$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