menu management is now functional with the exception of acl's (and of course a way to display the menus you create, and probably a bit more input sanity checking)

This commit is contained in:
friendica
2013-08-13 20:57:03 -07:00
parent 680baff73d
commit 9508967c73
7 changed files with 133 additions and 26 deletions

View File

@@ -29,7 +29,9 @@ function menu_render($menu) {
return '';
for($x = 0; $x < count($menu['items']); $x ++)
if($menu['items']['mitem_flags'] & MENU_ITEM_ZID)
$menu['items']['link'] = zid($menu['items']['link']);
$menu['items']['mitem_link'] = zid($menu['items']['mitem_link']);
if($menu['items']['mitem_flags'] & MENU_ITEM_NEWWIN)
$menu['items']['newwin'] = '1';
return replace_macros(get_markup_template('usermenu.tpl'),array(
'$menu' => $menu['menu'],