a bit more work on menus

This commit is contained in:
friendica
2013-08-13 01:24:02 -07:00
parent 04f8de184e
commit 55cb322489
4 changed files with 43 additions and 1 deletions

View File

@@ -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;
}