aboutsummaryrefslogtreecommitdiffstats
path: root/mod/menu.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-11-09 17:39:54 -0800
committerfriendica <info@friendica.com>2014-11-09 17:39:54 -0800
commit2e695d1da2383214995b850b7d539dfb08eb546e (patch)
tree3807e487502b99b20e5ec8b697f87a92c0884cb6 /mod/menu.php
parentd5d1f655d97b389e6b2cae1c753e1377455b1721 (diff)
downloadvolse-hubzilla-2e695d1da2383214995b850b7d539dfb08eb546e.tar.gz
volse-hubzilla-2e695d1da2383214995b850b7d539dfb08eb546e.tar.bz2
volse-hubzilla-2e695d1da2383214995b850b7d539dfb08eb546e.zip
menu page cleanup
Diffstat (limited to 'mod/menu.php')
-rw-r--r--mod/menu.php32
1 files changed, 17 insertions, 15 deletions
diff --git a/mod/menu.php b/mod/menu.php
index a2d0c2385..a43ebfee6 100644
--- a/mod/menu.php
+++ b/mod/menu.php
@@ -52,25 +52,27 @@ function menu_content(&$a) {
if(argc() == 1) {
// list menus
$x = menu_list(local_user());
+ if($x) {
+ for($y = 0; $y < count($x); $y ++) {
+ $x[$y]['bookmark'] = (($x[$y]['menu_flags'] & MENU_BOOKMARK) ? true : false);
+ }
+ }
- $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'),
- '$hintcontent' => t('Edit menu contents'),
- '$hintedit' => t('Edit this menu')
- ));
+ $o = replace_macros(get_markup_template('menulist.tpl'),array(
+ '$title' => t('Manage Menus'),
+ '$menus' => $x,
+ '$edit' => t('Edit'),
+ '$drop' => t('Drop'),
+ '$new' => t('New'),
+ '$bmark' => t('Bookmarks allowed'),
+ '$hintnew' => t('Create a new menu'),
+ '$hintdrop' => t('Delete this menu'),
+ '$hintcontent' => t('Edit menu contents'),
+ '$hintedit' => t('Edit this menu')
+ ));
return $o;
-
-
-
-
}