<?php 
global $redux_demo;
$partner1 = $redux_demo['partner1']['url'];
$partner2 = $redux_demo['partner2']['url'];
$partner3 = $redux_demo['partner3']['url'];
$partner4 = $redux_demo['partner4']['url'];
$partner5 = $redux_demo['partner5']['url'];
$partner6 = $redux_demo['partner6']['url'];
$partner1URL = $redux_demo['partner1-url'];
$partner2URL = $redux_demo['partner2-url'];
$partner3URL = $redux_demo['partner3-url'];
$partner4URL = $redux_demo['partner4-url'];
$partner5URL = $redux_demo['partner5-url'];
$partner6URL = $redux_demo['partner6-url'];	
?>

<?php if ( is_page_template( 'template-homepage-v2.php' ) || is_page_template( 'template-homepage-v3.php' ) || is_page_template( 'template-homepage-v4.php' )) { ?>


	<section id="companyV1"><!-- Company Logos-->
		<div class="row">						
			<h4 class="text-center"><?php esc_html_e('Our Sponser', 'classiera'); ?></h4>
			<div class="sponsers">
				<?php 
				if(!empty($partner1)){
				?>
				<a href="<?php echo $partner1URL ;?>"><img src="<?php echo $partner1 ?>" alt="parnter logo"></a>
				<?php }
				if(!empty($partner2)){
				?>
				<a href="<?php echo $partner2URL ;?>"><img src="<?php echo $partner2 ?>" alt="parnter logo"></a>
				<?php }
				if(!empty($partner3)){
				?>
				<a href="<?php echo $partner3URL ;?>"><img src="<?php echo $partner3 ?>" alt="parnter logo"></a>
				<?php }
				if(!empty($partner4)){
				?>
				<a href="<?php echo $partner4URL ;?>"><img src="<?php echo $partner4 ?>" alt="parnter logo"></a>	
				<?php }
				if(!empty($partner5)){
				?>
				<a href="<?php echo $partner5URL ;?>"><img src="<?php echo $partner5 ?>" alt="parnter logo"></a>
				<?php }
				if(!empty($partner6)){
				?>
				<a href="<?php echo $partner6URL ;?>"><img src="<?php echo $partner6 ?>" alt="parnter logo"></a>
				<?php }?>
			</div>
		</div>
	</section><!-- Company Logos-->
	

<?php }else{?>
<section id="company"><!-- Company Logos-->
	<div class="row">		
		<p><a href="#"><?php esc_html_e('As seen On', 'classiera'); ?></a></p>
		<div class="str3 str_wrap">
			<?php 
			if(!empty($partner1)){
			?>
			<a href="<?php echo $partner1URL ;?>"><img src="<?php echo $partner1 ?>" alt="parnter logo"></a>
			<?php }
			if(!empty($partner2)){
			?>
			<a href="<?php echo $partner2URL ;?>"><img src="<?php echo $partner2 ?>" alt="parnter logo"></a>
			<?php }
			if(!empty($partner3)){
			?>
			<a href="<?php echo $partner3URL ;?>"><img src="<?php echo $partner3 ?>" alt="parnter logo"></a>
			<?php }
			if(!empty($partner4)){
			?>
			<a href="<?php echo $partner4URL ;?>"><img src="<?php echo $partner4 ?>" alt="parnter logo"></a>	
			<?php }
			if(!empty($partner5)){
			?>
			<a href="<?php echo $partner5URL ;?>"><img src="<?php echo $partner5 ?>" alt="parnter logo"></a>
			<?php }
			if(!empty($partner6)){
			?>
			<a href="<?php echo $partner6URL ;?>"><img src="<?php echo $partner6 ?>" alt="parnter logo"></a>
			<?php }?>
		</div>
	</div>
</section>
	<?php }?>