aboutsummaryrefslogtreecommitdiff
path: root/views/default/navigation/menu/elements/section.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/navigation/menu/elements/section.php')
-rw-r--r--views/default/navigation/menu/elements/section.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/views/default/navigation/menu/elements/section.php b/views/default/navigation/menu/elements/section.php
index f72db847f..9b31f54b1 100644
--- a/views/default/navigation/menu/elements/section.php
+++ b/views/default/navigation/menu/elements/section.php
@@ -4,10 +4,20 @@
*
* @uses $vars['items']
* @uses $vars['class']
+ * @uses $vars['name']
+ * @uses $vars['section']
+ * @uses $vars['show_section_headers']
*/
+$headers = elgg_extract('show_section_headers', $vars, false);
$class = elgg_extract('class', $vars, '');
+if ($headers) {
+ $name = elgg_extract('name', $vars);
+ $section = elgg_extract('section', $vars);
+ echo elgg_echo("menu:$name:header:$section");
+}
+
echo "<ul class=\"$class\">";
foreach ($vars['items'] as $menu_item) {
echo elgg_view('navigation/menu/elements/item', array('item' => $menu_item));