diff --git a/templates/frontOffice/lematelot/layout.tpl b/templates/frontOffice/lematelot/layout.tpl index 5dd5ef0e..b9f3bf08 100644 --- a/templates/frontOffice/lematelot/layout.tpl +++ b/templates/frontOffice/lematelot/layout.tpl @@ -1,303 +1,303 @@ - - -{* Declare assets directory, relative to template base directory *} -{declare_assets directory='assets/dist'} -{* Set the default translation domain, that will be used by {intl} when the 'd' parameter is not set *} -{default_translation_domain domain='fo.lematelot'} - -{* -- Define some stuff for Smarty ------------------------------------------ *} -{config_load file='variables.conf'} -{block name="init"}{/block} -{block name="no-return-functions"}{/block} -{assign var="store_name" value={config key="store_name"}} -{assign var="store_description" value={config key="store_description"}} -{assign var="shop" value={config key="shop"}} -{assign var="lang_code" value={lang attr="code"}} -{assign var="lang_locale" value={lang attr="locale"}} -{if not $store_name}{assign var="store_name" value={intl l='Thelia V2'}}{/if} -{if not $store_description}{assign var="store_description" value={$store_name}}{/if} - -{* paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither *} - - - - - - {hook name="main.head-top"} - {* Test if javascript is enabled *} - - - - - {* Page Title *} - {block name="page-title"}{strip}{if $page_title}{$page_title}{elseif $breadcrumbs}{foreach from=$breadcrumbs|array_reverse item=breadcrumb}{$breadcrumb.title|unescape} - {/foreach}{$store_name}{else}{$store_name}{/if} {$shop} {$store_description}{/strip}{/block} - - {* Meta Tags *} - - - - {block name="meta"} - - {/block} - - {stylesheets file='assets/dist/css/thelia.min.css'} - - {/stylesheets} - {* - If you want to generate the CSS assets on the fly, just replace the stylesheet inclusion above by the following. - Then, in your back-office, go to Configuration -> System Variables and set process_assets to 1. - Now, when you're accessing the front office in developpement mode (index_dev.php) the CSS is recompiled when a - change in the source files is detected. - - See http://doc.thelia.net/en/documentation/templates/assets.html#activate-automatic-assets-generation for details. - - {stylesheets file='assets/src/less/thelia.less' filters='less'} - - {/stylesheets} - - *} - - {hook name="main.stylesheet"} - - {block name="stylesheet"}{/block} - - {* Favicon *} - - - - {* Feeds *} - - - - {block name="feeds"}{/block} - - {* HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries *} - - - {hook name="main.head-bottom"} - - - {hook name="main.body-top"} - - - {intl l="Skip to content"} - -
- -
- {hook name="main.header-top"} - - - - - {hook name="main.header-bottom"} -
- -
-
- {hook name="main.content-top"} - {block name="breadcrumb"}{include file="misc/breadcrumb.tpl"}{/block} -
{block name="main-content"}{/block}
- {hook name="main.content-bottom"} -
-
- - - -
- - {block name="before-javascript-include"}{/block} - - - - - - {javascripts file="assets/dist/js/vendors/jquery.min.js"} - - {/javascripts} - - - {* do no try to load messages_en, as this file does not exists *} - {if $lang_code != 'en'} - - {/if} - - - {javascripts file="assets/dist/js/vendors/bootstrap.min.js"} - - {/javascripts} - - {javascripts file="assets/dist/js/vendors/bootbox.js"} - - {/javascripts} - - {hook name="main.after-javascript-include"} - - {block name="after-javascript-include"}{/block} - - {hook name="main.javascript-initialization"} - - {block name="javascript-initialization"}{/block} - - - - - - - {hook name="main.body-bottom"} - - + + +{* Declare assets directory, relative to template base directory *} +{declare_assets directory='assets/dist'} +{* Set the default translation domain, that will be used by {intl} when the 'd' parameter is not set *} +{default_translation_domain domain='fo.lematelot'} + +{* -- Define some stuff for Smarty ------------------------------------------ *} +{config_load file='variables.conf'} +{block name="init"}{/block} +{block name="no-return-functions"}{/block} +{assign var="store_name" value={config key="store_name"}} +{assign var="store_description" value={config key="store_description"}} +{assign var="shop" value={config key="shop"}} +{assign var="lang_code" value={lang attr="code"}} +{assign var="lang_locale" value={lang attr="locale"}} +{if not $store_name}{assign var="store_name" value={intl l='Thelia V2'}}{/if} +{if not $store_description}{assign var="store_description" value={$store_name}}{/if} + +{* paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither *} + + + + + + {hook name="main.head-top"} + {* Test if javascript is enabled *} + + + + + {* Page Title *} + {block name="page-title"}{strip}{if $page_title}{$page_title}{elseif $breadcrumbs}{foreach from=$breadcrumbs|array_reverse item=breadcrumb}{$breadcrumb.title|unescape} - {/foreach}{$store_name}{else}{$store_name}{/if} {$shop} {$store_description}{/strip}{/block} + + {* Meta Tags *} + + + + {block name="meta"} + + {/block} + + {stylesheets file='assets/dist/css/thelia.min.css'} + + {/stylesheets} + {* + If you want to generate the CSS assets on the fly, just replace the stylesheet inclusion above by the following. + Then, in your back-office, go to Configuration -> System Variables and set process_assets to 1. + Now, when you're accessing the front office in developpement mode (index_dev.php) the CSS is recompiled when a + change in the source files is detected. + + See http://doc.thelia.net/en/documentation/templates/assets.html#activate-automatic-assets-generation for details. + + {stylesheets file='assets/src/less/thelia.less' filters='less'} + + {/stylesheets} + + *} + + {hook name="main.stylesheet"} + + {block name="stylesheet"}{/block} + + {* Favicon *} + + + + {* Feeds *} + + + + {block name="feeds"}{/block} + + {* HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries *} + + + {hook name="main.head-bottom"} + + + {hook name="main.body-top"} + + + {intl l="Skip to content"} + +
+ +
+ {hook name="main.header-top"} + + + + + {hook name="main.header-bottom"} +
+ +
+
+ {hook name="main.content-top"} + {block name="breadcrumb"}{include file="misc/breadcrumb.tpl"}{/block} +
{block name="main-content"}{/block}
+ {hook name="main.content-bottom"} +
+
+ + + +
+ + {block name="before-javascript-include"}{/block} + + + + + + {javascripts file="assets/dist/js/vendors/jquery.min.js"} + + {/javascripts} + + + {* do no try to load messages_en, as this file does not exists *} + {if $lang_code != 'en'} + + {/if} + + + {javascripts file="assets/dist/js/vendors/bootstrap.min.js"} + + {/javascripts} + + {javascripts file="assets/dist/js/vendors/bootbox.js"} + + {/javascripts} + + {hook name="main.after-javascript-include"} + + {block name="after-javascript-include"}{/block} + + {hook name="main.javascript-initialization"} + + {block name="javascript-initialization"}{/block} + + + + + + + {hook name="main.body-bottom"} + +