diff --git a/classes/controller/FrontController.php b/classes/controller/FrontController.php index 9725e99f1..688b85379 100644 --- a/classes/controller/FrontController.php +++ b/classes/controller/FrontController.php @@ -575,6 +575,9 @@ class FrontControllerCore extends Controller header('HTTP/1.1 503 temporarily overloaded'); $this->context->smarty->assign($this->initLogoAndFavicon()); + $this->context->smarty->assign(array( + 'HOOK_MAINTENANCE' => Hook::exec('displayMaintenance', array()), + )); $template_dir = ($this->context->getMobileDevice() == true ? _PS_THEME_MOBILE_DIR_ : _PS_THEME_DIR_); $this->smartyOutputContent($template_dir.'maintenance.tpl'); diff --git a/install-dev/data/xml/hook.xml b/install-dev/data/xml/hook.xml index 005284227..068532dfd 100644 --- a/install-dev/data/xml/hook.xml +++ b/install-dev/data/xml/hook.xml @@ -13,6 +13,9 @@ actionValidateOrderNew orders + + displayMaintenanceMaintenance PageThis hook displays new elements on the maintenance page + actionPaymentConfirmationPayment confirmationThis hook displays new elements after the payment is validated diff --git a/themes/default/maintenance.tpl b/themes/default/maintenance.tpl index 72cc8ae03..3a47a7269 100644 --- a/themes/default/maintenance.tpl +++ b/themes/default/maintenance.tpl @@ -40,11 +40,14 @@
+

logo

+ {$HOOK_MAINTENANCE}

{l s='In order to perform website maintenance, our online store will be temporarily offline.'}

{l s='We apologize for the inconvenience and ask that you please try again later.'}

+