Merge pull request #782 from 202-ecommerce/development
[*] FO : Added new Maintenance Hook
This commit is contained in:
@@ -578,6 +578,9 @@ class FrontControllerCore extends Controller
|
|||||||
header('HTTP/1.1 503 temporarily overloaded');
|
header('HTTP/1.1 503 temporarily overloaded');
|
||||||
|
|
||||||
$this->context->smarty->assign($this->initLogoAndFavicon());
|
$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_);
|
$template_dir = ($this->context->getMobileDevice() == true ? _PS_THEME_MOBILE_DIR_ : _PS_THEME_DIR_);
|
||||||
$this->smartyOutputContent($template_dir.'maintenance.tpl');
|
$this->smartyOutputContent($template_dir.'maintenance.tpl');
|
||||||
|
|||||||
@@ -13,6 +13,9 @@
|
|||||||
<hook id="actionValidateOrder" live_edit="0">
|
<hook id="actionValidateOrder" live_edit="0">
|
||||||
<name>actionValidateOrder</name><title>New orders</title><description/>
|
<name>actionValidateOrder</name><title>New orders</title><description/>
|
||||||
</hook>
|
</hook>
|
||||||
|
<hook id="displayMaintenance" live_edit="0">
|
||||||
|
<name>displayMaintenance</name><title>Maintenance Page</title><description>This hook displays new elements on the maintenance page</description>
|
||||||
|
</hook>
|
||||||
<hook id="actionPaymentConfirmation" live_edit="0">
|
<hook id="actionPaymentConfirmation" live_edit="0">
|
||||||
<name>actionPaymentConfirmation</name><title>Payment confirmation</title><description>This hook displays new elements after the payment is validated</description>
|
<name>actionPaymentConfirmation</name><title>Payment confirmation</title><description>This hook displays new elements after the payment is validated</description>
|
||||||
</hook>
|
</hook>
|
||||||
|
|||||||
@@ -40,11 +40,14 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="maintenance">
|
<div id="maintenance">
|
||||||
|
|
||||||
<p><img src="{$logo_url}" {if $logo_image_width}width="{$logo_image_width}"{/if} {if $logo_image_height}height="{$logo_image_height}"{/if} alt="logo" /><br /><br /></p>
|
<p><img src="{$logo_url}" {if $logo_image_width}width="{$logo_image_width}"{/if} {if $logo_image_height}height="{$logo_image_height}"{/if} alt="logo" /><br /><br /></p>
|
||||||
|
{$HOOK_MAINTENANCE}
|
||||||
<p id="message">
|
<p id="message">
|
||||||
{l s='In order to perform website maintenance, our online store will be temporarily offline.'}<br /><br />
|
{l s='In order to perform website maintenance, our online store will be temporarily offline.'}<br /><br />
|
||||||
{l s='We apologize for the inconvenience and ask that you please try again later.'}
|
{l s='We apologize for the inconvenience and ask that you please try again later.'}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<span style="clear:both;"> </span>
|
<span style="clear:both;"> </span>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
Reference in New Issue
Block a user