X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Ffrio%2Fphp%2Fdefault.php;h=b9600cc22e3b991f84d882ed2b519a8e1feef641;hb=0a284edde7580b2d127b1fc764067a785e88252c;hp=8a7668cf7db9411f17dc1820a36cd76c1b64afbf;hpb=b78996416ce8c195dfd725c332c7fbddefe08832;p=friendica.git diff --git a/view/theme/frio/php/default.php b/view/theme/frio/php/default.php index 8a7668cf7d..b9600cc22e 100644 --- a/view/theme/frio/php/default.php +++ b/view/theme/frio/php/default.php @@ -6,137 +6,137 @@ ?> 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 = get_pconfig($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 && ($scheme != '---')) { + if (file_exists('view/theme/frio/scheme/' . $scheme . '.php')) { + $schemefile = 'view/theme/frio/scheme/' . $scheme . '.php'; + require_once $schemefile; } } else { - $nav_bg = get_pconfig($uid, 'frio', 'nav_bg'); + $nav_bg = PConfig::get($uid, 'frio', 'nav_bg'); } - if (!$nav_bg) { + + if (empty($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 '
- "; + '; } ?> -
-
- -
-
- -
- - - +
+
- -
+
+
- - - + + +