Serveur preprod f0c0c48223 first push
2016-04-14 16:14:31 +02:00

158 lines
8.1 KiB
Smarty
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!-- Block user information module NAV -->
<div class="smobile header-mobile">
<a href="{$link->getPageLink('index', true)|escape:'html':'UTF-8'}" class="picto-header-mobile header_home">{l s='Ventes' mod='blockuserinfo'}</a>
<a href="{$link->getPageLink('my-account', true)|escape:'html':'UTF-8'}" class="picto-header-mobile header_account">{l s='Compte' mod='blockuserinfo'}</a>
<a href="{$link->getPageLink('discount', true)|escape:'html':'UTF-8'}" class="picto-header-mobile header_discount">{l s='Bon d\'achat' mod='blockuserinfo'}</a>
<a href="{$link->getPageLink('order', true)|escape:'html':'UTF-8'}" class="picto-header-mobile header_cart">{l s='Panier' mod='blockuserinfo'}</a>
{if $page_name == "module-privatesales-home" || $page_name == "product" || $page_name == "category"}
{literal}
<script>
$('.header-mobile .header_home').addClass('active');
</script>
{/literal}
{/if}
{if $page_name == "order"}
{literal}
<script>
$('.header-mobile .header_cart').addClass('active');
</script>
{/literal}
{/if}
{if $page_name == "my-account" || $page_name == "history" || $page_name == "identity" || $page_name == "addresses" || $page_name == "address" || $page_name == "order-detail" || $page_name == "order-slip" || $page_name == "order-return" || $page_name == "order-follow" }
{literal}
<script>
$('.header-mobile .header_account').addClass('active');
</script>
{/literal}
{/if}
{if $page_name == "discount" || $page_name == "module-loyalty-default" || $page_name == "module-referralprogram-program" }
{literal}
<script>
$('.header-mobile .header_discount').addClass('active');
</script>
{/literal}
{/if}
</div>
<div class="snotmobile col-sm-10 block-header-info">
{if $is_logged}
<div class="col-sm-4 block-header-info block-header-info-account {if $is_logged}logged{/if}">
<div class="clearfix content-header">
<div class="icon-myaccount icon-header"></div>
<div class="text-header">
<a href="{$link->getPageLink('my-account', true)|escape:'html':'UTF-8'}" title="{l s='View my customer account' mod='blockuserinfo'}" class="account" rel="nofollow">
{l s='Welcome' mod='blockuserinfo'}
<br/>
<span>
{if $is_logged}
{$cookie->customer_firstname} {$cookie->customer_lastname}
{else}
{l s='Sign in' mod='blockuserinfo'}
{/if}
</span>
</a>
</div>
<ul class="list-menu-account">
<li>
<a href="{$link->getPageLink('history', true)|escape:'html':'UTF-8'}" title="{l s='Order history and details' mod='blockuserinfo'}">
{l s='Order history and details' mod='blockuserinfo'}
</a>
</li>
<li class="last">
<a href="{$link->getPageLink('identity', true)|escape:'html':'UTF-8'}" title="{l s='My personal information' mod='blockuserinfo'}">
{l s='My personal information' mod='blockuserinfo'}
</a>
</li>
<li>
<a href="{$link->getPageLink('addresses', true)|escape:'html':'UTF-8'}" title="{l s='My addresses' mod='blockuserinfo'}">
{l s='My addresses' mod='blockuserinfo'}
</a>
</li>
<li>
<a href="{$link->getPageLink('order-slip', true)|escape:'html':'UTF-8'}" title="{l s='My credit slips' mod='blockuserinfo'}">
{l s='My credit slips' mod='blockuserinfo'}
</a>
</li>
<li>
<a href="{$link->getPageLink('order-follow', true)|escape:'html':'UTF-8'}" title="{l s='My merchandise returns' mod='blockuserinfo'}">
{l s='My merchandise returns' mod='blockuserinfo'}
</a>
</li>
<li>
<a href="{$link->getModuleLink('ant_nw_frequences','frequence')|escape:'html':'UTF-8'}" title="{l s='Mes Newsletters' mod='blockuserinfo'}">
{l s='Mes newsletters'}
</a>
</li>
<li>
<a href="{$link->getModuleLink('referralprogram', 'program')|escape:'html':'UTF-8'}" title="{l s='Sponsorship Program' mod='blockuserinfo'}">
{l s='Sponsorship Program' mod='blockuserinfo'}
</a>
</li>
<li class="signout">
<a class="logout" href="{$link->getPageLink('index', true, NULL, "mylogout")|escape:'html':'UTF-8'}" rel="nofollow" title="{l s='Sign out' mod='blockuserinfo'}">
{l s='Sign out' mod='blockuserinfo'}
</a>
</li>
</ul>
</div>
</div>
<div class="col-sm-4 block-header-info block-header-info-parrainage {if $is_logged}logged{/if}">
<div class="clearfix content-header">
<div class="icon-parrainage icon-header"></div>
<div class="text-header">
{l s='Mes bons dachat disponibles ' mod='blockuserinfo'}
<span class="price-red">{displayPrice price=$amount_total}</span>
</div>
<ul class="list-menu-account">
<li>
<a href="{$link->getModuleLink('referralprogram', 'program', [], true)|escape:'html'}" title="{l s='Votre crédit parrainage'}">
{l s='Votre crédit parrainage :' mod='blockuserinfo'}
<span class="price-red">{displayPrice price=$amount_parr}</span>
</a>
</li>
<li>
<a href="{$link->getModuleLink('loyalty', 'default', ['process' => 'summary'], true)|escape:'html'}" title="{l s='Votre crédit fidélité'}">
{l s='Votre crédit fidélité :' mod='blockuserinfo'}
<span class="price-red">{displayPrice price=$amount_fid}</span>
</a>
</li>
<li class="text-info">
{l s='Crédits utilisables dès votre prochaine commande' mod='blockuserinfo'}
</li>
</ul>
</div>
</div>
{else}
<div class="col-sm-8 block-header-info block-header-info-text">
{l s='Bienvenue sur Privilège de Marque !' mod='blockuserinfo'}<br/>
{l s='Devenez un membre privilégié en vous inscrivant ! ' mod='blockuserinfo'}
</div>
<div class="col-sm-4 block-header-info block-header-info-signin">
{* <a href="{$link->getPageLink('my-account', true)|escape:'html':'UTF-8'}" title="{l s='View my customer account' mod='blockuserinfo'}" class="button-grey" rel="nofollow"> *}
<a href="{if $page_name=='module-privatesales-home'}{$link->getPageLink('index', true)|escape:'html':'UTF-8'}{else}{if isset($request) && $request}{$request|escape:'html':'UTF-8'}{else}{$link->getPageLink('index', true)|escape:'html':'UTF-8'}{/if}{/if}" title="{l s='View my customer account' mod='blockuserinfo'}" class="button-grey loggin_button" rel="nofollow">
<span>
{l s='je m\'inscris gratuitement !' mod='blockuserinfo'}
</span>
</a>
<a style="display:none;" href="/ventes-privees?back=index" title="{l s='View my customer account' mod='blockuserinfo'}" class="button-grey loggin_button_mobile" rel="nofollow">
<span>
{l s='je m\'inscris gratuitement !' mod='blockuserinfo'}
</span>
</a>
</div>
<script type="text/javascript">
$(document).ready(function(){
if ('ontouchstart' in window) {
$('a.loggin_button').hide();
$('a.loggin_button_mobile').show();
}
});
</script>
{/if}
<!-- /Block usmodule NAV -->