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


{if $themesettings.footersetting.enablelogolist}
<div class="cros-partners border-top">
	<div class="container">
		<div class="owl-carousel partners-slider no-margin">
			<!-- Wrapper for partners slides --> 
			{assign var="logolist" value="logo"|adminpanel_getpage}
			{foreach from=$logolist item=listtem}
				<div class="item">
					<img src="{if $listtem.logo_url|strstr:"https"}{else}{$WEB_ROOT}/{/if}{$listtem.logo_url}" alt="{$listtem.logo_caption}" class="center-block img-fluid">
				</div>                        
			{/foreach}
			<!-- /Wrapper for slides -->
		</div>
	</div>
</div>
{/if}

<div class="footer-widgets{if $themesettings.footersetting.footerbgcolor == '0'}{elseif $themesettings.footersetting.footerbgcolor == '1'} bg-primary{elseif $themesettings.footersetting.footerbgcolor == '2'} dark{/if}{if $themesettings.footersetting.PaymentIcons} picons{/if}">
	<div class="container">
		{if $themesettings.footersetting.footercolumn}
		<div class="row">
			<div class="col-lg-9{if $themesettings.footersetting.footermenuposition} order-lg-2{/if}">
				<div class="footer-navbar justify-content-between">
					{foreach from=$footermenu key=$menuname item=menui}
					{if $menui.data.enabled == ''}
						{continue}
					{/if}
					{if $loggedin == false && $menui.logged_only == '2'}
						{continue}
					{/if}
					{if $loggedin && $menui.logged_only == '3'}
						{continue}
					{/if}
					<div class="navbar-items mb-md-3" id="menuitem-{$menui@iteration}">
						<div data-toggle="collapse" data-target="#FooterMenu-{$menuname}">
							<h4><i class="{$menui.data.icon}"></i> {$menui.name} <span class="pull-right float-right"><i class="fas fa-angle-right"></i></span></h4>
						</div>
									
						{if count($menui.children) > 0}
						<ul id="FooterMenu-{$menuname}" class="list-unstyled collapse">
							{foreach from=$menui.children key=$cmenuname item=cmenui}
								{if $cmenui.data.enabled == ''}
									{continue}
								{/if}						    
								{if $loggedin == false && $cmenui.logged_only == '2'}
									{continue}
								{/if}
								{if $loggedin && $cmenui.logged_only == '3'}
									{continue}
								{/if}	            				    
								<li{if $cmenui.data.class} class="{$cmenui.data.class}"{/if}>{if $cmenui.data.icon}<i class="{$cmenui.data.icon} mr-1"></i>{/if}{if $cmenui.url|strstr:"@nolink"}{else} <a href="{if $cmenui.url|strstr:"https"}{else}{$WEB_ROOT}/{/if}{$cmenui.url}"{if $cmenui.data.newtab eq "1"} target="_blank"{/if}>{/if}{$cmenui.name}{if $cmenui.url|strstr:"nolink"}{else}</a>{/if}</li>
							{/foreach}
						</ul>
						{/if}
					</div>
					{/foreach}
				</div>
			</div>
			{*
			<div class="col-lg-3{if $themesettings.footersetting.footermenuposition} order-lg-1{/if}">

				{if $themesettings.footersetting.nowidget == ""}
				<div class="contacts_box{if $themesettings.footersetting.columnstyle} p-3 border rounded{/if}">	
					{if !empty($socialAccounts)}
						<h4>{lang key="twitterfollowus"}</h4>
						<div class="social-icons mb-3">
						{foreach $socialAccounts as $account}
							<a class="btn btn-social border" href="{$account->getUrl()}" target="_blank">
								<i class="{$account->getFontAwesomeIcon()}"></i>
							</a>
						{/foreach}
						</div>
					{/if}
							
	
					{if $themesettings.general.phonenumber}
						<div class="d-block mb-3">
							<a class="bigger-110" href="tel:{$themesettings.general.phonenumber}">
								<mark class="px-3"><i class="fas fa-phone-volume"></i> {$themesettings.general.phonenumber}</mark>
							</a>
						</div>
					{/if}
							
					{if $themesettings.footersetting.disabelcontact}
						<a href="{$themesettings.footersetting.custombtnlink}" class="btn btn-contacts btn-secondary">
							{$themesettings.footersetting.custombtntext}
						</a>
					{else}
						<a href="{$WEB_ROOT}/contact.php" class="btn btn-contacts btn-secondary">
							{if $ContactFormRedirect == ""}{lang key="contactUs"}{else}{lang key="navopenticket"}{/if}
						</a>							
					{/if}
				</div>
				{/if}

				
				{if $themesettings.footersetting.wcCode}
					{$themesettings.footersetting.wcCode|unescape:"html"}
				{/if}
						
			</div>
				*}
		</div>
				
		{else}
		
		<div class="footer-navbar justify-content-between">
			{foreach from=$footermenu key=$menuname item=menui}
			{if $menui.data.enabled == ''}
				{continue}
			{/if}
			{if $loggedin == false && $menui.logged_only == '2'}
				{continue}
			{/if}
			{if $loggedin && $menui.logged_only == '3'}
				{continue}
			{/if}
			<div class="navbar-items mb-md-3" id="menuitem-{$menui@iteration}">
				<div data-toggle="collapse" data-target="#FooterMenu-{$menuname}">
					<h4><i class="{$menui.data.icon}"></i> {$menui.name} <span class="pull-right float-right"><i class="fas fa-angle-right"></i></span></h4>
				</div>
									
				{if count($menui.children) > 0}
				<ul id="FooterMenu-{$menuname}" class="list-unstyled collapse">
					{foreach from=$menui.children key=$cmenuname item=cmenui}
						{if $cmenui.data.enabled == ''}
							{continue}
						{/if}						    
						{if $loggedin == false && $cmenui.logged_only == '2'}
							{continue}
						{/if}
						{if $loggedin && $cmenui.logged_only == '3'}
							{continue}
						{/if}	            				    
						<li{if $cmenui.data.class} class="{$cmenui.data.class}"{/if}>{if $cmenui.data.icon}<i class="{$cmenui.data.icon} mr-1"></i>{/if}{if $cmenui.url|strstr:"@nolink"}{else} <a href="{if $cmenui.url|strstr:"https"}{else}{$WEB_ROOT}/{/if}{$cmenui.url}"{if $cmenui.data.newtab eq "1"} target="_blank"{/if}>{/if}{$cmenui.name}{if $cmenui.url|strstr:"nolink"}{else}</a>{/if}</li>
					{/foreach}
				</ul>
				{/if}
			</div>
			{/foreach}
		</div>				
				
		{/if}
	</div>
</div>