X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Ffrio%2Fphp%2Fdefault.php;h=ce7fd4d777ef39539aee13839b1041a79348fcac;hb=838c0f96de57717e21e985cd2f92a130f568052d;hp=148f60c23acbc2111d68fa411b52b73fc32c8fc7;hpb=ec9f22de9275190dcf50798067a896470677c44a;p=friendica.git diff --git a/view/theme/frio/php/default.php b/view/theme/frio/php/default.php index 148f60c23a..ce7fd4d777 100644 --- a/view/theme/frio/php/default.php +++ b/view/theme/frio/php/default.php @@ -19,7 +19,11 @@ 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"; ?> @@ -28,14 +32,11 @@ $view_mode_class = ($a->is_mobile || $a->is_tablet) ? 'mobile-view' : 'desktop-v getURLPath() ? "/" . $a->getURLPath() . "/" : "/"; - $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']; } @@ -54,21 +55,19 @@ $view_mode_class = ($a->is_mobile || $a->is_tablet) ? 'mobile-view' : 'desktop-v } else { $nav_bg = PConfig::get($uid, 'frio', '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 is_mobile || $a->is_tablet) ? 'mobile-view' : 'desktop-v // special minimal style for modal dialogs if ($minimal) { ?> -
- +
+
is_mobile || $a->is_tablet) ? 'mobile-view' : 'desktop-v
'; - 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']; } @@ -114,7 +113,7 @@ $view_mode_class = ($a->is_mobile || $a->is_tablet) ? 'mobile-view' : 'desktop-v
'; - if (x($page, 'content')) { + if (!empty($page['content'])) { echo $page['content']; } echo ' @@ -125,7 +124,7 @@ $view_mode_class = ($a->is_mobile || $a->is_tablet) ? 'mobile-view' : 'desktop-v } else { echo '
'; - if (x($page, 'content')) { + if (!empty($page['content'])) { echo $page['content']; } echo '