{* 
* @Module Name: Leo Feature
* @Website: leotheme.com.com - prestashop template provider
* @author Leotheme <leotheme@gmail.com>
* @copyright Leotheme
* @description: Leo feature for prestashop 1.7: ajax cart, review, compare, wishlist at product list 
*}
{if $isLogged}
<div class="quick-login-selector links dropdown js-dropdown popup-over">
  	<a href="javascript:void(0)" data-toggle="dropdown" class="popup-title" title="{l s='My Account' d='Shop.Theme.Global'}">
	    <i class="icons icon-user"></i>
 	</a>
 	<ul class="popup-content dropdown-menu user-info">
		<li>
			<a class="account" href="{$my_account_url}" title="{l s='My Account' d='Shop.Theme.Global'}" rel="nofollow">
		        <span>{l s='Hello' d='Shop.Theme.Global'} {$customerName}</span>
			</a>
		</li>
		<li>
			<a class="account" href="{$my_account_url}" title="{l s='My Account' d='Shop.Theme.Global'}" rel="nofollow">
				<i class="icons icon-user"></i> <span>{l s='My Account' d='Shop.Theme.Global'}</span>
			</a>
		</li>
		<li>
			<a class="logout" href="{$logout_url}" rel="nofollow" title="{l s='Sign out' d='Shop.Theme.Global'}">
		        <i class="icons icon-logout"></i> {l s='Sign out' d='Shop.Theme.Actions'}
			</a>
		</li>
	</ul>
</div>
{else}
	{if $leo_type == 'html'}
		{$html_form nofilter}
	{else}
		{if $leo_type == 'dropdown'}
			<div class="dropdown">
		{/if}
		{if $leo_type == 'dropup'}
			<div class="dropup">
		{/if}
				<a href="javascript:void(0)" class="leo-quicklogin{if $leo_type == 'dropdown' || $leo_type == 'dropup'} leo-dropdown dropdown-toggle{/if}" data-enable-sociallogin="{if isset($enable_sociallogin)}{$enable_sociallogin}{/if}" data-type="{$leo_type}" data-layout="{$leo_layout}"{if $leo_type == 'dropdown' || $leo_type == 'dropup'} data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"{/if} title="{l s='Quick Login' d='Shop.Theme.Global'}" rel="nofollow">
					<i class="icons icon-user"></i>
				</a>
		{if $leo_type == 'dropdown' || $leo_type == 'dropup'}
				<div class="dropdown-menu leo-dropdown-wrapper">
					{$html_form nofilter}
				</div>
			</div>
		{/if}
	{/if}
{/if}