{* * 2017-2019 Zemez * * JX Header Account * * NOTICE OF LICENSE * * This source file is subject to the General Public License (GPL 2.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/GPL-2.0 * @author Zemez (Alexander Grosul) * @copyright 2017-2019 Zemez * @license http://opensource.org/licenses/GPL-2.0 General Public License (GPL 2.0) *}
{if $customer.is_logged}

{$firstname} {$lastname}

{if $configs.JXHEADERACCOUNT_USE_AVATAR} {/if}

{l s='Sign out' mod='jxheaderaccount'}

{else}

{l s='Sign in' d='Shop.Theme.Actions'}

    {assign value=$login_form.formFields var="formFields"} {foreach from=$formFields item="field"} {form_field field=$field} {/foreach}

    {l s='Create an account' d='Shop.Theme.Actions'}

    {hook h='HOOK_CREATE_ACCOUNT_TOP'}
      {assign value=$register_form.formFields var="formFields"} {foreach from=$formFields item="field"} {form_field field=$field} {/foreach}

      {l s='Forgot your password?' d='Shop.Theme.Actions'}

        {l s='Please enter the email address you used to register. You will receive a temporary link to reset your password.' d='Shop.Theme.Customeraccount'}

        {/if}