// Set admin display hooks in templates
This commit is contained in:
@@ -148,9 +148,7 @@
|
|||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{* display hook specified to this page : AdminCustomers *}
|
{* display hook specified to this page : AdminCustomers *}
|
||||||
{if $hook !== false}
|
<div>{hook h="displayAdminCustomers" id_customer=$customer->id}</div>
|
||||||
<div>{$hook}</div>
|
|
||||||
{/if}
|
|
||||||
|
|
||||||
<div class="clear"> </div>
|
<div class="clear"> </div>
|
||||||
|
|
||||||
|
|||||||
@@ -28,6 +28,6 @@
|
|||||||
{block name="end_field_block"}
|
{block name="end_field_block"}
|
||||||
</div>
|
</div>
|
||||||
{if $input.name == 'id_feature'}
|
{if $input.name == 'id_feature'}
|
||||||
{if isset($hook)}{$hook}{/if}
|
{hook h="displayFeatureValueForm" id_feature_value=$feature_value->id}
|
||||||
{/if}
|
{/if}
|
||||||
{/block}
|
{/block}
|
||||||
|
|||||||
@@ -27,7 +27,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{if $display_footer}
|
{if $display_footer}
|
||||||
{$HOOK_FOOTER}
|
{hook h="displayBackOfficeFooter"}
|
||||||
<div id="footer">
|
<div id="footer">
|
||||||
<div class="footerLeft">
|
<div class="footerLeft">
|
||||||
<a href="http://www.prestashop.com/" target="_blank">PrestaShop™ {$ps_version}</a><br />
|
<a href="http://www.prestashop.com/" target="_blank">PrestaShop™ {$ps_version}</a><br />
|
||||||
|
|||||||
@@ -81,7 +81,7 @@
|
|||||||
|
|
||||||
<link rel="shortcut icon" href="{$img_dir}favicon.ico" />
|
<link rel="shortcut icon" href="{$img_dir}favicon.ico" />
|
||||||
{if $display_header}
|
{if $display_header}
|
||||||
{$HOOK_HEADER}
|
{hook h="displayBackOfficeHeader"}
|
||||||
{/if}
|
{/if}
|
||||||
<!--[if IE]>
|
<!--[if IE]>
|
||||||
<link type="text/css" rel="stylesheet" href="{$base_url}css/admin-ie.css" />
|
<link type="text/css" rel="stylesheet" href="{$base_url}css/admin-ie.css" />
|
||||||
@@ -191,7 +191,7 @@
|
|||||||
{if $multi_shop}
|
{if $multi_shop}
|
||||||
<div id="header_shoplist"><span>{l s='Select your shop:'}</span>{$shop_list}</div>
|
<div id="header_shoplist"><span>{l s='Select your shop:'}</span>{$shop_list}</div>
|
||||||
{/if}
|
{/if}
|
||||||
{$HOOK_TOP}
|
{hook h="displayBackOfficeTop"}
|
||||||
</div>
|
</div>
|
||||||
<ul id="menu">
|
<ul id="menu">
|
||||||
{if !$tab}
|
{if !$tab}
|
||||||
|
|||||||
@@ -110,16 +110,16 @@ $(document).ready(function() {
|
|||||||
<div id="partner_preactivation"><p class="center"><img src="../img/loader.gif" alt="" />{l s='Loading...'}</p></div>
|
<div id="partner_preactivation"><p class="center"><img src="../img/loader.gif" alt="" />{l s='Loading...'}</p></div>
|
||||||
<div id="discover_prestashop"><p class="center"><img src="../img/loader.gif" alt="" />{l s='Loading...'}</p></div>
|
<div id="discover_prestashop"><p class="center"><img src="../img/loader.gif" alt="" />{l s='Loading...'}</p></div>
|
||||||
</div>
|
</div>
|
||||||
{$HOOK_BACKOFFICEHOME}
|
{hook h="displayBackOfficeHome"}
|
||||||
</div>
|
</div>
|
||||||
<div class="clear"> </div>
|
<div class="clear"> </div>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
|
||||||
if({$refresh_check_version})
|
if ({$refresh_check_version})
|
||||||
{
|
{
|
||||||
$('#blockNewVersionCheck').hide();
|
$('#blockNewVersionCheck').hide();
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type : 'POST',
|
type : 'POST',
|
||||||
data : {
|
data : {
|
||||||
ajax : '1',
|
ajax : '1',
|
||||||
|
|||||||
@@ -56,8 +56,9 @@
|
|||||||
{/foreach}
|
{/foreach}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{if ($HOOK_INVOICE)}
|
{assign var="hook_invoice" value={hook h="displayInvoice" id_order=$order->id}}
|
||||||
<div style="float: right; margin: -40px 40px 10px 0;">{$HOOK_INVOICE}</div><br class="clear" />';
|
{if ($hook_invoice)}
|
||||||
|
<div style="float: right; margin: -40px 40px 10px 0;">{$hook_invoice}</div><br class="clear" />';
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
<div class="bloc-command">
|
<div class="bloc-command">
|
||||||
@@ -183,9 +184,7 @@
|
|||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
<!-- Admin order hook -->
|
<!-- Admin order hook -->
|
||||||
{if $HOOK_ADMIN_ORDER}
|
{hook h="displayAdminOrder" id_order=$order->id}
|
||||||
{$HOOK_ADMIN_ORDER}
|
|
||||||
{/if}
|
|
||||||
</div>
|
</div>
|
||||||
<!-- END Left column -->
|
<!-- END Left column -->
|
||||||
|
|
||||||
|
|||||||
@@ -1336,10 +1336,6 @@ class AdminControllerCore extends Controller
|
|||||||
'is_multishop' => $is_multishop,
|
'is_multishop' => $is_multishop,
|
||||||
'pic_dir' => _THEME_PROD_PIC_DIR_
|
'pic_dir' => _THEME_PROD_PIC_DIR_
|
||||||
));
|
));
|
||||||
$this->context->smarty->assign(array(
|
|
||||||
'HOOK_HEADER' => Hook::exec('displayBackOfficeHeader'),
|
|
||||||
'HOOK_TOP' => Hook::exec('displayBackOfficeTop'),
|
|
||||||
));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -1426,10 +1422,6 @@ class AdminControllerCore extends Controller
|
|||||||
'end_time' => number_format(microtime(true) - $this->timerStart, 3, '.', ''),
|
'end_time' => number_format(microtime(true) - $this->timerStart, 3, '.', ''),
|
||||||
'iso_is_fr' => strtoupper($this->context->language->iso_code) == 'FR',
|
'iso_is_fr' => strtoupper($this->context->language->iso_code) == 'FR',
|
||||||
));
|
));
|
||||||
|
|
||||||
$this->context->smarty->assign(array(
|
|
||||||
'HOOK_FOOTER' => Hook::exec('displayBackOfficeFooter'),
|
|
||||||
));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -657,9 +657,6 @@ class AdminCustomersControllerCore extends AdminController
|
|||||||
// Messages
|
// Messages
|
||||||
'messages' => $messages,
|
'messages' => $messages,
|
||||||
|
|
||||||
// Display hook specified to this page : AdminCustomers
|
|
||||||
'hook' => Hook::exec('displayAdminCustomers', array('id_customer' => $customer->id)),
|
|
||||||
|
|
||||||
// Groups
|
// Groups
|
||||||
'groups' => $groups,
|
'groups' => $groups,
|
||||||
|
|
||||||
|
|||||||
@@ -263,7 +263,7 @@ class AdminFeaturesControllerCore extends AdminController
|
|||||||
$feature_value = new FeatureValue(Tools::getValue('id_feature_value'));
|
$feature_value = new FeatureValue(Tools::getValue('id_feature_value'));
|
||||||
|
|
||||||
$this->tpl_vars = array(
|
$this->tpl_vars = array(
|
||||||
'hook' => Hook::exec('displayFeatureValueForm', array('id_feature_value' => $feature_value->id))
|
'feature_value' => $feature_value,
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->getlanguages();
|
$this->getlanguages();
|
||||||
|
|||||||
@@ -564,11 +564,6 @@ class AdminHomeControllerCore extends AdminController
|
|||||||
$tpl_vars['last_orders'] =$this->getLastOrders();
|
$tpl_vars['last_orders'] =$this->getLastOrders();
|
||||||
$tpl_vars['tips_optimization'] = $this->_displayOptimizationTips();
|
$tpl_vars['tips_optimization'] = $this->_displayOptimizationTips();
|
||||||
|
|
||||||
$HOOK_BACKOFFICEHOME = Hook::exec('displayBackOfficeHome');
|
|
||||||
$tpl_vars['HOOK_BACKOFFICEHOME'] = $HOOK_BACKOFFICEHOME;
|
|
||||||
$smarty->assign($tpl_vars);
|
$smarty->assign($tpl_vars);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1050,8 +1050,6 @@ class AdminOrdersControllerCore extends AdminController
|
|||||||
'invoices_collection' => $order->getInvoicesCollection(),
|
'invoices_collection' => $order->getInvoicesCollection(),
|
||||||
'not_paid_invoices_collection' => $order->getNotPaidInvoicesCollection(),
|
'not_paid_invoices_collection' => $order->getNotPaidInvoicesCollection(),
|
||||||
'payment_methods' => $payment_methods,
|
'payment_methods' => $payment_methods,
|
||||||
'HOOK_INVOICE' => Hook::exec('displayInvoice', array('id_order' => $order->id)),
|
|
||||||
'HOOK_ADMIN_ORDER' => Hook::exec('displayAdminOrder', array('id_order' => $order->id))
|
|
||||||
);
|
);
|
||||||
|
|
||||||
return parent::renderView();
|
return parent::renderView();
|
||||||
|
|||||||
Reference in New Issue
Block a user