diff options
Diffstat (limited to 'views/default/navigation')
-rw-r--r-- | views/default/navigation/menu/elements/item.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/views/default/navigation/menu/elements/item.php b/views/default/navigation/menu/elements/item.php index 7903dbdc0..7c88c344c 100644 --- a/views/default/navigation/menu/elements/item.php +++ b/views/default/navigation/menu/elements/item.php @@ -3,15 +3,17 @@ $item = $vars['item']; $class = ''; +$link_class = 'elgg-menu-closed'; if ($item->getSelected()) { $class = 'class="selected"'; + $link_class = 'elgg-menu-opened'; } $link_vars = array(); $children = $item->getChildren(); if ($children) { - $link_vars['class'] = 'elgg-menu-parent elgg-menu-closed'; + $link_vars['class'] = "elgg-menu-parent $link_class"; } echo "<li $class>"; |