aboutsummaryrefslogtreecommitdiffstats
path: root/include/nav.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-10-08 16:48:24 -0700
committerzotlabs <mike@macgirvin.com>2017-10-08 16:48:24 -0700
commit4011dd18f01d275620b13815573e359c77664e3a (patch)
tree3ee8037618ec387eb7bff2ae8cbccbb113439bee /include/nav.php
parent52b1ea10a1ef4ccec67b4248155651626ec24b44 (diff)
downloadvolse-hubzilla-4011dd18f01d275620b13815573e359c77664e3a.tar.gz
volse-hubzilla-4011dd18f01d275620b13815573e359c77664e3a.tar.bz2
volse-hubzilla-4011dd18f01d275620b13815573e359c77664e3a.zip
alternate navbar layouts
Diffstat (limited to 'include/nav.php')
-rw-r--r--include/nav.php14
1 files changed, 11 insertions, 3 deletions
diff --git a/include/nav.php b/include/nav.php
index 6b56c9aee..622717347 100644
--- a/include/nav.php
+++ b/include/nav.php
@@ -6,7 +6,7 @@ require_once('include/security.php');
require_once('include/menu.php');
-function nav() {
+function nav($template = 'nav') {
/**
*
@@ -267,7 +267,16 @@ EOT;
$nav_apps[] = Zlib\Apps::app_render($app,'nav');
}
- $tpl = get_markup_template('nav.tpl');
+ $c = theme_include('navbar_' . $template . '.css');
+ $tpl = get_markup_template('navbar_' . $template . '.tpl');
+
+ if($c && $tpl) {
+ head_add_css('navbar_' . $template . '.css');
+ }
+
+ if(! $tpl) {
+ $tpl = get_markup_template('nav.tpl');
+ }
App::$page['nav'] .= replace_macros($tpl, array(
'$baseurl' => z_root(),
@@ -490,7 +499,6 @@ function channel_apps($is_owner = false, $nickname = null) {
'$tabs' => $arr['tabs'],
'$name' => App::$profile['channel_name'],
'$thumb' => App::$profile['thumb'],
- '$channel_menu' => get_config('system','channel_menu')
]
);
}