{*
 **********************************************************
 * Developed by: Team Theme Metro
 * Website: http://www.thememetro.com
 **********************************************************
*}


<div class="sidebar-scroll">
	<div class="media-search">	
		<div class="input-icon">
			<span class="fa fa-search"></span>
			<input type="text" class="input-menu" id="input-items" aria-label="{$LANG.search}">
		</div>
	</div>
	<ul id="side" class="nav navbar-nav side-nav">	
		{include file="$template/core/includes/primary-navbar.tpl" navbar=$primaryNavbar}	
	</ul>
	{if $themesettings.headersetting.accountactionbtn}
		{include file="$template/core/includes/side-menu-secondary.tpl"}
	{/if}
	
	{if !$themesettings.headersetting.enablepreheader}
	{if $loggedin}
		{if $languagechangeenabled && count($locales) > 1}
			<div class="d-block d-lg-none media{if !$themesettings.headersetting.accountactionbtn} border-top{/if}">	
				<ul class="sidebar-shortcuts">
					<li class="lang-btn d-block">
						<button type="button" class="btn btn-default btn-block bg-transparent border rounded" data-toggle="modal" data-target="#modalChooseLanguage">
							{if $languagechangeenabled && count($locales) > 1}
							<span class="d-inline-block align-middle">
								<span class="d-block iti-flag {if $activeLocale.countryCode === '001'}us{else}{$activeLocale.countryCode|lower}{/if}"></span>
							</span>
							{$activeLocale.localisedName}{/if}{if $languagechangeenabled && count($locales) > 1 && $currencies && !$loggedin}&nbsp;|&nbsp;{/if}{if !$loggedin && $currencies}{$activeCurrency.prefix} {$activeCurrency.code}{/if}
						</button>
					</li>
				</ul>
			</div>
		{/if}
	{else}
		{if $languagechangeenabled && count($locales) > 1 || $currencies}
			<div class="d-block d-lg-none media{if !$themesettings.headersetting.accountactionbtn} border-top{/if}">	
				<ul class="sidebar-shortcuts">
					<li class="lang-btn d-block">
						<button type="button" class="btn btn-default btn-block bg-transparent border rounded" data-toggle="modal" data-target="#modalChooseLanguage">
							{if $languagechangeenabled && count($locales) > 1}
							<span class="d-inline-block align-middle">
								<span class="d-block iti-flag {if $activeLocale.countryCode === '001'}us{else}{$activeLocale.countryCode|lower}{/if}"></span>
							</span>
							{$activeLocale.localisedName}{/if}{if $languagechangeenabled && count($locales) > 1 && $currencies && !$loggedin}&nbsp;|&nbsp;{/if}{if !$loggedin && $currencies}{$activeCurrency.prefix} {$activeCurrency.code}{/if}
						</button>
					</li>
				</ul>
			</div>
		{/if}		
	{/if}
	{/if}
</div>