X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=inline;f=view%2Ftheme%2Ffrio%2Fphp%2Fdefault.php;h=bd5ef7f3ff3318b8ebb036d5bb7c308cf038750e;hb=8293d5ed0af78ae6cc5629bb1f982a7b29794d32;hp=29d7ab53c1c4e4a78ffbfc06f8bd85a467f100ad;hpb=af77af0446476290e7fcbf7db29f7feabced0f64;p=friendica.git
diff --git a/view/theme/frio/php/default.php b/view/theme/frio/php/default.php
index 29d7ab53c1..bd5ef7f3ff 100644
--- a/view/theme/frio/php/default.php
+++ b/view/theme/frio/php/default.php
@@ -1,15 +1,30 @@
.
+ *
+ * The default site template
*/
+
?>
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';
-$is_singleuser = Config::get('system', 'singleuser');
+$view_mode_class = (DI::mode()->isMobile() || DI::mode()->isMobile()) ? 'mobile-view' : 'desktop-view';
+$is_singleuser = DI::config()->get('system', 'singleuser');
$is_singleuser_class = $is_singleuser ? "is-singleuser" : "is-not-singleuser";
?>
-
-
+
+
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 = DI::config()->get('frio', 'nav_bg');
+ }
+
+ if (empty($nav_bg) || !is_string($nav_bg)) {
$nav_bg = "#708fa0";
}
@@ -61,16 +80,16 @@ $is_singleuser_class = $is_singleuser ? "is-singleuser" : "is-not-singleuser";
?>
- ">
- Skip to main content
+ ">
+ t('Skip to main content'); ?>
get('config', 'sitename'),
str_replace(
"~system.banner~",
- Config::get('system', 'banner'),
+ DI::config()->get('system', 'banner'),
$page['nav']
)
);
@@ -79,7 +98,8 @@ $is_singleuser_class = $is_singleuser ? "is-singleuser" : "is-not-singleuser";
// special minimal style for modal dialogs
if ($minimal) {
?>
-
+
+
@@ -136,7 +156,7 @@ $is_singleuser_class = $is_singleuser ? "is-singleuser" : "is-not-singleuser";