From d02f9408110406e9fa617fc12c81525b9aafd5c1 Mon Sep 17 00:00:00 2001 From: rabuzarus Date: Wed, 31 Oct 2018 10:22:32 +0100 Subject: [PATCH] Frio - some cleanups for default.php --- view/theme/frio/php/default.php | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/view/theme/frio/php/default.php b/view/theme/frio/php/default.php index 148f60c23a..24c722e8e3 100644 --- a/view/theme/frio/php/default.php +++ b/view/theme/frio/php/default.php @@ -19,7 +19,11 @@ if (!isset($minimal)) { $minimal = false; } +$basepath = $a->getURLPath() ? "/" . $a->getURLPath() . "/" : "/"; +$frio = "view/theme/frio"; $view_mode_class = ($a->is_mobile || $a->is_tablet) ? 'mobile-view' : 'desktop-view'; +$is_singleuser = Config::get('system', 'singleuser'); +$is_singleuser_class = $is_singleuser ? "is-singleuser" : "is-not-singleuser"; ?> @@ -28,9 +32,6 @@ $view_mode_class = ($a->is_mobile || $a->is_tablet) ? 'mobile-view' : 'desktop-v getURLPath() ? "/" . $a->getURLPath() . "/" : "/"; - $frio = "view/theme/frio"; - // Because we use minimal for modals the header and the included js stuff should be only loaded // if the page is an standard page (so we don't have it twice for modals) // @@ -54,14 +55,12 @@ $view_mode_class = ($a->is_mobile || $a->is_tablet) ? 'mobile-view' : 'desktop-v } else { $nav_bg = PConfig::get($uid, 'frio', 'nav_bg'); } + if (empty($nav_bg)) { $nav_bg = "#708fa0"; } - echo ' - '; - $is_singleuser = Config::get('system','singleuser'); - $is_singleuser_class = $is_singleuser ? "is-singleuser" : "is-not-singleuser"; + echo ''; ?> @@ -83,7 +82,7 @@ $view_mode_class = ($a->is_mobile || $a->is_tablet) ? 'mobile-view' : 'desktop-v // special minimal style for modal dialogs if ($minimal) { ?> -
+
-- 2.39.5