2016-01-04 12:48:08 +01:00
{ if $cookie - > isLogged ( ) }
<!-- Block user information module HEADER -->
2017-04-26 11:08:23 +02:00
<div id="header_user" class="panel">
<div class="overlay"></div>
<ul id="header_nav" class="inner">
<i class="icon-close"></i>
2016-01-04 12:48:08 +01:00
<li>
2017-04-26 11:08:23 +02:00
<a href=" { $link - > getPageLink ( 'history.php' , true ) } " title=" { l s = 'History and details of my orders' mod = 'blockuserinfo' } "> { l s = 'Orders' mod = 'blockuserinfo' } </a>
2016-01-04 12:48:08 +01:00
</li>
2017-04-26 11:08:23 +02:00
<li>
<a href=" { $link - > getPageLink ( 'identity.php' , true ) } " title=" { l s = 'My personal information' mod = 'blockuserinfo' } "> { l s = 'Information' mod = 'blockuserinfo' } </a>
</li>
2017-04-27 14:24:48 +02:00
<li><a href=" { $base_dir_ssl } modules/loyalty/loyalty-program.php" title=" { l s = 'Loyalty program' mod = 'blockuserinfo' } "> { l s = 'Loyalty program' mod = 'blockuserinfo' } </a></li>
2017-04-26 11:08:23 +02:00
<li>
<a href=" { $link - > getPageLink ( 'discount.php' , true ) } " title=" { l s = 'My vouchers' mod = 'blockuserinfo' } "> { l s = 'Vouchers' mod = 'blockuserinfo' } </a>
</li>
<li>
<a href=" { $base_dir_ssl } modules/invite/invite-program.php" title=" { l s = 'Sponsor your friends' mod = 'blockuserinfo' } "> { l s = 'Referral program' mod = 'blockuserinfo' } </a>
</li>
{ $HOOK_CUSTOMER_ACCOUNT }
<li class="logout">
<a href=" { $link - > getPageLink ( 'index.php' ) } ?mylogout" title=" { l s = 'Log me out' mod = 'blockuserinfo' } "> { l s = 'Log out' mod = 'blockuserinfo' } </a>
2016-01-04 12:48:08 +01:00
</li>
2017-04-26 11:08:23 +02:00
2016-01-04 12:48:08 +01:00
</ul>
</div>
<script type="text/javascript"> { literal }
<!--
$(document).ready(function() {
var account_hide = function(event) {
if($("#header_nav li.last > div.sub").has($(event.target)).length == 0) {
event.stopPropagation();
event.data.m.removeClass('active');
$("#header_nav li.last > div.sub").hide();
$("html, #cart_block #cart_block_summary").unbind("click", account_hide);
}
}
$("#header_nav li.last > a").click(function(event) {
event.stopPropagation();
var m = $(this);
m.toggleClass('active');
$("#header_nav li.last > div.sub").toggle();
$("html, #cart_block #cart_block_summary").bind("click", { m : m } , account_hide);
});
});
-->
{ /literal } </script>
<!-- /Block user information module HEADER -->
{ elseif isset ( $smarty.request.email_create ) }
<div id="header_user">
<ul id="header_nav">
<li class="first large">
<a href=" { $base_dir_ssl } " title=" { l s = 'Go back to the homepage' mod = 'blockuserinfo' } ">
<span> { l s = 'Home' mod = 'blockuserinfo' } </span>
<span class="desc"> { l s = 'Back to the login page' mod = 'blockuserinfo' } </span>
</a>
</li>
</ul>
</div>
{ /if }