From 4bbb7fb4b8706f2253a1099d9fa9d745daaebfae Mon Sep 17 00:00:00 2001 From: rMalie Date: Wed, 4 Jan 2012 11:03:51 +0000 Subject: [PATCH] // Set admin display hooks in templates --- admin-dev/themes/default/template/customers/view.tpl | 4 +--- admin-dev/themes/default/template/feature_value/form.tpl | 2 +- admin-dev/themes/default/template/footer.tpl | 2 +- admin-dev/themes/default/template/header.tpl | 4 ++-- admin-dev/themes/default/template/home/content.tpl | 6 +++--- admin-dev/themes/default/template/orders/view.tpl | 9 ++++----- classes/AdminController.php | 8 -------- controllers/admin/AdminCustomersController.php | 3 --- controllers/admin/AdminFeaturesController.php | 2 +- controllers/admin/AdminHomeController.php | 5 ----- controllers/admin/AdminOrdersController.php | 2 -- 11 files changed, 13 insertions(+), 34 deletions(-) diff --git a/admin-dev/themes/default/template/customers/view.tpl b/admin-dev/themes/default/template/customers/view.tpl index 6efe6350a..6b02f572e 100644 --- a/admin-dev/themes/default/template/customers/view.tpl +++ b/admin-dev/themes/default/template/customers/view.tpl @@ -148,9 +148,7 @@ {/if} {* display hook specified to this page : AdminCustomers *} - {if $hook !== false} -
{$hook}
- {/if} +
{hook h="displayAdminCustomers" id_customer=$customer->id}
 
diff --git a/admin-dev/themes/default/template/feature_value/form.tpl b/admin-dev/themes/default/template/feature_value/form.tpl index 09c1444c8..e3cf0bcf9 100644 --- a/admin-dev/themes/default/template/feature_value/form.tpl +++ b/admin-dev/themes/default/template/feature_value/form.tpl @@ -28,6 +28,6 @@ {block name="end_field_block"} {if $input.name == 'id_feature'} - {if isset($hook)}{$hook}{/if} + {hook h="displayFeatureValueForm" id_feature_value=$feature_value->id} {/if} {/block} diff --git a/admin-dev/themes/default/template/footer.tpl b/admin-dev/themes/default/template/footer.tpl index d47f2f7cb..a462583b4 100644 --- a/admin-dev/themes/default/template/footer.tpl +++ b/admin-dev/themes/default/template/footer.tpl @@ -27,7 +27,7 @@ {if $display_footer} - {$HOOK_FOOTER} + {hook h="displayBackOfficeFooter"}