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
782381dc
Commit
782381dc
authored
Dec 19, 2012
by
Crisu83
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add support for non-link brand in TbNavbar (fixes #171)
parent
63a3de8a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
TbNavbar.php
widgets/TbNavbar.php
+8
-0
No files found.
widgets/TbNavbar.php
View file @
782381dc
...
@@ -122,7 +122,15 @@ class TbNavbar extends CWidget
...
@@ -122,7 +122,15 @@ class TbNavbar extends CWidget
}
}
if
(
$this
->
brand
!==
false
)
if
(
$this
->
brand
!==
false
)
{
if
(
$this
->
brandUrl
!==
false
)
echo
CHtml
::
openTag
(
'a'
,
$this
->
brandOptions
)
.
$this
->
brand
.
'</a>'
;
echo
CHtml
::
openTag
(
'a'
,
$this
->
brandOptions
)
.
$this
->
brand
.
'</a>'
;
else
{
unset
(
$this
->
brandOptions
[
'href'
]);
// spans cannot have a href attribute
echo
CHtml
::
openTag
(
'span'
,
$this
->
brandOptions
)
.
$this
->
brand
.
'</span>'
;
}
}
if
(
$this
->
collapse
!==
false
)
if
(
$this
->
collapse
!==
false
)
{
{
...
...
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