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

<div class="sec footer{if $themesettings.clientarea.viandq neq "outer-layout"} d-print-none{/if}{if $templatefile eq "order"} spc{/if}{if $templatefile eq "order"}{if $themesettings.orderform.opcnoheader || $themesettings.orderform.opcnofooter} d-none{/if}{/if}">
	<div class="block-footer">
		
		{if $themesettings.footersetting.simplefooter eq "0"}
		{elseif $themesettings.footersetting.simplefooter eq "1"}
			{if $templatefile eq "pagebuilder" or $templatefile eq "homepage" or $pagetype eq "custom"}
				{include file="$template/core/includes/footer-widgets.tpl"}
			{/if}
		{elseif $themesettings.footersetting.simplefooter eq "2"}
			{if !$loggedin}
				{include file="$template/core/includes/footer-widgets.tpl"}
			{/if}
		{else}
			{include file="$template/core/includes/footer-widgets.tpl"}
		{/if}
		
		{if $themesettings.footersetting.fcCode && $themesettings.footersetting.fccodepo == ""}
			<div class="fcCode">
				<div class="container">
					{$themesettings.footersetting.fcCode|unescape:"html"}
				</div>
			</div>
		{/if}
		
		<div class="sfooter">
			<div class="container position-relative">
				<div class="footer-last align-items-center{if $themesettings.footersetting.PaymentIcons} picons{/if}{if $themesettings.footersetting.nowidget eq "" && $themesettings.footersetting.footermenuitems eq "" && $themesettings.footersetting.footercolumn neq ""} {/if}">
					
					{if $themesettings.footersetting.footercolumn && $themesettings.footersetting.simplefooter eq ""}
						<div>
							{if $themesettings.footersetting.nowidget neq ""}
								{if $themesettings.footersetting.footermenuitems}
									{include file="$template/core/includes/footer-submenu.tpl"}
								{/if}
							{/if}
							<div class="footer-copyright">
								<span>{lang key="copyrightFooterNotice" year=$date_year company=$companyname}</span>
							</div>
						</div>
						
						{if $themesettings.footersetting.nowidget}
						<div class="btn-container">
							<div class="social-icons mt-3 mt-md-0">
								{if !empty($socialAccounts)}
									{foreach $socialAccounts as $account}
										<a class="btn btn-social border" href="{$account->getUrl()}" target="_blank">
											<i class="{$account->getFontAwesomeIcon()}"></i>
										</a>
									{/foreach}
								{/if}
							</div>
							{if $themesettings.headersetting.accountactionbtn && !$loggedin && !$themesettings.headersetting.enablepreheader}
							{if $languagechangeenabled && count($locales) > 1 || $currencies}			
								<button type="button" class="d-none d-lg-block btn btn-default px-2 py-1 ml-3 mt-3 mt-md-0" 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 === 'GB'}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>
							{/if}
							{/if}
							<a href="#" class="back-to-top btn" role="button">
								<i class="fas fa-arrow-alt-to-top icon-only text-muted"></i>
							</a>
						</div>
						{else}
							<div class="btn-container">
								{if $themesettings.footersetting.footermenuitems}
									{include file="$template/core/includes/footer-submenu.tpl"}
								{/if}
								{if $themesettings.headersetting.accountactionbtn && !$loggedin && !$themesettings.headersetting.enablepreheader}
								{if $languagechangeenabled && count($locales) > 1 || $currencies}			
									<button type="button" class="d-none d-lg-block btn btn-default px-2 py-1 ml-3 mt-3 mt-md-0" 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 === 'GB'}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>
								{/if}
								{/if}
								<a href="#" class="back-to-top btn" role="button">
									<i class="fas fa-arrow-alt-to-top icon-only text-muted"></i>
								</a>
							</div>							
						{/if}
					
					{else}
						<div>
							{if $themesettings.footersetting.footermenuitems && !empty($socialAccounts)}
								{include file="$template/core/includes/footer-submenu.tpl"}
							{/if}
							<div class="footer-copyright">
								<span>{lang key="copyrightFooterNotice" year=$date_year company=$companyname}</span>
							</div>
						</div>
						<div class="btn-container">
							<div class="social-icons mt-3 mt-md-0">
								{if !empty($socialAccounts)}
									{foreach $socialAccounts as $account}
										<a class="btn btn-social border" href="{$account->getUrl()}" target="_blank">
											<i class="{$account->getFontAwesomeIcon()}"></i>
										</a>
									{/foreach}
								{else}
								
									{if $themesettings.footersetting.footermenuitems}
										{include file="$template/core/includes/footer-submenu.tpl"}
									{/if}								
								{/if}
								
							</div>
							{if $themesettings.headersetting.accountactionbtn && !$loggedin && !$themesettings.headersetting.enablepreheader}
							{if $languagechangeenabled && count($locales) > 1 || $currencies}			
								<button type="button" class="d-none d-lg-block btn btn-default px-2 py-1 ml-3 mt-3 mt-md-0" 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 === 'GB'}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>
							{/if}
							{/if}
							<a href="#" class="back-to-top btn" role="button">
								<i class="fas fa-arrow-alt-to-top icon-only text-muted"></i>
							</a>
						</div>
					{/if}

				</div>
				{if $themesettings.footersetting.PaymentIcons}
				<div class="payment-icons">
					{if $themesettings.footersetting.PayCode}
						<div class="p-2 border rounded white">
							{$themesettings.footersetting.PayCode|unescape:"html"}
						</div>
					{else}
					<ul>
						<li><i class="fab fa-cc-mastercard"></i></li>
						<li><i class="fab fa-cc-visa"></i></li>
						<li><i class="fab fa-cc-amex"></i></li>
						<li><i class="fab fa-cc-discover"></i></li>
						<li><i class="fab fa-cc-paypal"></i></li>
						<li><i class="fab fa-google-wallet"></i></li>
					</ul>
					{/if}
				</div>
				{/if}
				
				{if $themesettings.footersetting.fcCode && $themesettings.footersetting.fccodepo != ""}
					<div class="fcCode">
						{$themesettings.footersetting.fcCode|unescape:"html"}
					</div>
				{/if}
			</div>
		</div>
	</div>
