From ec9f22de9275190dcf50798067a896470677c44a Mon Sep 17 00:00:00 2001 From: rabuzarus Date: Wed, 31 Oct 2018 10:07:51 +0100 Subject: [PATCH 1/3] Frio - add desktop or mobile view class to the html body --- view/theme/frio/php/default.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/view/theme/frio/php/default.php b/view/theme/frio/php/default.php index aa86c9723..148f60c23 100644 --- a/view/theme/frio/php/default.php +++ b/view/theme/frio/php/default.php @@ -18,6 +18,8 @@ require_once 'view/theme/frio/php/frio_boot.php'; if (!isset($minimal)) { $minimal = false; } + +$view_mode_class = ($a->is_mobile || $a->is_tablet) ? 'mobile-view' : 'desktop-view'; ?> @@ -63,7 +65,7 @@ if (!isset($minimal)) { ?> - "> + "> Skip to main content Date: Wed, 31 Oct 2018 10:14:02 +0100 Subject: [PATCH 2/3] Frio - on mobiles the links in thread will always have the link color (disabling thread hover effect) --- view/theme/frio/css/style.css | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/view/theme/frio/css/style.css b/view/theme/frio/css/style.css index 58048efbc..9f03b436d 100644 --- a/view/theme/frio/css/style.css +++ b/view/theme/frio/css/style.css @@ -1538,11 +1538,11 @@ aside .panel-body { } /* Thread hover effects */ -.wall-item-container .wall-item-content a, -.wall-item-container a, -.wall-item-container .fakelink, -.toplevel_item .fakelink, -.toplevel_item .wall-item-container .wall-item-responses a { +.desktop-view .wall-item-container .wall-item-content a, +.desktop-view .wall-item-container a, +.desktop-view .wall-item-container .fakelink, +.desktop-view .toplevel_item .fakelink, +.desktop-view .toplevel_item .wall-item-container .wall-item-responses a { color: #555; -webkit-transition: all 0.25s ease-in-out; -moz-transition: all 0.25s ease-in-out; From d02f9408110406e9fa617fc12c81525b9aafd5c1 Mon Sep 17 00:00:00 2001 From: rabuzarus Date: Wed, 31 Oct 2018 10:22:32 +0100 Subject: [PATCH 3/3] Frio - some cleanups for default.php --- view/theme/frio/php/default.php | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/view/theme/frio/php/default.php b/view/theme/frio/php/default.php index 148f60c23..24c722e8e 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,9 +32,6 @@ $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) // @@ -54,14 +55,12 @@ $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 ''; ?> @@ -83,7 +82,7 @@ $view_mode_class = ($a->is_mobile || $a->is_tablet) ? 'mobile-view' : 'desktop-v // special minimal style for modal dialogs if ($minimal) { ?> -
+