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
36eef2cc
Commit
36eef2cc
authored
Aug 31, 2014
by
Riccardo Padovani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove breadcrumb if there isn't a third level menù
parent
61bf9a67
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
49 additions
and
47 deletions
+49
-47
template.php
template.php
+49
-47
No files found.
template.php
View file @
36eef2cc
...
@@ -302,9 +302,11 @@ function valencia_breadcrumb_menu($vars) {
...
@@ -302,9 +302,11 @@ function valencia_breadcrumb_menu($vars) {
foreach
(
$vars
[
'links'
]
as
$key
=>
$link
)
{
foreach
(
$vars
[
'links'
]
as
$key
=>
$link
)
{
// See Drupal API, is to print every menu voice only one
// See Drupal API, is to print every menu voice only one
if
(
is_numeric
(
$key
))
{
if
(
is_numeric
(
$key
))
{
// We need only active links, and we don't want the
// We need only active links, with children and we
// news page
// don't want the news page
if
(
$link
[
'#original_link'
][
'in_active_trail'
]
&&
$link
[
'#title'
]
!==
'News'
)
{
if
(
$link
[
'#original_link'
][
'in_active_trail'
]
&&
!
empty
(
$link
[
'#below'
])
&&
$link
[
'#title'
]
!==
'News'
)
{
// If is the first level link and it has children,
// If is the first level link and it has children,
// we start to create the breadcrumb
// we start to create the breadcrumb
if
(
!
empty
(
$link
[
'#below'
])
&&
$link
[
'#original_link'
][
'depth'
]
===
'1'
)
{
if
(
!
empty
(
$link
[
'#below'
])
&&
$link
[
'#original_link'
][
'depth'
]
===
'1'
)
{
...
...
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