Skip to content

Commit 2d6c3c0

Browse files
committed
added warning message in backend if website is on ofline mode
1 parent a1d5c97 commit 2d6c3c0

File tree

22 files changed

+25
-0
lines changed

22 files changed

+25
-0
lines changed

app/base/abstracts/Controllers/AdminPage.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,10 @@ public function renderPage(?RouteInfo $route_info = null, array $route_data = []
158158
*/
159159
protected function prepareTemplate(): Template
160160
{
161+
if (is_file(App::getDir(App::APP) . DS . 'offline.flag')) {
162+
$this->addWarningFlashMessage($this->getUtils()->translate('Website is currentrly offline', locale: $this->getCurrentLocale()), true);
163+
}
164+
161165
$template = $this->getTemplates()->make('admin::' . $this->getTemplateName());
162166
$template->data($this->getTemplateData() + $this->getBaseTemplateData());
163167

translations/ar.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,4 +352,5 @@
352352
'For any communications upon delivery' => 'لأي اتصالات عند التسليم',
353353
'Notes for delivery' => 'ملاحظات للتسليم',
354354
'Order Confirmation' => 'تأكيد الطلب',
355+
'Website is currently offline' => 'الموقع غير متصل حالياً',
355356
];

translations/bn.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,4 +379,5 @@
379379
'For any communications upon delivery' => 'ডেলিভারির সময় যেকোনো যোগাযোগের জন্য',
380380
'Notes for delivery' => 'ডেলিভারির জন্য নোট',
381381
'Order Confirmation' => 'অর্ডার নিশ্চিতকরণ',
382+
'Website is currently offline' => 'ওয়েবসাইট বর্তমানে অফলাইনে আছে',
382383
];

translations/de.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,4 +377,5 @@
377377
'For any communications upon delivery' => 'Für jegliche Kommunikation bei Lieferung',
378378
'Notes for delivery' => 'Hinweise zur Lieferung',
379379
'Order Confirmation' => 'Bestellbestätigung',
380+
'Website is currently offline' => 'Die Website ist derzeit offline',
380381
];

translations/el.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,4 +377,5 @@
377377
'For any communications upon delivery' => 'Για οποιαδήποτε επικοινωνία κατά την παράδοση',
378378
'Notes for delivery' => 'Σημειώσεις για την παράδοση',
379379
'Order Confirmation' => 'Επιβεβαίωση Παραγγελίας',
380+
'Website is currently offline' => 'Ο ιστότοπος είναι προσωρινά εκτός λειτουργίας',
380381
];

translations/en.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,4 +377,5 @@
377377
'For any communications upon delivery' => 'For any communications upon delivery',
378378
'Notes for delivery' => 'Notes for delivery',
379379
'Order Confirmation' => 'Order Confirmation',
380+
'Website is currently offline' => 'Website is currently offline',
380381
];

translations/es.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,4 +377,5 @@
377377
'For any communications upon delivery' => 'Para cualquier comunicación al momento de la entrega',
378378
'Notes for delivery' => 'Notas para la entrega',
379379
'Order Confirmation' => 'Confirmación de pedido',
380+
'Website is currently offline' => 'El sitio web está actualmente fuera de línea',
380381
];

translations/fr.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,4 +377,5 @@
377377
'For any communications upon delivery' => 'Pour toute communication à la livraison',
378378
'Notes for delivery' => 'Notes pour la livraison',
379379
'Order Confirmation' => 'Confirmation de commande',
380+
'Website is currently offline' => 'Le site est actuellement hors ligne',
380381
];

translations/hi.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,4 +377,5 @@
377377
'For any communications upon delivery' => 'डिलीवरी पर किसी भी संचार के लिए',
378378
'Notes for delivery' => 'डिलीवरी के लिए नोट्स',
379379
'Order Confirmation' => 'ऑर्डर पुष्टि',
380+
'Website is currently offline' => 'वेबसाइट वर्तमान में ऑफलाइन है',
380381
];

translations/hu.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,4 +377,5 @@
377377
'For any communications upon delivery' => 'Bármilyen kommunikációhoz a szállítás során',
378378
'Notes for delivery' => 'Megjegyzések a szállításhoz',
379379
'Order Confirmation' => 'Rendelés megerősítése',
380+
'Website is currently offline' => 'A weboldal jelenleg offline állapotban van',
380381
];

0 commit comments

Comments
 (0)