X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Ffrio%2Fphp%2Fdefault.php;h=22bb995804a474cd032d74f1bb479351fdf7577a;hb=0a82fe4211f73cf10107feb69fe38eaa85eb61f8;hp=ee7102992917f1689cde5d863e6caabdfbfe9c54;hpb=cd1724eb9ef4e07ced4c9019dd7bad55dc21abce;p=friendica.git diff --git a/view/theme/frio/php/default.php b/view/theme/frio/php/default.php index ee71029929..22bb995804 100644 --- a/view/theme/frio/php/default.php +++ b/view/theme/frio/php/default.php @@ -6,140 +6,142 @@ ?> 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"; ?> - - <?php if(x($page,'title')) echo $page['title'] ?> - - - - - - + <?php if (!empty($page['title'])) echo $page['title'] ?> + + + + - profile_uid; - if (is_null($uid)) { - $uid = get_theme_uid(); - } - $schema = PConfig::get($uid, 'frio', 'schema'); - if (($schema) && ($schema != '---')) { - if (file_exists('view/theme/frio/schema/'.$schema.'.php')) { - $schemefile = 'view/theme/frio/schema/'.$schema.'.php'; - require_once($schemefile); + $uid = Profile::getThemeUid($a); + $scheme = PConfig::get($uid, 'frio', 'scheme', 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'); } - if (!$nav_bg) { + + if (empty($nav_bg)) { + $nav_bg = Config::get('frio', 'nav_bg'); + } + + if (empty($nav_bg) || !is_string($nav_bg)) { $nav_bg = "#708fa0"; } - echo ''; - ?> - -"; -} -else -{ - echo""; -} + echo ''; ?> -Skip to main content + + + "> + Skip to main content -
+ +
+
-
-
-
- "; if(x($page,'aside')) echo $page['aside']; echo" - "; if(x($page,'right_aside')) echo $page['right_aside']; echo" + } else { + // the style for all other pages +?> +
+
+
+'; + + if (!empty($page['aside'])) { + echo $page['aside']; + } + + if (!empty($page['right_aside'])) { + echo $page['right_aside']; + } + + echo ' -
-
argv[0]; echo "-content-wrapper\">"; - if(x($page,'content')) echo $page['content']; echo" -
+
+
'; + if (!empty($page['content'])) { + echo $page['content']; + } + echo ' +
- "; - } - else - { - echo" -
- "; if(x($page,'content')) echo $page['content']; echo" + '; + } else { + echo ' +
'; + if (!empty($page['content'])) { + echo $page['content']; + } + echo '
- "; + '; } ?> -
-
- -
-
- -
- - - - - -
- -
- - +
+
+ +
+
+ + + +