aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-08-13 01:24:02 -0700
committerfriendica <info@friendica.com>2013-08-13 01:24:02 -0700
commit55cb32248953c6e63a2da478f0eb3895875f93d8 (patch)
tree255c936a39290e5e2e089334030791fb084ca1e8 /mod
parent04f8de184e8c925e38335eb18c102985ce421f95 (diff)
downloadvolse-hubzilla-55cb32248953c6e63a2da478f0eb3895875f93d8.tar.gz
volse-hubzilla-55cb32248953c6e63a2da478f0eb3895875f93d8.tar.bz2
volse-hubzilla-55cb32248953c6e63a2da478f0eb3895875f93d8.zip
a bit more work on menus
Diffstat (limited to 'mod')
-rw-r--r--mod/menu.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/mod/menu.php b/mod/menu.php
index 3198027f4..a624b4727 100644
--- a/mod/menu.php
+++ b/mod/menu.php
@@ -27,6 +27,24 @@ function menu_content(&$a) {
if(argc() == 1) {
// list menus
+ $x = menu_list(local_user());
+ if($x) {
+ $o = replace_macros(get_markup_template('menulist.tpl'),array(
+ '$title' => t('Manage Menus'),
+ '$menus' => $x,
+ '$edit' => t('Edit'),
+ '$drop' => t('Drop'),
+ '$new' => t('New'),
+ '$hintnew' => t('Create a new menu'),
+ '$hintdrop' => t('Delete this menu'),
+ '$hintedit' => t('Edit this menu')
+ ));
+ }
+ return $o;
+
+
+
+
}