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
65571785
Commit
65571785
authored
Jul 25, 2014
by
Riccardo Padovani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated valencia functions to manage breadcrumb due change in Drupal API - Fixed issue
#5
parent
af036d8c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
13 deletions
+9
-13
template.php
template.php
+3
-3
tpl/page.tpl.php
tpl/page.tpl.php
+6
-10
No files found.
template.php
View file @
65571785
...
...
@@ -170,7 +170,7 @@ function valencia_links__system_main_menu($vars) {
case
'subheader'
:
return
valencia_subheader_menu
(
$vars
);
case
'breadcrumb'
:
return
valencia_breadcrumb
(
$vars
);
return
valencia_breadcrumb
_menu
(
$vars
);
case
'footer'
:
return
valencia_footer_menu
(
$vars
);
}
...
...
@@ -235,7 +235,7 @@ function valencia_subheader_menu($vars) {
* Breadcrumb is printed only on page with deep level > 1
* Also, if there is, we print third level menu
*/
function
valencia_breadcrumb
(
$vars
)
{
function
valencia_breadcrumb
_menu
(
$vars
)
{
// Var with all HTML
$html
=
''
;
...
...
@@ -305,7 +305,7 @@ function valencia_breadcrumb($vars) {
* Create third level menu html
* Follows http://design.ubuntu.com/web-style-guide/scaffolding#navigation
*
* Don't call this function directly, is only for valencia_breadcrumb()
* Don't call this function directly, is only for valencia_breadcrumb
_menu
()
*
* Return an array: the first element is a bool that indicate if there is an
* active link, the second element is the html of third level menu
...
...
tpl/page.tpl.php
View file @
65571785
...
...
@@ -33,7 +33,6 @@
* site, if they have been configured.
* - $secondary_menu (array): An array containing the Secondary menu links for
* the site, if they have been configured.
* - $breadcrumb: The breadcrumb trail for the current page.
*
* Page content (in order of occurrence in the default page.tpl.php):
* - $title_prefix (array): An array containing additional output populated by
...
...
@@ -116,15 +115,12 @@
<?php
print
$messages
;
// Error messages ?>
<?
php
if
(
$breadcrumb
)
:
?>
<nav
role=
"navigation"
class=
"nav-secondary clearfix"
>
<?php
print
theme
(
'links__system_main_menu'
,
array
(
'links'
=>
$valencia_menu
,
'id'
=>
'breadcrumb'
));
?>
</nav>
<?php
endif
;
?>
<
nav
role
=
"navigation"
class
=
"nav-secondary clearfix"
>
<?
php
print
theme
(
'links__system_main_menu'
,
array
(
'links'
=>
$valencia_menu
,
'id'
=>
'breadcrumb'
));
?>
</nav>
<div
id=
"main-wrapper"
><div
id=
"main"
class=
"clearfix"
>
...
...
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