96 lines
4.2 KiB
HTML
Executable File
96 lines
4.2 KiB
HTML
Executable File
{*
|
|
* 2007-2011 PrestaShop
|
|
*
|
|
* NOTICE OF LICENSE
|
|
*
|
|
* This source file is subject to the Academic Free License (AFL 3.0)
|
|
* that is bundled with this package in the file LICENSE.txt.
|
|
* It is also available through the world-wide-web at this URL:
|
|
* http://opensource.org/licenses/afl-3.0.php
|
|
* If you did not receive a copy of the license and are unable to
|
|
* obtain it through the world-wide-web, please send an email
|
|
* to license@prestashop.com so we can send you a copy immediately.
|
|
*
|
|
* DISCLAIMER
|
|
*
|
|
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
|
* versions in the future. If you wish to customize PrestaShop for your
|
|
* needs please refer to http://www.prestashop.com for more information.
|
|
*
|
|
* @author PrestaShop SA <contact@prestashop.com>
|
|
* @copyright 2007-2011 PrestaShop SA
|
|
* @version Release: $Revision: 6594 $
|
|
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
|
* International Registered Trademark & Property of PrestaShop SA
|
|
*}
|
|
{if $cookie->isLogged()}
|
|
<!-- Block user information module HEADER -->
|
|
<div id="header_user">
|
|
<ul id="header_nav">
|
|
<li class="first">
|
|
<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='All sales' mod='blockuserinfo'}</span>
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a href="{$base_dir_ssl}modules/invite/invite-program.php" title="{l s='Sponsor your friends' mod='blockuserinfo'}">
|
|
<span>{l s='Referral program' mod='blockuserinfo'}</span>
|
|
<span class="desc">{l s='Your credit:' mod='blockuserinfo'} {$customer_credit}</span>
|
|
</a>
|
|
</li>
|
|
<li class="last">
|
|
<a>
|
|
<span>{l s='My account' mod='blockuserinfo'}</span>
|
|
<span class="desc">{$cookie->customer_firstname|replace:'-':'- '|strtolower|ucwords|replace:'- ':'-'} {$cookie->customer_lastname|strtoupper|substr:0:1}.</span>
|
|
</a>
|
|
<div class="sub">
|
|
<ul>
|
|
<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('order-follow.php', true)}" title="{l s='My merchandise returns' mod='blockuserinfo'}">{l s='Merchandise returns' mod='blockuserinfo'}</a></li>
|
|
<li><a href="{$link->getPageLink('order-slip.php', true)}" title="{l s='My credit slips' mod='blockuserinfo'}">{l s='Credit slips' mod='blockuserinfo'}</a></li>
|
|
<li><a href="{$link->getPageLink('addresses.php', true)}" title="{l s='My addresses' mod='blockuserinfo'}">{l s='Addresses' 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="{$link->getPageLink('index.php', true)}?mylogout" title="{l s='Log out' mod='blockuserinfo'}">{l s='Log me out' mod='blockuserinfo'}</a></li>
|
|
</ul>
|
|
</div>
|
|
</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}
|