aboutsummaryrefslogtreecommitdiffstats
path: root/include/menu.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-02-25 20:58:20 -0800
committerfriendica <info@friendica.com>2014-02-25 20:58:20 -0800
commit364fc9f1638e67dad2c289b4d365753a5d06ac05 (patch)
treee12d07cd3e090488f1d8660b47633aa442b09a68 /include/menu.php
parent1857036a994a5470aaece799d3bf07fbc863a91f (diff)
downloadvolse-hubzilla-364fc9f1638e67dad2c289b4d365753a5d06ac05.tar.gz
volse-hubzilla-364fc9f1638e67dad2c289b4d365753a5d06ac05.tar.bz2
volse-hubzilla-364fc9f1638e67dad2c289b4d365753a5d06ac05.zip
comanche: provide an option to add a menu class for different theming choices on some menus (e.g. horizontal, tabbed, etc.)
Diffstat (limited to 'include/menu.php')
-rw-r--r--include/menu.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/menu.php b/include/menu.php
index 2f1719d0b..4b0a11f10 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, $edit = false) {
+function menu_render($menu, $class='', $edit = false) {
if(! $menu)
return '';
@@ -38,6 +38,7 @@ function menu_render($menu, $edit = false) {
return replace_macros(get_markup_template('usermenu.tpl'),array(
'$menu' => $menu['menu'],
+ '$class' => $class,
'$edit' => (($edit) ? t("Edit") : ''),
'$items' => $menu['items']
));