aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2012-06-16 13:16:21 -0400
committerCash Costello <cash.costello@gmail.com>2012-06-16 13:16:21 -0400
commitb6daeeff44535de77f81396d6690f6eedbf57708 (patch)
treed9bde7e490744b28e950f181c51ae0b9373305af /views
parent7d8064039f17059c4d87112dd107f828cf6c661a (diff)
downloadelgg-b6daeeff44535de77f81396d6690f6eedbf57708.tar.gz
elgg-b6daeeff44535de77f81396d6690f6eedbf57708.tar.bz2
Fixes #4502 selected menu items maintain plugin provided classes
Diffstat (limited to 'views')
-rw-r--r--views/default/navigation/menu/elements/item.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/views/default/navigation/menu/elements/item.php b/views/default/navigation/menu/elements/item.php
index 22383ce0b..fd9738826 100644
--- a/views/default/navigation/menu/elements/item.php
+++ b/views/default/navigation/menu/elements/item.php
@@ -13,7 +13,8 @@ $item = $vars['item'];
$link_class = 'elgg-menu-closed';
if ($item->getSelected()) {
- $item->setItemClass('elgg-state-selected');
+ // @todo switch to addItemClass when that is implemented
+ //$item->setItemClass('elgg-state-selected');
$link_class = 'elgg-menu-opened';
}
@@ -24,6 +25,9 @@ if ($children) {
}
$item_class = $item->getItemClass();
+if ($item->getSelected()) {
+ $item_class = "$item_class elgg-state-selected";
+}
if (isset($vars['item_class']) && $vars['item_class']) {
$item_class .= ' ' . $vars['item_class'];
}