X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=view%2Ftheme%2Ffrio%2Fphp%2Fdefault.php;h=2f6a6bbcfba6bdbe294a86a6ccfaae886a517cd5;hb=0a4119adaf6294bf43d135a0f435c1dd677c50e0;hp=ce7fd4d777ef39539aee13839b1041a79348fcac;hpb=3a9db3f6373330902a5efe42eb8790c240fba580;p=friendica.git diff --git a/view/theme/frio/php/default.php b/view/theme/frio/php/default.php index ce7fd4d777..2f6a6bbcfb 100644 --- a/view/theme/frio/php/default.php +++ b/view/theme/frio/php/default.php @@ -1,15 +1,14 @@ getURLPath() ? "/" . $a->getURLPath() . "/" : "/"; +$basepath = DI::baseUrl()->getUrlPath() ? "/" . DI::baseUrl()->getUrlPath() . "/" : "/"; $frio = "view/theme/frio"; -$view_mode_class = ($a->is_mobile || $a->is_tablet) ? 'mobile-view' : 'desktop-view'; +$view_mode_class = (DI::mode()->isMobile() || DI::mode()->isMobile()) ? 'mobile-view' : 'desktop-view'; $is_singleuser = Config::get('system', 'singleuser'); $is_singleuser_class = $is_singleuser ? "is-singleuser" : "is-not-singleuser"; ?> <?php if (!empty($page['title'])) echo $page['title'] ?> - - + + profile_uid; - if (is_null($uid)) { - $uid = Profile::getThemeUid(); - } - $scheme = PConfig::get($uid, 'frio', 'scheme', PConfig::get($uid, 'frio', 'schema')); - if ($scheme && ($scheme != '---')) { + $uid = Profile::getThemeUid($a); + $scheme = DI::pConfig()->get($uid, 'frio', 'scheme', DI::pConfig()->get($uid, 'frio', 'schema')); + if ($scheme && is_string($scheme) && $scheme != '---') { if (file_exists('view/theme/frio/scheme/' . $scheme . '.php')) { $schemefile = 'view/theme/frio/scheme/' . $scheme . '.php'; require_once $schemefile; } } else { - $nav_bg = PConfig::get($uid, 'frio', 'nav_bg'); + $nav_bg = DI::pConfig()->get($uid, 'frio', 'nav_bg'); } if (empty($nav_bg)) { + $nav_bg = Config::get('frio', 'nav_bg'); + } + + if (empty($nav_bg) || !is_string($nav_bg)) { $nav_bg = "#708fa0"; } @@ -64,7 +64,7 @@ $is_singleuser_class = $is_singleuser ? "is-singleuser" : "is-not-singleuser"; ?> - "> + "> Skip to main content -
+ +
@@ -139,7 +140,7 @@ $is_singleuser_class = $is_singleuser ? "is-singleuser" : "is-not-singleuser";