aboutsummaryrefslogtreecommitdiff
path: root/views/default
diff options
context:
space:
mode:
Diffstat (limited to 'views/default')
-rw-r--r--views/default/navigation/menu/page.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/views/default/navigation/menu/page.php b/views/default/navigation/menu/page.php
index c7d858e1d..56a288234 100644
--- a/views/default/navigation/menu/page.php
+++ b/views/default/navigation/menu/page.php
@@ -16,6 +16,15 @@ if (isset($vars['class'])) {
$class = "$class {$vars['class']}";
}
+if (isset($vars['selected_item'])) {
+ $parent = $vars['selected_item']->getParent();
+
+ while ($parent) {
+ $parent->setSelected();
+ $parent = $parent->getParent();
+ }
+}
+
foreach ($vars['menu'] as $section => $menu_items) {
echo elgg_view('navigation/menu/elements/section', array(
'items' => $menu_items,