61 lines
2.2 KiB
Smarty
Executable File
61 lines
2.2 KiB
Smarty
Executable File
{if $cookie->isLogged()}
|
|
<!-- Block user information module HEADER -->
|
|
<div id="header_user" class="panel">
|
|
<div class="overlay"></div>
|
|
<ul id="header_nav" class="inner">
|
|
<i class="icon-close"></i>
|
|
<li>
|
|
<a href="{$link->getPageLink('history.php', true)}" title="{l s='History and details of my orders' mod='blockuserinfo'}">{l s='Orders' mod='blockuserinfo'}</a>
|
|
</li>
|
|
<li>
|
|
<a href="{$link->getPageLink('identity.php', true)}" title="{l s='My personal information' mod='blockuserinfo'}">{l s='Information' mod='blockuserinfo'}</a>
|
|
</li>
|
|
<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>
|
|
</li>
|
|
|
|
</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}
|