aboutsummaryrefslogtreecommitdiff
path: root/views/default/navigation/menu/elements
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/elements
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/elements')
-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));