aboutsummaryrefslogtreecommitdiffstats
path: root/include/menu.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-05-07 16:44:28 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-05-07 16:44:28 -0700
commit37a63365f1143375a2382a26ad9b07048b9570a6 (patch)
tree3cb03a4cbeb892c1c070cd5a981b62a04982a36e /include/menu.php
parent90591bcbc9ddba44cd44fc8ce06014c5ef9443e4 (diff)
parentcd8ecb86499c7b1fdaff44653cf3771c60ee2454 (diff)
downloadvolse-hubzilla-37a63365f1143375a2382a26ad9b07048b9570a6.tar.gz
volse-hubzilla-37a63365f1143375a2382a26ad9b07048b9570a6.tar.bz2
volse-hubzilla-37a63365f1143375a2382a26ad9b07048b9570a6.zip
Merge branch 'master' of https://github.com/redmatrix/redmatrix
Diffstat (limited to 'include/menu.php')
-rw-r--r--include/menu.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/menu.php b/include/menu.php
index b4f4555a5..a2e91f7ed 100644
--- a/include/menu.php
+++ b/include/menu.php
@@ -24,7 +24,7 @@ function menu_fetch($name,$uid,$observer_xchan) {
return null;
}
-function menu_render($menu, $class='', $edit = false) {
+function menu_render($menu, $class='', $edit = false, $var = '') {
if(! $menu)
return '';
@@ -37,12 +37,15 @@ function menu_render($menu, $class='', $edit = false) {
$menu['items'][$x]['mitem_desc'] = bbcode($menu['items'][$x]['mitem_desc']);
}
+ $wrap = (($var['wrap'] === 'none') ? false : true);
+
return replace_macros(get_markup_template('usermenu.tpl'),array(
'$menu' => $menu['menu'],
'$class' => $class,
'$edit' => (($edit) ? t("Edit") : ''),
'$id' => $menu['menu']['menu_id'],
- '$items' => $menu['items']
+ '$items' => $menu['items'],
+ '$wrap' => $wrap
));
}