Commit 0e268aa0 authored by Dries's avatar Dries
Browse files

- Patch #273129 by pwolanin: adding class active-trail should not remove previous attributes.

parent ffdfefeb
......@@ -1315,7 +1315,12 @@ function menu_navigation_links($menu_name, $level = 0) {
$l['href'] = $item['link']['href'];
$l['title'] = $item['link']['title'];
if ($item['link']['in_active_trail']) {
$l['attributes'] = array('class' => 'active-trail');
if (empty($l['attributes']['class'])) {
$l['attributes']['class'] = 'active-trail';
}
else {
$l['attributes']['class'] .= ' active-trail';
}
}
// Keyed with unique menu id to generate classes from theme_links().
$links['menu-' . $item['link']['mlid']] = $l;
......
Supports Markdown
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