aboutsummaryrefslogtreecommitdiff
path: root/views/default/navigation/menu/elements
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/navigation/menu/elements')
-rw-r--r--views/default/navigation/menu/elements/item.php4
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>";