From 1c36d0da3066f64739d8787c6b2f135088defd62 Mon Sep 17 00:00:00 2001 From: Focuslinkstech <45756999+Focuslinkstech@users.noreply.github.com> Date: Tue, 21 May 2024 22:18:56 +0100 Subject: [PATCH 1/3] Update header.tpl fix admin maintenance mode notification not fit on mobile --- ui/ui/sections/header.tpl | 34 ++++++++++++++++++++++++++++------ 1 file changed, 28 insertions(+), 6 deletions(-) diff --git a/ui/ui/sections/header.tpl b/ui/ui/sections/header.tpl index 34fe639b..d3b86009 100644 --- a/ui/ui/sections/header.tpl +++ b/ui/ui/sections/header.tpl @@ -87,7 +87,7 @@ } } - /* + /* * maintenance top-bar */ @@ -98,12 +98,15 @@ height: 40px; line-height: 40px; width: 100%; - background: #ef0404; + background: #ec2106; text-align: center; - color: #ffff; - font-weight: bold; + color: #FFFFFF; + font-family: serif; + font-weight: bolder; font-size: 14px; z-index: 9999; + box-sizing: border-box; + padding: 0 10px; } .notification-top-bar p { @@ -118,6 +121,24 @@ color: #1ABC9C; font-weight: bold; text-decoration: none; + display: inline; + font-size: inherit; + } + + @media (max-width: 600px) { + .notification-top-bar { + font-size: 12px; + height: auto; + line-height: normal; + padding: 10px; + } + + .notification-top-bar p a { + padding: 5px 10px; + margin: 5px 0; + font-size: 10px; + display: inline-block; + } } {if isset($xheader)} @@ -431,8 +452,9 @@ {if $_c['maintenance_mode'] == 1}
-

{Lang::T('The website is currently in maintenance mode, this means that some or all functionality may be unavailable to regular users during this time.')}  {Lang::T('Turn Off Maintenance Mode')}

+

{Lang::T('The website is currently in maintenance mode, this means that some or all functionality may be + unavailable to regular users during this time.')}   {Lang::T('Turn Off')}

{/if} From fee1c150b7b35d3c8e96c628b247335ca4e21ca9 Mon Sep 17 00:00:00 2001 From: Focuslinkstech <45756999+Focuslinkstech@users.noreply.github.com> Date: Tue, 21 May 2024 22:39:41 +0100 Subject: [PATCH 2/3] Update User.php fix user not logout in maintenance mode --- system/autoload/User.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/system/autoload/User.php b/system/autoload/User.php index a18b1aa7..3f951137 100644 --- a/system/autoload/User.php +++ b/system/autoload/User.php @@ -159,6 +159,11 @@ class User public static function _info($id = 0) { + global $config; + if ($config['maintenance_mode'] == true) { + // displayMaintenanceMessage(); + r2(U . 'logout', 'd', ''); + } if (!$id) { $id = User::getID(); } From 01dd8556326c8fdb5217a1e1ff151128408bf50c Mon Sep 17 00:00:00 2001 From: Focuslinkstech <45756999+Focuslinkstech@users.noreply.github.com> Date: Tue, 21 May 2024 22:43:02 +0100 Subject: [PATCH 3/3] Update User.php --- system/autoload/User.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/autoload/User.php b/system/autoload/User.php index 3f951137..3d897bdf 100644 --- a/system/autoload/User.php +++ b/system/autoload/User.php @@ -161,8 +161,8 @@ class User { global $config; if ($config['maintenance_mode'] == true) { - // displayMaintenanceMessage(); - r2(U . 'logout', 'd', ''); + displayMaintenanceMessage(); + // r2(U . 'logout', 'd', ''); } if (!$id) { $id = User::getID();