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"; ?>