X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Ffrio%2Fphp%2Fdefault.php;h=ce7fd4d777ef39539aee13839b1041a79348fcac;hb=838c0f96de57717e21e985cd2f92a130f568052d;hp=ee3b745416f014eb72e892f3d0cf3711a6e2372e;hpb=a65e93faea54b4c7e474e37f106843589c0ecd19;p=friendica.git diff --git a/view/theme/frio/php/default.php b/view/theme/frio/php/default.php index ee3b745416..ce7fd4d777 100644 --- a/view/theme/frio/php/default.php +++ b/view/theme/frio/php/default.php @@ -18,23 +18,25 @@ require_once 'view/theme/frio/php/frio_boot.php'; if (!isset($minimal)) { $minimal = false; } + +$basepath = $a->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'] ?> + path ? "/" . $a->path . "/" : "/"; - $frio = "view/theme/frio"; - // Because we use minimal for modals the header and the included js stuff should be only loaded // if the page is an standard page (so we don't have it twice for modals) // /// @todo Think about to move js stuff in the footer - if (!$minimal && x($page, 'htmlhead')) { + if (!$minimal && !empty($page['htmlhead'])) { echo $page['htmlhead']; } @@ -44,30 +46,28 @@ if (!isset($minimal)) { if (is_null($uid)) { $uid = Profile::getThemeUid(); } - $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'; + $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 = PConfig::get($uid, 'frio', 'nav_bg'); } - if (!$nav_bg) { + + if (empty($nav_bg)) { $nav_bg = "#708fa0"; } - echo ' - '; - $is_singleuser = Config::get('system','singleuser'); - $is_singleuser_class = $is_singleuser ? "is-singleuser" : "is-not-singleuser"; + echo ''; ?> - "> + "> Skip to main content -
- +
+
'; - if (x($page, 'aside')) { + if (!empty($page['aside'])) { echo $page['aside']; } - if (x($page, 'right_aside')) { + if (!empty($page['right_aside'])) { echo $page['right_aside']; } @@ -113,7 +113,7 @@ if (!isset($minimal)) {
'; - if (x($page, 'content')) { + if (!empty($page['content'])) { echo $page['content']; } echo ' @@ -124,7 +124,7 @@ if (!isset($minimal)) { } else { echo '
'; - if (x($page, 'content')) { + if (!empty($page['content'])) { echo $page['content']; } echo ' @@ -139,27 +139,7 @@ if (!isset($minimal)) {
- - - - - -
- +