Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
valencia
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
9
Issues
9
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gruppo Web
valencia
Commits
73740f01
Commit
73740f01
authored
Aug 28, 2014
by
Riccardo Padovani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove first level links from breadcrumb
parent
a60faf68
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
template.php
template.php
+1
-5
No files found.
template.php
View file @
73740f01
...
@@ -287,13 +287,9 @@ function valencia_breadcrumb_menu($vars) {
...
@@ -287,13 +287,9 @@ function valencia_breadcrumb_menu($vars) {
if
(
is_numeric
(
$key
))
{
if
(
is_numeric
(
$key
))
{
// We need only active links
// We need only active links
if
(
$link
[
'#original_link'
][
'in_active_trail'
])
{
if
(
$link
[
'#original_link'
][
'in_active_trail'
])
{
// If is the first level link and it has children, we have our first
// If is the first level link and it has children, we start to create the breadcrumb
// link of breadcrumb!
if
(
!
empty
(
$link
[
'#below'
])
&&
$link
[
'#original_link'
][
'depth'
]
===
'1'
)
{
if
(
!
empty
(
$link
[
'#below'
])
&&
$link
[
'#original_link'
][
'depth'
]
===
'1'
)
{
$link_title
=
$link
[
'#title'
];
$link_href
=
$link
[
'#href'
];
$html
.=
'<ul class="breadcrumb">'
;
$html
.=
'<ul class="breadcrumb">'
;
$html
.=
'<li>'
.
l
(
$link_title
,
$link_href
,
array
(
'html'
=>
'true'
))
.
' ›</li>'
;
// Now we need to attach second level menu
// Now we need to attach second level menu
$sub_menu
=
theme
(
'links__system_main_menu'
,
array
(
$sub_menu
=
theme
(
'links__system_main_menu'
,
array
(
'links'
=>
$link
[
'#below'
],
'links'
=>
$link
[
'#below'
],
...
...
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