From 6191cfef2adaa52019940cc448e28e2ad1a7ae6d Mon Sep 17 00:00:00 2001 From: friendica Date: Sun, 11 Aug 2013 19:04:07 -0700 Subject: check these in so I can go back and find out why the stylsheet is horked --- include/menu.php | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 include/menu.php (limited to 'include/menu.php') diff --git a/include/menu.php b/include/menu.php new file mode 100644 index 000000000..98c18a45b --- /dev/null +++ b/include/menu.php @@ -0,0 +1,40 @@ + $r[0], 'items' => $x ); + + + } + return null; +} + + +function menu_render($menu) { + if(! $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']); + + return replace_macros(get_markup_template('usermenu.tpl'),array( + '$menu' => $menu['menu'], + '$items' => $menu['items'] + )); +} -- cgit v1.2.3