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
a05cae62
Commit
a05cae62
authored
Aug 31, 2014
by
Riccardo Padovani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed annonying warnings
parent
8f436be1
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5479 additions
and
9 deletions
+5479
-9
css/style.css
css/style.css
+5464
-1
template.php
template.php
+14
-7
tpl/page.tpl.php
tpl/page.tpl.php
+1
-1
No files found.
css/style.css
View file @
a05cae62
This diff is collapsed.
Click to expand it.
template.php
View file @
a05cae62
...
...
@@ -157,13 +157,20 @@ function valencia_preprocess_html( &$variables ) {
*
*/
function
valencia_preprocess_page
(
&
$vars
)
{
// Get the entire main menu tree
$main_menu_tree
=
menu_tree_all_data
(
'main-menu'
);
// and add the active trail
menu_tree_add_active_path
(
$main_menu_tree
);
// Add the rendered output to menu
$vars
[
'valencia_menu'
]
=
menu_tree_output
(
$main_menu_tree
);
// Remove the title from all pages but news
if
(
isset
(
$vars
[
'node'
]))
{
if
(
$vars
[
'node'
]
->
type
!==
'blog'
)
{
$vars
[
'title'
]
=
''
;
}
}
// Get the entire main menu tree
$main_menu_tree
=
menu_tree_page_data
(
'main-menu'
);
// and add the active trail
menu_tree_add_active_path
(
$main_menu_tree
);
// Add the rendered output to menu
$vars
[
'valencia_menu'
]
=
menu_tree_output
(
$main_menu_tree
);
}
/**
...
...
tpl/page.tpl.php
View file @
a05cae62
...
...
@@ -118,7 +118,7 @@
<div
id=
"content"
class=
"column"
><div
class=
"section"
>
<a
id=
"main-content"
></a>
<?php
if
(
$title
&&
$node
->
type
===
'blog'
)
:
?>
<h1
class=
"row"
id=
"page-title"
>
<?php
print
$title
;
?>
</h1>
<?php
endif
;
?>
<?php
if
(
$title
)
:
?>
<h1
class=
"row"
id=
"page-title"
>
<?php
print
$title
;
?>
</h1>
<?php
endif
;
?>
<?php
if
(
$tabs
)
:
?>
<div
class=
"tabs"
>
<?php
print
render
(
$tabs
);
?>
</div>
<?php
endif
;
?>
<?php
print
render
(
$page
[
'help'
]);
?>
<?php
if
(
$action_links
)
:
?>
<ul
class=
"action-links"
>
<?php
print
render
(
$action_links
);
?>
</ul>
<?php
endif
;
?>
...
...
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