A creuser mais peut-être pas besoin de TemplateSwitcher et de CustomSwitchTemplate, et qu'il suffirait de rajouter juste du Smarty dans layout.tpl et index.html
399 lines
21 KiB
Smarty
399 lines
21 KiB
Smarty
<!doctype html>
|
|
<!--
|
|
______ __ __ ______ __ __ ______
|
|
/\__ _\ /\ \_\ \ /\ ___\ /\ \ /\ \ /\ __ \
|
|
\/_/\ \/ \ \ __ \ \ \ __\ \ \ \____ \ \ \ \ \ __ \
|
|
\ \_\ \ \_\ \_\ \ \_____\ \ \_____\ \ \_\ \ \_\ \_\
|
|
\/_/ \/_/\/_/ \/_____/ \/_____/ \/_/ \/_/\/_/
|
|
|
|
|
|
Copyright (c) OpenStudio
|
|
email : info@thelia.net
|
|
web : http://www.thelia.net
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation; either version 3 of the
|
|
GNU General Public License : http://www.gnu.org/licenses/
|
|
-->
|
|
|
|
{* Declare assets directory, relative to template base directory *}
|
|
{declare_assets directory='assets'}
|
|
{* Set the default translation domain, that will be used by {intl} when the 'd' parameter is not set *}
|
|
{default_translation_domain domain='fo.sterivein_sans_commande'}
|
|
|
|
{* -- 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"}"}
|
|
{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 *}
|
|
<!--[if lt IE 7 ]><html class="no-js oldie ie6" lang="{lang attr="code"}"> <![endif]-->
|
|
<!--[if IE 7 ]><html class="no-js oldie ie7" lang="{lang attr="code"}"> <![endif]-->
|
|
<!--[if IE 8 ]><html class="no-js oldie ie8" lang="{lang attr="code"}"> <![endif]-->
|
|
<!--[if (gte IE 9)|!(IE)]><!--><html lang="{lang attr="code"}" class="no-js"> <!--<![endif]-->
|
|
<head>
|
|
|
|
{* Test if javascript is enabled *}
|
|
<script>(function(H) { H.className=H.className.replace(/\bno-js\b/,'js') } )(document.documentElement);</script>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
{* Page Title *}
|
|
<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}{/if}{/strip}{/block}</title>
|
|
|
|
{* Meta Tags *}
|
|
<meta name="generator" content="{intl l='Thelia V2'}">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
|
{block name="meta"}
|
|
<meta name="description" content="{if $page_description}{$page_description}{else}{$store_description|strip|truncate:120}{/if}">
|
|
{/block}
|
|
|
|
{* Stylesheets *}
|
|
{*
|
|
{stylesheets file='assets/css/styles.css'}
|
|
<link rel="stylesheet" href="{$asset_url}">
|
|
{/stylesheets}
|
|
*}
|
|
{stylesheets file='assets/less/styles.less' filters="less"}
|
|
<link rel="stylesheet" href="{$asset_url}">
|
|
{/stylesheets}
|
|
|
|
{block name="stylesheet"}{/block}
|
|
|
|
{* Favicon *}
|
|
{images file='assets/img/favicon.ico'}<link rel="shortcut icon" type="image/x-icon" href="{$asset_url}">{/images}
|
|
{images file='assets/img/favicon.png'}<link rel="icon" type="image/png" href="{$asset_url}" />{/images}
|
|
|
|
{* Feeds *}
|
|
<link rel="alternate" type="application/rss+xml" title="{intl l='All products'}" href="{url path="/feed/catalog/{lang attr="locale"}"}" />
|
|
<link rel="alternate" type="application/rss+xml" title="{intl l='All contents'}" href="{url path="/feed/content/{lang attr="locale"}"}" />
|
|
<link rel="alternate" type="application/rss+xml" title="{intl l='All brands'}" href="{url path="/feed/brand/{lang attr='locale'}"}" />
|
|
{block name="feeds"}{/block}
|
|
|
|
{* HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries *}
|
|
<!--[if lt IE 9]>
|
|
<script src="//oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
|
|
<script src="//oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
|
|
<![endif]-->
|
|
{hook name="recaptcha.js"}
|
|
</head>
|
|
|
|
<body class="{block name="body-class"}{/block}" itemscope itemtype="http://schema.org/WebPage">
|
|
|
|
<!-- Accessibility -->
|
|
<a class="sr-only" href="#content">{intl l="Skip to content"}</a>
|
|
|
|
<div class="page" role="document">
|
|
|
|
<div class="header-container" itemscope itemtype="http://schema.org/WPHeader">
|
|
|
|
<header class="container" role="banner">
|
|
<div class="header">
|
|
<h1 class="logo">
|
|
<a href="{navigate to="index"}" title="{$store_name}">
|
|
<span class='site-logo'>S<span>TERIVEIN<span class="reg">®</span></span></span>
|
|
</a>
|
|
<a href="{navigate to="index"}" title="{$store_name}">
|
|
<span class='site-logo site-logo-sclerivein'>S<span>CLERIVEIN<span class="reg">®</span></span></span>
|
|
</a>
|
|
</h1>
|
|
</div>
|
|
</header><!-- /.header -->
|
|
|
|
<div class="navbar navbar-menu" itemscope itemtype="http://schema.org/SiteNavigationElement">
|
|
<div class="container">
|
|
|
|
<div class="navbar-header">
|
|
<!-- .navbar-toggle is used as the toggle for collapsed navbar content -->
|
|
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".nav-main-1">
|
|
<span class="sr-only">{intl l="Toggle navigation"}</span>
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
</button>
|
|
<a class="navbar-brand" href="{navigate to="index"}">{$store_name}</a>
|
|
</div>
|
|
|
|
<nav class="navbar-collapse collapse nav-main-1" role="navigation" aria-label="{intl l="Main Navigation"}">
|
|
|
|
<ul class="nav navbar-nav navbar-categories">
|
|
<li><a href="{navigate to="index"}">{intl l="Home"}</a></li>
|
|
<!--
|
|
<li class="dropdown">
|
|
{loop type="category" name="menu-cat" id=#id_categorie_boutique#}
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown">{$TITLE}</a>
|
|
<ul class="dropdown-menu" role="menu">
|
|
{loop type="product" name="menu-prod" category=#id_categorie_boutique# order="manual"}
|
|
<li><a href="{$URL}">{intl l="Commander"} {$TITLE}</a></li>
|
|
{/loop}
|
|
</ul>
|
|
{/loop}
|
|
</li>
|
|
//-->
|
|
{loop type="folder" name="main-menu" parent=#id_dossier_menu#}
|
|
<li>
|
|
{ifloop rel="sub-folders"}
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown">{$TITLE}</a>
|
|
<ul class="dropdown-menu" role="menu">
|
|
{loop name="sub-folders" type="folder" parent=$ID order="manual"}
|
|
<li><a href="{$URL}">{$TITLE}</a></li>
|
|
{/loop}
|
|
</ul>
|
|
{/ifloop}
|
|
{elseloop rel="sub-folders"}
|
|
<a href="{$URL}">{$TITLE}</a>
|
|
{/elseloop}
|
|
</li>
|
|
{/loop}
|
|
|
|
<li><a href="{url path="/contact"}">{intl l="Contact"}</a></li>
|
|
</ul>
|
|
</nav>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="navbar navbar-tools" itemscope itemtype="http://schema.org/SiteNavigationElement">
|
|
<div class="container">
|
|
|
|
<div class="navbar-header">
|
|
<!-- .navbar-toggle is used as the toggle for collapsed navbar content -->
|
|
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".nav-main">
|
|
<span class="sr-only">{intl l="Toggle navigation"}</span>
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
</button>
|
|
<a class="navbar-brand" href="{navigate to="index"}">{intl l="Navigation"}</a>
|
|
</div>
|
|
|
|
<!-- Place everything within .nav-collapse to hide it until above 768px -->
|
|
<nav class="navbar-collapse collapse nav-main" role="navigation" aria-label="{intl l="Main Navigation"}">
|
|
{nocache}
|
|
<ul class="nav navbar-nav navbar-left">
|
|
<li>
|
|
<a class="current dropdown-toggle" data-toggle="dropdown" href="{url path="/language"}">{images file="assets/img/flags/{lang attr="code"}.png"}<img src="{$asset_url}" alt="{$CODE}">{/images} {lang attr="title"}</a>
|
|
<ul class="select dropdown-menu">
|
|
{loop type="lang" name="lang_available" exclude="{lang attr="id"}"}
|
|
<li>
|
|
<a href="{url path="{navigate to="current"}" lang={$CODE}}">{images file="assets/img/flags/{$CODE}.png"}<img src="{$asset_url}" alt="{$CODE}">{/images} {$TITLE}</a>
|
|
</li>
|
|
{/loop}
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<!--
|
|
<ul class="nav navbar-nav navbar-cart navbar-right">
|
|
{loop type="auth" name="customer_info_block" role="CUSTOMER"}
|
|
<li><a href="{url path="/logout"}" class="logout">{intl l="Log out!"}</a></li>
|
|
<li><a href="{url path="/account"}" class="account">{intl l="My Account"}</a></li>
|
|
{/loop}
|
|
{elseloop rel="customer_info_block"}
|
|
<li><a href="{url path="/register"}" class="register">{intl l="Register!"}</a></li>
|
|
<li class="dropdown">
|
|
<a href="{url path="/login"}" class="login">{intl l="Log In!"}</a>
|
|
<div class="dropdown-menu">
|
|
{form name="thelia.front.customer.login"}
|
|
<form id="form-login-mini" action="{url path="/login"}" method="post" {form_enctype form=$form}>
|
|
{form_hidden_fields form=$form}
|
|
{form_field form=$form field="success_url"}
|
|
<input type="hidden" name="{$name}" value="{navigate to="current"}">
|
|
{/form_field}
|
|
{form_field form=$form field="email"}
|
|
<div class="form-group group-email">
|
|
<label for="{$label_attr.for}-mini">{intl l="Email address"}</label>
|
|
<input type="email" name="{$name}" id="{$label_attr.for}-mini" class="form-control" maxlength="255" aria-required="true" required>
|
|
</div>
|
|
{/form_field}
|
|
{form_field form=$form field="password"}
|
|
<div class="form-group group-password">
|
|
<label for="{$label_attr.for}-mini">{intl l="Password"}</label>
|
|
<input type="password" name="{$name}" id="{$label_attr.for}-mini" class="form-control" maxlength="255" aria-required="true" required>
|
|
</div>
|
|
{/form_field}
|
|
{form_field form=$form field="account"}
|
|
<input type="hidden" name="{$name}" value="1">
|
|
{/form_field}
|
|
<div class="group-btn">
|
|
<button type="submit" class="btn btn-login-mini">{intl l="Sign In"}</button>
|
|
<a href="{url path="/register"}" class="btn btn-register-mini">{intl l="Register"}</a>
|
|
</div>
|
|
</form>
|
|
{/form}
|
|
</div>
|
|
</li>
|
|
{/elseloop}
|
|
{include file="includes/mini-cart.html" nocache}
|
|
</ul>
|
|
//-->
|
|
{/nocache}
|
|
</nav>
|
|
</div>
|
|
</div>
|
|
|
|
</div><!-- /.header-container -->
|
|
|
|
<main class="main-container" role="main">
|
|
<div class="container">
|
|
{block name="breadcrumb"}{/block}
|
|
<div id="content">{block name="main-content"}{/block}</div>
|
|
</div><!-- /.container -->
|
|
</main><!-- /.main-container -->
|
|
|
|
<section class="footer-container" itemscope itemtype="http://schema.org/WPFooter">
|
|
|
|
<section class="footer-block">
|
|
<div class="container">
|
|
<div class="blocks block-col-3">
|
|
<div class="col">
|
|
<section class="block block-default">
|
|
<div class="block-heading"><h3 class="block-title">{intl l="Informations"}</h3></div>
|
|
<div class="block-content">
|
|
<ul>
|
|
{loop type="content" name="cgv" id=#id_contenu_cgv#}
|
|
<li>
|
|
<a href="{$URL}">{$TITLE}</a>
|
|
</li>
|
|
{/loop}
|
|
{loop type="content" name="cgv" id=#id_contenu_mentions#}
|
|
<li>
|
|
<a href="{$URL}">{$TITLE}</a>
|
|
</li>
|
|
{/loop}
|
|
</ul>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
<div class="col">
|
|
<section class="block block-contact" itemscope itemtype="http://schema.org/Organization">
|
|
<div class="block-heading"><h3 class="block-title">{intl l="Contact Us"}</h3></div>
|
|
<div class="block-content">
|
|
<meta itemprop="name" content="{$store_name}">
|
|
<ul>
|
|
<li class="contact-address">
|
|
<address class="adr" itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
|
|
<span class="street-address" itemprop="streetAddress">{config key="store_address1"} {config key="store_address2"} {config key="store_address3"}</span><br>
|
|
<span class="postal-code" itemprop="postalCode">{config key="store_zipcode"}</span>
|
|
<span class="locality" itemprop="addressLocality">
|
|
{config key="store_city"}
|
|
{if {config key="store_country"} }
|
|
{loop type="country" name="address.country.title" id={config key="store_country"}}, <span class="country-name">{$TITLE}</span>{/loop}
|
|
{/if}
|
|
</span>
|
|
</address>
|
|
</li>
|
|
{if {config key="store_phone"} }
|
|
<li class="contact-phone" title="{intl l="Téléphone"}">
|
|
<span class="tel" itemprop="telephone">{config key="store_phone"}</span>
|
|
</li>
|
|
{/if}
|
|
{if {config key="store_fax"} }
|
|
<li class="contact-fax" title="{intl l="Fax"}">
|
|
<span class="tel" itemprop="fax">{config key="store_fax"}</span>
|
|
</li>
|
|
{/if}
|
|
{if {config key="store_email"} }
|
|
<li class="contact-email">
|
|
{mailto address={config key="store_email"} encode="hex" extra='class="email" itemprop="email"'}
|
|
</li>
|
|
{/if}
|
|
<li class="contact-message">
|
|
<a href="{url path="/contact"}">{intl l="Send us a message"}</a></li>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
<div class="col">
|
|
<!--
|
|
<section class="block block-default">
|
|
<div class="block-heading"><h3 class="block-title">{intl l="Useful links"}</h3></div>
|
|
<div class="block-content">
|
|
<ul>
|
|
{loop name="footer_links" type="content" folder="2"}
|
|
<li><a href="{$URL}">{$TITLE}</a></li>
|
|
{/loop}
|
|
{loop type="auth" name="customer_is_logged" role="CUSTOMER"}
|
|
<li><a href="{url path="/logout"}" class="logout">{intl l="Log out!"}</a></li>
|
|
<li><a href="{url path="/account"}" class="account">{intl l="My Account"}</a></li>
|
|
{/loop}
|
|
{elseloop rel="customer_is_logged"}
|
|
<li><a href="{url path="/login"}">{intl l="Login"}</a></li>
|
|
<li><a href="{url path="/register"}">{intl l="Register"}</a></li>
|
|
{/elseloop}
|
|
<li><a href="{url path="/cart"}">{intl l="Cart"}</a></li>
|
|
<li><a href="{url path="/order/delivery"}">{intl l="Checkout"}</a></li>
|
|
</ul>
|
|
</div>
|
|
</section>
|
|
//-->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section><!-- /.footer-block -->
|
|
|
|
|
|
<footer class="footer-info" role="contentinfo">
|
|
<div class="container">
|
|
<div class="info">
|
|
<section class="copyright text-center">{intl l="Copyright"} © <time datetime="{'Y-m-d'|date}">{'Y'|date}</time> Alain Monfreux</section>
|
|
</div>
|
|
</div>
|
|
</footer><!-- /.footer-info -->
|
|
|
|
</section><!-- /.footer-container -->
|
|
|
|
</div><!-- /.page -->
|
|
|
|
{block name="before-javascript-include"}{/block}
|
|
<!-- JavaScript -->
|
|
<!--[if lt IE 9]><script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> <![endif]-->
|
|
<!--[if (gte IE 9)|!(IE)]><!--><script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script> <!--<![endif]-->
|
|
<script>
|
|
if (typeof jQuery == 'undefined') {
|
|
{javascripts file='assets/js/libs/jquery.js'}
|
|
document.write(unescape("%3Cscript src='{$asset_url}' %3E%3C/script%3E"));
|
|
{/javascripts}
|
|
}
|
|
</script>
|
|
|
|
<script src="//ajax.aspnetcdn.com/ajax/jquery.validate/1.11.1/jquery.validate.min.js"></script>
|
|
|
|
|
|
{javascripts file='assets/js/bootstrap/bootstrap.js'}
|
|
<script src="{$asset_url}"></script>
|
|
{/javascripts}
|
|
|
|
{javascripts file='assets/js/plugins/bootbox/bootbox.js'}
|
|
<script src="{$asset_url}"></script>
|
|
{/javascripts}
|
|
|
|
{block name="after-javascript-include"}{/block}
|
|
|
|
{block name="javascript-initialization"}{/block}
|
|
|
|
<!-- Custom scripts -->
|
|
{javascripts file='assets/js/script.js'}
|
|
<script src="{$asset_url}"></script>
|
|
{/javascripts}
|
|
{literal}
|
|
<script>
|
|
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
|
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
|
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
|
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
|
|
|
ga('create', 'UA-54409521-1', 'auto');
|
|
ga('require', 'linkid', 'linkid.js');
|
|
ga('send', 'pageview');
|
|
|
|
</script>
|
|
{/literal}
|
|
</body>
|
|
</html>
|