From 84a251a57537febfbb21608cbf9b329611c77c44 Mon Sep 17 00:00:00 2001 From: Damien Metzger Date: Wed, 2 Oct 2013 17:04:07 +0200 Subject: [PATCH] [*] BO : you can noww override header and footer for each controller --- .../template/controllers/login/header.tpl | 51 +++++++++++++++++++ admin-dev/themes/default/template/header.tpl | 19 ++++--- admin-dev/themes/default/template/layout.tpl | 4 +- classes/controller/AdminController.php | 37 +++++++++----- classes/controller/Controller.php | 6 ++- 5 files changed, 92 insertions(+), 25 deletions(-) create mode 100644 admin-dev/themes/default/template/controllers/login/header.tpl diff --git a/admin-dev/themes/default/template/controllers/login/header.tpl b/admin-dev/themes/default/template/controllers/login/header.tpl new file mode 100644 index 000000000..d5bc2ce6b --- /dev/null +++ b/admin-dev/themes/default/template/controllers/login/header.tpl @@ -0,0 +1,51 @@ +{* +* 2007-2013 PrestaShop +* +* NOTICE OF LICENSE +* +* This source file is subject to the Academic Free License (AFL 3.0) +* that is bundled with this package in the file LICENSE.txt. +* It is also available through the world-wide-web at this URL: +* http://opensource.org/licenses/afl-3.0.php +* If you did not receive a copy of the license and are unable to +* obtain it through the world-wide-web, please send an email +* to license@prestashop.com so we can send you a copy immediately. +* +* DISCLAIMER +* +* Do not edit or add to this file if you wish to upgrade PrestaShop to newer +* versions in the future. If you wish to customize PrestaShop for your +* needs please refer to http://www.prestashop.com for more information. +* +* @author PrestaShop SA +* @copyright 2007-2013 PrestaShop SA +* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) +* International Registered Trademark & Property of PrestaShop SA +*} + + + + + + + + + + + + {$shop_name} {if $meta_title != ''}{if isset($navigationPipe)}{$navigationPipe|escape:'htmlall':'UTF-8'}{else}>{/if} {$meta_title}{/if} (PrestaShop™) + {foreach from=$css_files key=css_uri item=media} + + {/foreach} + {foreach from=$js_files item=js_uri} + + {/foreach} + + + + + +
+
\ No newline at end of file diff --git a/admin-dev/themes/default/template/header.tpl b/admin-dev/themes/default/template/header.tpl index bf5b106cd..36c6bfdbd 100644 --- a/admin-dev/themes/default/template/header.tpl +++ b/admin-dev/themes/default/template/header.tpl @@ -33,7 +33,7 @@ - {$shop_name} {if $meta_title != ''}{$navigationPipe|escape:'htmlall':'UTF-8'} {$meta_title}{/if} (PrestaShop™) + {$shop_name} {if $meta_title != ''}{if isset($navigationPipe)}{$navigationPipe|escape:'htmlall':'UTF-8'}{else}>{/if} {$meta_title}{/if} (PrestaShop™) {if $display_header}