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
d8948072
Commit
d8948072
authored
Apr 28, 2012
by
Crisu83
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed setting active for BootBreadcrumbs::homeLink
parent
f61ba421
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
BootBreadcrumbs.php
widgets/BootBreadcrumbs.php
+2
-5
No files found.
widgets/BootBreadcrumbs.php
View file @
d8948072
...
@@ -36,12 +36,9 @@ class BootBreadcrumbs extends CBreadcrumbs
...
@@ -36,12 +36,9 @@ class BootBreadcrumbs extends CBreadcrumbs
*/
*/
public
function
run
()
public
function
run
()
{
{
if
(
empty
(
$this
->
links
))
return
;
$links
=
array
();
$links
=
array
();
if
(
$this
->
homeLink
===
null
)
if
(
!
isset
(
$this
->
homeLink
)
)
$this
->
homeLink
=
array
(
'label'
=>
Yii
::
t
(
'bootstrap'
,
'Home'
),
'url'
=>
Yii
::
app
()
->
homeUrl
);
$this
->
homeLink
=
array
(
'label'
=>
Yii
::
t
(
'bootstrap'
,
'Home'
),
'url'
=>
Yii
::
app
()
->
homeUrl
);
if
(
$this
->
homeLink
!==
false
)
if
(
$this
->
homeLink
!==
false
)
...
@@ -49,7 +46,7 @@ class BootBreadcrumbs extends CBreadcrumbs
...
@@ -49,7 +46,7 @@ class BootBreadcrumbs extends CBreadcrumbs
if
(
is_array
(
$this
->
homeLink
))
if
(
is_array
(
$this
->
homeLink
))
$this
->
homeLink
=
CHtml
::
link
(
$this
->
homeLink
[
'label'
],
$this
->
homeLink
[
'url'
]);
$this
->
homeLink
=
CHtml
::
link
(
$this
->
homeLink
[
'label'
],
$this
->
homeLink
[
'url'
]);
$links
[]
=
$this
->
renderItem
(
$this
->
homeLink
);
$links
[]
=
$this
->
renderItem
(
$this
->
homeLink
,
Yii
::
app
()
->
request
->
requestUri
===
Yii
::
app
()
->
homeUrl
);
}
}
foreach
(
$this
->
links
as
$label
=>
$url
)
foreach
(
$this
->
links
as
$label
=>
$url
)
...
...
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