X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=view%2Ftheme%2Ffrio%2Fphp%2Fdefault.php;h=ce7fd4d777ef39539aee13839b1041a79348fcac;hb=5a3991d4f7bc929c1087d9275716fc1c8cc299a6;hp=6d2e78656428c545275e83c884529e3a91a8ef94;hpb=1bd85971a4447f68673cd823a33034881304edf7;p=friendica.git diff --git a/view/theme/frio/php/default.php b/view/theme/frio/php/default.php index 6d2e786564..ce7fd4d777 100644 --- a/view/theme/frio/php/default.php +++ b/view/theme/frio/php/default.php @@ -6,137 +6,140 @@ ?> 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(); + $uid = Profile::getThemeUid(); } - $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); + $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 '
- "; + '; } ?> -
-
- -
-
- -
- - - +
+
- -
+
+
- - - + + +