aboutsummaryrefslogtreecommitdiffstats
path: root/boot.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 /boot.php
parent52b1ea10a1ef4ccec67b4248155651626ec24b44 (diff)
downloadvolse-hubzilla-4011dd18f01d275620b13815573e359c77664e3a.tar.gz
volse-hubzilla-4011dd18f01d275620b13815573e359c77664e3a.tar.bz2
volse-hubzilla-4011dd18f01d275620b13815573e359c77664e3a.zip
alternate navbar layouts
Diffstat (limited to 'boot.php')
-rwxr-xr-xboot.php16
1 files changed, 10 insertions, 6 deletions
diff --git a/boot.php b/boot.php
index f955ba511..df57009e5 100755
--- a/boot.php
+++ b/boot.php
@@ -2090,17 +2090,21 @@ function construct_page() {
$installing = false;
+ $navbar = get_config('system','navbar','nav');
+ if(App::$profile_uid) {
+ $navbar = get_pconfig(App::$profile_uid,'system','navbar',$navbar);
+ }
+
+ if($comanche && App::$layout['navbar']) {
+ $navbar = App::$layout['navbar'];
+ }
+
if (App::$module == 'setup') {
$installing = true;
} else {
- nav($a);
+ nav($navbar);
}
- if ($comanche) {
- if (App::$layout['nav']) {
- App::$page['nav'] = get_custom_nav(App::$layout['nav']);
- }
- }
$current_theme = Zotlabs\Render\Theme::current();