Commit f1129685 authored by Riccardo Padovani's avatar Riccardo Padovani

Remove breadcrumb from news pages

parent a05cae62
......@@ -292,9 +292,11 @@ function valencia_breadcrumb_menu($vars) {
foreach ($vars['links'] as $key => $link) {
// See Drupal API, is to print every menu voice only one
if (is_numeric($key)) {
// We need only active links
if ($link['#original_link']['in_active_trail']) {
// If is the first level link and it has children, we start to create the breadcrumb
// We need only active links, and we don't want the
// news page
if ($link['#original_link']['in_active_trail'] && $link['#title'] !== 'News') {
// If is the first level link and it has children,
// we start to create the breadcrumb
if(!empty($link['#below']) && $link['#original_link']['depth'] === '1') {
$html .= '<ul class="breadcrumb">';
// Now we need to attach second level menu
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment