Files
Falcon-PrestaShop-9/modules/ps_customeraccountlinks/ps_customeraccountlinks.tpl

90 lines
4.8 KiB
Smarty

{**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/AFL-3.0
* 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 https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
*}
<div id="block_myaccount_infos" class="col-md-3 col-12 mb-lg-4">
<div class="d-flex align-items-center mb-3 justify-content-between position-relative">
<span class="h4 mb-0">{l s='Your account' d='Shop.Theme.Customeraccount'}</span>
<a href="#footer_account_list" class="icon-collapse stretched-link text-reset d-block d-md-none" data-toggle="collapse">
<i class="material-icons d-block"></i>
</a>
</div>
<div class="collapse d-md-block" id="footer_account_list">
<ul class="links-list">
{if $customer.is_logged}
<li class="links-list__elem">
<a class="links-list__link" href="{$urls.pages.identity}" title="{l s='Information' d='Shop.Theme.Customeraccount'}" rel="nofollow">{l s='Information' d='Shop.Theme.Customeraccount'}</a>
</li>
{if $customer.addresses|count}
<li class="links-list__elem">
<a class="links-list__link" href="{$urls.pages.addresses}" title="{l s='Addresses' d='Shop.Theme.Customeraccount'}" rel="nofollow">{l s='Addresses' d='Shop.Theme.Customeraccount'}</a>
</li>
{else}
<li class="links-list__elem">
<a class="links-list__link" href="{$urls.pages.address}" title="{l s='Add first address' d='Shop.Theme.Customeraccount'}" rel="nofollow">{l s='Add first address' d='Shop.Theme.Customeraccount'}</a>
</li>
{/if}
{if !$configuration.is_catalog}
<li class="links-list__elem">
<a class="links-list__link" href="{$urls.pages.history}" title="{l s='Orders' d='Shop.Theme.Customeraccount'}" rel="nofollow">{l s='Orders' d='Shop.Theme.Customeraccount'}</a>
</li>
{/if}
{if !$configuration.is_catalog}
<li class="links-list__elem">
<a class="links-list__link" href="{$urls.pages.order_slip}" title="{l s='Credit slips' d='Shop.Theme.Customeraccount'}" rel="nofollow">{l s='Credit slips' d='Shop.Theme.Customeraccount'}</a>
</li>
{/if}
{if $configuration.voucher_enabled && !$configuration.is_catalog}
<li class="links-list__elem">
<a class="links-list__link" href="{$urls.pages.discount}" title="{l s='Vouchers' d='Shop.Theme.Customeraccount'}" rel="nofollow">{l s='Vouchers' d='Shop.Theme.Customeraccount'}</a>
</li>
{/if}
{if $configuration.return_enabled && !$configuration.is_catalog}
<li class="links-list__elem">
<a class="links-list__link" href="{$urls.pages.order_follow}" title="{l s='Merchandise returns' d='Shop.Theme.Customeraccount'}" rel="nofollow">{l s='Merchandise returns' d='Shop.Theme.Customeraccount'}</a>
</li>
{/if}
{hook h='displayMyAccountBlock'}
<li class="links-list__elem">
<a class="links-list__link" href="{$urls.actions.logout}" title="{l s='Log me out' d='Shop.Theme.Customeraccount'}" rel="nofollow">{l s='Sign out' d='Shop.Theme.Actions'}</a>
</li>
{else}
<li class="links-list__elem">
<a class="links-list__link" href="{$urls.pages.guest_tracking}" title="{l s='Order tracking' d='Shop.Theme.Customeraccount'}" rel="nofollow">{l s='Order tracking' d='Shop.Theme.Customeraccount'}</a>
</li>
<li class="links-list__elem">
<a class="links-list__link" href="{$urls.pages.my_account}" title="{l s='Log in to your customer account' d='Shop.Theme.Customeraccount'}" rel="nofollow">{l s='Sign in' d='Shop.Theme.Actions'}</a>
</li>
<li class="links-list__elem">
<a class="links-list__link" href="{$urls.pages.register}" title="{l s='Create account' d='Shop.Theme.Customeraccount'}" rel="nofollow">{l s='Create account' d='Shop.Theme.Customeraccount'}</a>
</li>
{hook h='displayMyAccountBlock'}
{/if}
</ul>
</div>
</div>