- Patch #767478 by derjochenmeyer: menu li.leaf items get expanded (li.expanded) when active.
parent
542ceec1de
commit
3fd692b390
|
@ -922,8 +922,10 @@ function menu_tree_output($tree) {
|
||||||
if ($i == $num_items - 1) {
|
if ($i == $num_items - 1) {
|
||||||
$class[] = 'last';
|
$class[] = 'last';
|
||||||
}
|
}
|
||||||
// Set a class if the link has children.
|
// Set a class for the <li>-tag. Since $data['below'] may contain local
|
||||||
if ($data['below']) {
|
// tasks, only set 'expanded' class if the link also has children within
|
||||||
|
// the current menu.
|
||||||
|
if ($data['link']['has_children'] && $data['below']) {
|
||||||
$class[] = 'expanded';
|
$class[] = 'expanded';
|
||||||
}
|
}
|
||||||
elseif ($data['link']['has_children']) {
|
elseif ($data['link']['has_children']) {
|
||||||
|
|
Loading…
Reference in New Issue