aboutsummaryrefslogtreecommitdiff
path: root/views/default/navigation/menu/default.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/navigation/menu/default.php')
-rw-r--r--views/default/navigation/menu/default.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/views/default/navigation/menu/default.php b/views/default/navigation/menu/default.php
index 13ff9f1e2..0dc6dd6b3 100644
--- a/views/default/navigation/menu/default.php
+++ b/views/default/navigation/menu/default.php
@@ -5,10 +5,12 @@
* @uses $vars['name']
* @uses $vars['menu']
* @uses $vars['class']
+ * @uses $vars['show_section_headers']
*/
// we want css classes to use dashes
$vars['name'] = str_replace('_', '-', $vars['name']);
+$headers = elgg_extract('show_section_headers', $vars, false);
$class = "elgg-menu elgg-menu-{$vars['name']}";
if (isset($vars['class'])) {
@@ -19,5 +21,8 @@ foreach ($vars['menu'] as $section => $menu_items) {
echo elgg_view('navigation/menu/elements/section', array(
'items' => $menu_items,
'class' => "$class elgg-menu-{$vars['name']}-$section",
+ 'section' => $section,
+ 'name' => $vars['name'],
+ 'show_section_headers' => $headers
));
}