From 55cb32248953c6e63a2da478f0eb3895875f93d8 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 13 Aug 2013 01:24:02 -0700 Subject: a bit more work on menus --- mod/menu.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'mod/menu.php') 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; + + + + } -- cgit v1.2.3