diff options
author | zotlabs <mike@macgirvin.com> | 2017-10-08 16:48:24 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-10-08 16:48:24 -0700 |
commit | 4011dd18f01d275620b13815573e359c77664e3a (patch) | |
tree | 3ee8037618ec387eb7bff2ae8cbccbb113439bee /include | |
parent | 52b1ea10a1ef4ccec67b4248155651626ec24b44 (diff) | |
download | volse-hubzilla-4011dd18f01d275620b13815573e359c77664e3a.tar.gz volse-hubzilla-4011dd18f01d275620b13815573e359c77664e3a.tar.bz2 volse-hubzilla-4011dd18f01d275620b13815573e359c77664e3a.zip |
alternate navbar layouts
Diffstat (limited to 'include')
-rw-r--r-- | include/nav.php | 14 |
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') ] ); } |