aboutsummaryrefslogtreecommitdiff
path: root/views/default/navigation/menu/page.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/navigation/menu/page.php')
-rw-r--r--views/default/navigation/menu/page.php15
1 files changed, 7 insertions, 8 deletions
diff --git a/views/default/navigation/menu/page.php b/views/default/navigation/menu/page.php
index bd2611790..c7d858e1d 100644
--- a/views/default/navigation/menu/page.php
+++ b/views/default/navigation/menu/page.php
@@ -5,24 +5,23 @@
* @uses $vars['menu']
* @uses $vars['selected_item']
* @uses $vars['class']
+ * @uses $vars['name']
+ * @uses $vars['show_section_headers']
*/
+$headers = elgg_extract('show_section_headers', $vars, false);
+
$class = 'elgg-menu elgg-menu-page';
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,
'class' => "$class elgg-menu-page-$section",
+ 'section' => $section,
+ 'name' => $vars['name'],
+ 'show_section_headers' => $headers
));
}