X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Ffrio%2Fphp%2Fdefault.php;h=2f6a6bbcfba6bdbe294a86a6ccfaae886a517cd5;hb=0a4119adaf6294bf43d135a0f435c1dd677c50e0;hp=b297fcb48174629de382d2609c542ec5835e8039;hpb=2628da422a57f573466f08ca3eb5791bf2bc35cf;p=friendica.git diff --git a/view/theme/frio/php/default.php b/view/theme/frio/php/default.php index b297fcb481..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'] ?> - - + + 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)) { @@ -61,7 +64,7 @@ $is_singleuser_class = $is_singleuser ? "is-singleuser" : "is-not-singleuser"; ?> - "> + "> Skip to main content - +
@@ -137,7 +140,7 @@ $is_singleuser_class = $is_singleuser ? "is-singleuser" : "is-not-singleuser";