aboutsummaryrefslogtreecommitdiff
path: root/views/default/navigation/menu/default.php
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-12 16:47:03 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-12 16:47:03 +0000
commit386aa2ce2ecd504c8e044f4e4ae34dd779ded6b9 (patch)
treeeb3f221152b366d9eacad601e55ee0a2f1c4bad1 /views/default/navigation/menu/default.php
parente917c26d53a7270b3ab4d2d283f72cfd32f3e1e2 (diff)
downloadelgg-386aa2ce2ecd504c8e044f4e4ae34dd779ded6b9.tar.gz
elgg-386aa2ce2ecd504c8e044f4e4ae34dd779ded6b9.tar.bz2
Fixes #3088: Added section header support to page and default menus.
git-svn-id: http://code.elgg.org/elgg/trunk@8661 36083f99-b078-4883-b0ff-0f9b5a30f544
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
));
}