Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 28th, 2012  |  syntax: None  |  size: 2.91 KB  |  hits: 21  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. {*
  2. * 2007-2012 PrestaShop
  3. *
  4. * NOTICE OF LICENSE
  5. *
  6. * This source file is subject to the Academic Free License (AFL 3.0)
  7. * that is bundled with this package in the file LICENSE.txt.
  8. * It is also available through the world-wide-web at this URL:
  9. * http://opensource.org/licenses/afl-3.0.php
  10. * If you did not receive a copy of the license and are unable to
  11. * obtain it through the world-wide-web, please send an email
  12. * to license@prestashop.com so we can send you a copy immediately.
  13. *
  14. * DISCLAIMER
  15. *
  16. * Do not edit or add to this file if you wish to upgrade PrestaShop to newer
  17. * versions in the future. If you wish to customize PrestaShop for your
  18. * needs please refer to http://www.prestashop.com for more information.
  19. *
  20. *  @author PrestaShop SA <contact@prestashop.com>
  21. *  @copyright  2007-2012 PrestaShop SA
  22. *  @version  Release: $Revision: 14011 $
  23. *  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
  24. *  International Registered Trademark & Property of PrestaShop SA
  25. *}
  26.  
  27. <!-- Block user information module HEADER -->
  28. <div id="header_user">
  29.         <p id="header_user_info">
  30.                 {l s='Welcome' mod='blockuserinfo'},
  31.                 {if $cookie->isLogged()}
  32.                         <span>{$cookie->customer_firstname} {$cookie->customer_lastname}</span>
  33.                         (<a href="{$link->getPageLink('index.php')}?mylogout" title="{l s='Log me out' mod='blockuserinfo'}">{l s='Log out' mod='blockuserinfo'}</a>)
  34.                 {else}
  35.                         <a href="{$link->getPageLink('my-account.php', true)}">{l s='Log in' mod='blockuserinfo'}</a>
  36.                 {/if}
  37.         </p>
  38.         <ul id="header_nav">
  39.                 {if !$PS_CATALOG_MODE}
  40.                 <li id="shopping_cart">
  41.                         <a href="{$link->getPageLink("$order_process.php", true)}" title="{l s='Your Shopping Cart' mod='blockuserinfo'}">{l s='Cart:' mod='blockuserinfo'}</a>
  42.                         <span class="ajax_cart_quantity{if $cart_qties == 0} hidden{/if}">{$cart_qties}</span>
  43.                         <span class="ajax_cart_product_txt{if $cart_qties != 1} hidden{/if}">{l s='product' mod='blockuserinfo'}</span>
  44.                         <span class="ajax_cart_product_txt_s{if $cart_qties < 2} hidden{/if}">{l s='products' mod='blockuserinfo'}</span>
  45.                         {if $cart_qties >= 0}
  46.                                 <span class="ajax_cart_total{if $cart_qties == 0} hidden{/if}">
  47.                                         {if $priceDisplay == 1}
  48.                                                 {assign var='blockuser_cart_flag' value='Cart::BOTH_WITHOUT_SHIPPING'|constant}
  49.                                                 {convertPrice price=$cart->getOrderTotal(false, $blockuser_cart_flag)}
  50.                                         {else}
  51.                                                 {assign var='blockuser_cart_flag' value='Cart::BOTH_WITHOUT_SHIPPING'|constant}
  52.                                                 {convertPrice price=$cart->getOrderTotal(true, $blockuser_cart_flag)}
  53.                                         {/if}
  54.                                 </span>
  55.                         {/if}
  56.                         <span class="ajax_cart_no_product{if $cart_qties > 0} hidden{/if}">{l s='(empty)' mod='blockuserinfo'}</span>
  57.                 </li>
  58.                 {/if}
  59.                 <li id="your_account"><a href="{$link->getPageLink('my-account.php', true)}" title="{l s='Your Account' mod='blockuserinfo'}">{l s='Your Account' mod='blockuserinfo'}</a></li>
  60.         </ul>
  61. </div>
  62. <!-- /Block user information module HEADER -->