</div>

<script src="{$WEB_ROOT}/templates/{$template}/assets/js/main.min.js?v={if $lessvariables.version}{$lessvariables.version}{else}{$versionHash}{/if}"></script>

<script>
jQuery(document).ready(function() {
	{if $themesettings.general.themelayout !== "1"}
		{if $themesettings.headersetting.navsticky}
			Apps.initNavTopBar();
		{/if}
	{/if}

	{if $themesettings.footersetting.simplefooter eq "0"}
	{elseif $themesettings.footersetting.simplefooter eq "1"}
		{if $templatefile eq "pagebuilder" or $templatefile eq "homepage" or $pagetype eq "custom"}
			{if $themesettings.footersetting.enablelogolist}
			jQuery(".partners-slider").owlCarousel({
				loop: true,			
				autoplay:true,
				dots: false,
				responsive:{
					0:{
						items:1,
					},
					450:{
						items:2,
					},
					768:{
						items:3,
					},
					992:{
						items:4,
					},
					1200:{
						items:5,
					}
				}
			});
			{/if}
		{/if}
	{elseif $themesettings.footersetting.simplefooter eq "2"}
		{if !$loggedin}
			{if $themesettings.footersetting.enablelogolist}
			jQuery(".partners-slider").owlCarousel({
				loop: true,			
				autoplay:true,
				dots: false,
				responsive:{
					0:{
						items:1,
					},
					450:{
						items:2,
					},
					768:{
						items:3,
					},
					992:{
						items:4,
					},
					1200:{
						items:5,
					}
				}
			});
			{/if}
		{/if}
	{else}
		{if $themesettings.footersetting.enablelogolist}
		jQuery(".partners-slider").owlCarousel({
			loop: true,			
			autoplay:true,
			dots: false,
			responsive:{
				0:{
					items:1,
				},
				450:{
					items:2,
				},
				768:{
					items:3,
				},
				992:{
					items:4,
				},
				1200:{
					items:5,
				}
			}
		});
		{/if}
	{/if}
	
	// Item selector
	jQuery('.item-selector .item').click(function(e) {
		e.preventDefault();
		jQuery(this).closest('.item-selector').find('.item').removeClass('active').end()
			.find('input').val(jQuery(this).data('value'));
		jQuery(this).addClass('active');
	});
});
	
</script>