<?php
/**
 * The template for displaying the footer
 *
 * Contains the closing of the "off-canvas-wrap" div and all content after.
 *
 * @package WordPress
 * @subpackage ClassiEra
 * @since ClassiEra 1.0
 */

?>

</section>
<?php 
global $redux_demo; 
$classieraCompany = $redux_demo['partners-on'];
$classieraFooterWidgets = $redux_demo['footer_widgets_area_on'];
$caticoncolor="";
$category_icon_code ="";
$category_icon="";
$category_icon_color="";
if($classieraCompany == 1){
?>
	<?php if ( is_page_template( 'template-listing-homepage.php' ) || is_category() ) { ?>
	<section id="company"><!-- Company Logos-->
		<div class="row">
			<?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'];	
			?>
			<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 }?>
<?php }?>	
<footer>
	<?php if($classieraFooterWidgets == 1){?>
	<section class="footer-content">
		<div class="row">			
			<?php dynamic_sidebar( 'footer-one' ); ?>			
		</div>
	</section>
	<?php } ?>
	<section class="footer-bottom">
		<div class="row">
			<?php 
				global $redux_demo;
				$footer_copyright = $redux_demo['footer_copyright'];				
			?>
			<div class="large-6 medium-12 small-10 small-centered large-uncentered columns">
				<p>
					<?php if(!empty($footer_copyright)) { 
						echo $footer_copyright;
					}?>
				</p>
			</div>
			<div class="large-6 medium-12 small-10 small-centered large-uncentered columns"> 
				<div class="footer-social <?php if(is_rtl()){ echo "left";}else{ echo "right";}?>">
					<?php 
						global $redux_demo;
						$facebook_link = $redux_demo['facebook-link'];
						$twitter_link = $redux_demo['twitter-link'];
						$dribbble_link = $redux_demo['dribbble-link'];
						$flickr_link = $redux_demo['flickr-link'];
						$github_link = $redux_demo['github-link'];
						$pinterest_link = $redux_demo['pinterest-link'];
						$youtube_link = $redux_demo['youtube-link'];
						$google_plus_link = $redux_demo['google-plus-link'];
						$linkedin_link = $redux_demo['linkedin-link'];
						$instagramLink = $redux_demo['instagram-link'];
						$vimeo_link = $redux_demo['vimeo-link'];
					?>
					<?php if(!empty($facebook_link)) { ?>
					<a href="<?php echo $facebook_link; ?>" target="_blank"><i class="fa fa-facebook"></i></a>
					<?php } ?>
					<?php if(!empty($twitter_link)) { ?>
					<a href="<?php echo $twitter_link; ?>" target="_blank"><i class="fa fa-twitter"></i></a>
					<?php } ?>
					<?php if(!empty($dribbble_link)) { ?>
					<a href="<?php echo $dribbble_link; ?>" target="_blank"><i class="fa fa-dribbble"></i></a>
					<?php } ?>
					<?php if(!empty($flickr_link)) { ?>
					<a href="<?php echo $flickr_link; ?>" target="_blank"><i class="fa fa-flickr"></i></a>
					<?php } ?>
					<?php if(!empty($github_link)) { ?>
					<a href="<?php echo $github_link; ?>" target="_blank"><i class="fa fa-github"></i></a>
					<?php } ?>
					<?php if(!empty($pinterest_link)) { ?>
					<a href="<?php echo $pinterest_link; ?>" target="_blank"><i class="fa fa-pinterest"></i></a>
					<?php } ?>
					<?php if(!empty($youtube_link)) { ?>
					<a href="<?php echo $youtube_link; ?>" target="_blank"><i class="fa fa-youtube"></i></a>
					<?php } ?>
					<?php if(!empty($google_plus_link)) { ?>
					<a href="<?php echo $google_plus_link; ?>" target="_blank"><i class="fa fa-google-plus"></i></a>
					<?php } ?>
					<?php if(!empty($linkedin_link)) { ?>
					<a href="<?php echo $linkedin_link; ?>" target="_blank"><i class="fa fa-linkedin"></i></a>
					<?php } ?>
					<?php if(!empty($instagramLink)) { ?>
					<a href="<?php echo $instagramLink; ?>" target="_blank"><i class="fa fa-instagram"></i></a>
					<?php } ?>
					<?php if(!empty($vimeo_link)) { ?>
					<a href="<?php echo $vimeo_link; ?>" target="_blank"><i class="fa fa-vimeo-square"></i></a>
					<?php } ?>
				</div>
			</div>
		</div>		
	</section>
	<?php $backtotop = $redux_demo['backtotop']; ?>
	<?php if($backtotop == 1){?>
	<a href="#" id="back-to-top" title="<?php esc_html_e( 'Back to top', 'classiera' ); ?>"><i class="fa fa-angle-double-up"></i></a>
	<?php } ?>
</footer>
<a class="exit-off-canvas"></a>
<?php do_action( 'foundationpress_layout_end' ); ?>
<?php wp_footer(); ?>
<?php do_action( 'foundationpress_before_closing_body' ); ?>
</body>
</html>