X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Ffrio%2Fphp%2Fdefault.php;h=b9600cc22e3b991f84d882ed2b519a8e1feef641;hb=0a284edde7580b2d127b1fc764067a785e88252c;hp=cb683285313c04fb9546d27f49ceefaed0d38e7c;hpb=334c628511d1c9c3c1a619d004d2ce0f0ea9225f;p=friendica.git diff --git a/view/theme/frio/php/default.php b/view/theme/frio/php/default.php index cb68328531..b9600cc22e 100644 --- a/view/theme/frio/php/default.php +++ b/view/theme/frio/php/default.php @@ -18,6 +18,12 @@ require_once 'view/theme/frio/php/frio_boot.php'; 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"; ?>
@@ -26,23 +32,17 @@ if (!isset($minimal)) { urlpath ? "/" . $a->urlpath . "/" : "/"; - $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) // /// @todo Think about to move js stuff in the footer - if (!$minimal && x($page, 'htmlhead')) { + if (!$minimal && !empty($page['htmlhead'])) { echo $page['htmlhead']; } // Add the theme color meta // It makes mobile Chrome UI match Frio's top bar color. - $uid = $a->profile_uid; - if (is_null($uid)) { - $uid = Profile::getThemeUid(); - } + $uid = Profile::getThemeUid($a); $scheme = PConfig::get($uid, 'frio', 'scheme', PConfig::get($uid, 'frio', 'schema')); if ($scheme && ($scheme != '---')) { if (file_exists('view/theme/frio/scheme/' . $scheme . '.php')) { @@ -52,21 +52,19 @@ if (!isset($minimal)) { } 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 ''; ?> - "> + "> Skip to main content -