Commit 3542c744 authored by Riccardo Padovani's avatar Riccardo Padovani

All links in the trail now are active, not only the bottom one

parent f1129685
...@@ -239,9 +239,20 @@ function valencia_header_menu($vars) { ...@@ -239,9 +239,20 @@ function valencia_header_menu($vars) {
if (is_numeric($key)) { if (is_numeric($key)) {
$link_title = $link['#title']; $link_title = $link['#title'];
$link_href = $link['#href']; $link_href = $link['#href'];
if ($link['#original_link']['in_active_trail']) {
$html .= '<li>' . l($link_title, $link_href, array(
'html' => 'true',
'attributes' => array(
'class' => array(
'active'
)))) . '</li>';
}
else {
$html .= '<li>' . l($link_title, $link_href, array('html' => 'true')) . '</li>'; $html .= '<li>' . l($link_title, $link_href, array('html' => 'true')) . '</li>';
} }
} }
}
$html .= '</ul>'; $html .= '</ul>';
return $html; return $html;
......
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