From 6bad8874e3e7a297a1ac0772cf67f8f43c0e9dd2 Mon Sep 17 00:00:00 2001
From: Focuslinkstech <45756999+Focuslinkstech@users.noreply.github.com>
Date: Tue, 21 May 2024 09:55:01 +0100
Subject: [PATCH 1/2] Update maintenance.tpl
fixed maintenance mode page not fit on mobile
---
ui/ui/maintenance.tpl | 75 ++++++++++++++++++++++++++++++++-----------
1 file changed, 56 insertions(+), 19 deletions(-)
diff --git a/ui/ui/maintenance.tpl b/ui/ui/maintenance.tpl
index 0ac1e37c..80a79f56 100644
--- a/ui/ui/maintenance.tpl
+++ b/ui/ui/maintenance.tpl
@@ -2,42 +2,45 @@
- Site is down for maintenance
+ {Lang::T('Site is down for maintenance')}
@@ -172,9 +210,8 @@
{Lang::T('Site is temporarily unavailable.')}
{Lang::T('Scheduled maintenance is currently in progress. Please check back soon.')}
- {Lang::T('We apologize for any inconvenience.')}
- — {Lang::T('The')} {$companyName} {Lang::T('Team')}.
-
+ {Lang::T('We apologize for any inconvenience.')}
— {Lang::T('The ')} {$companyName} {Lang::T('
+ Team.')}
{if $date}
From fcb489190f307b8a6ca3a5bfbf7aae90641f90fa Mon Sep 17 00:00:00 2001
From: Focuslinkstech <45756999+Focuslinkstech@users.noreply.github.com>
Date: Tue, 21 May 2024 10:39:01 +0100
Subject: [PATCH 2/2] Update header.tpl
add maintenance mode notification for admin
---
ui/ui/sections/header.tpl | 40 +++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
diff --git a/ui/ui/sections/header.tpl b/ui/ui/sections/header.tpl
index 12ee84fa..34fe639b 100644
--- a/ui/ui/sections/header.tpl
+++ b/ui/ui/sections/header.tpl
@@ -86,6 +86,39 @@
transform: rotate(360deg);
}
}
+
+ /*
+ * maintenance top-bar
+ */
+
+ .notification-top-bar {
+ position: fixed;
+ top: 0;
+ left: 0;
+ height: 40px;
+ line-height: 40px;
+ width: 100%;
+ background: #ef0404;
+ text-align: center;
+ color: #ffff;
+ font-weight: bold;
+ font-size: 14px;
+ z-index: 9999;
+ }
+
+ .notification-top-bar p {
+ padding: 0;
+ margin: 0;
+ }
+
+ .notification-top-bar p a {
+ padding: 5px 10px;
+ border-radius: 3px;
+ background: #FFF;
+ color: #1ABC9C;
+ font-weight: bold;
+ text-decoration: none;
+ }
{if isset($xheader)}
{$xheader}
@@ -396,6 +429,13 @@
+ {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')}
+
+ {/if}
+