<?php
/**
 * slant Footer
 *
 * Displays all of the <footer> section and everything up till the end of body>
 *
 */
?>
<?php global $slant_options;
$page_template='';
$page_template = get_post_meta( $post->ID, '_wp_page_template', true );

	       $kp_options = get_option('slant_options');  ?>
		   
		   <?php if ( ! is_page_template('comming-soon.php') || $page_template != 'comming-soon.php' ) {  ?>
<footer>	
	<div class="footer container centered" >
			<div class="row">
		
			  
			
			
			<br>
			<?php 
			if(isset($kp_options['functional-footer']) && $kp_options['functional-footer'] =="1" ){ ?>
			<div id="footer-widgets">
			<div class="container">
			<div class="row">
			
			<div class="col-md-3 col-sm-12 col-xs-12">
			 <!-- Footer widget area 1 -->
		              <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar('Footer Area 1') ) : else : ?>	
		              	  <div class="widget">		
						  	 <h2 class="widgettitle">Widget Area 1</h2>
						 	 <p class="no-widget-added"><a href="<?php echo admin_url('widgets.php'); ?>">Click here to assign a widget to this area.</a></p>
				     	  </div>
			 <?php endif; ?>
			<div class="clearfix"></div>
			</div>
		
			
			<div class="col-md-3 col-sm-12 col-xs-12">
			 <!-- Footer widget area 2 -->
		             <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar('Footer Area 2') ) : else : ?>	
		                  <div class="widget">			
						 	 <h2 class="widgettitle">Widget Area 2</h2>
						 	 <p class="no-widget-added"><a href="<?php echo admin_url('widgets.php'); ?>">Click here to assign a widget to this area.</a></p>
				     	  </div>
				     <?php endif; ?>
			<div class="clearfix"></div>
			</div>
			
			<div class="col-md-3 col-sm-12 col-xs-12">
			
			 <!-- Footer widget area 3 -->
			              <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar('Footer Area 3') ) : else : ?>		
			              	  <div class="widget">			
							  	<h2 class="widgettitle">Widget Area 3</h2>
							  	<p class="no-widget-added"><a href="<?php echo admin_url('widgets.php'); ?>">Click here to assign a widget to this area.</a></p>
							  </div>		   
					     <?php endif; ?>
						 <div class="clearfix"></div>
			</div>
			
			
			<div class="col-md-3 col-sm-12 col-xs-12">
			
			 <!-- Footer widget area 4 -->
			              <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar('Footer Area 4') ) : else : ?>		
			              	  <div class="widget">			
							  	<h2 class="widgettitle">Widget Area 4</h2>
							  	<p class="no-widget-added"><a href="<?php echo admin_url('widgets.php'); ?>">Click here to assign a widget to this area.</a></p>
							  </div>		   
					     <?php endif; ?>
				<div class="clearfix"></div>
			</div>
			
			
			
			</div>
			</div>
			</div>
			<?php } ?>
				<br>
			
			 <?php 
			    if (isset($kp_options['footer_message']) && $kp_options['footer_message'] != ""){?>
				<h1 class="centered"><?php echo $kp_options['footer_message'];?></h1>
			  <?php }  ?>
				
			  <?php
    			if (isset($kp_options['use-footer-logo']) && $kp_options['use-footer-logo'] == "1") {
				if (isset($kp_options['image-footer-logo']) && $kp_options['image-footer-logo'] == "1") {
				if (isset($kp_options['footer-logo']) && $kp_options['footer-logo'] != "") {
                $kp_footer_logo = $kp_options['footer-logo'];
				if($kp_footer_logo['url']){ echo '<h2 data-animated="fadeInUp" > <a data-scroll-goto="0" href="'. home_url() .'">
				<img  class="logo" alt="'. get_bloginfo('name') .'" src="' . $kp_footer_logo['url'] . '" /></a></h2>';}
					}
				 } else { echo '<h2 data-animated="fadeInUp" ><a data-scroll-goto="0" href="'. home_url() .'">'.get_bloginfo('name').'</a></h2>'; }
				}		

				?>
				
				
				<?php
				if (isset($kp_options['enable-footer-copyright']) && $kp_options['enable-footer-copyright'] == "1"){ ?>
			   <div class="row align-center copyright"><div class="col-sm-12">
			   <?php 
			    if (isset($kp_options['footer_copyright']) && $kp_options['footer_copyright'] != ""){?>
				<p><?php echo $kp_options['footer_copyright'];?> </p>
			  <?php } else{ ?><p>copyright  &copy;<?php echo date("Y"); echo " "; bloginfo('name'); ?>.</p><?php } ?>
					
				</div>
			</div>
			
			<?php } ?>
			
			<?php
			if (isset($kp_options['use-footer-social']) && $kp_options['use-footer-social'] == "1") { ?>
				
			<div data-animated="fadeIn" class="row social-footer">
				<div class="col-sm-12 align-center">
                    <ul class="social-network social-circle">
                      
					  
				<?php if(isset($kp_options['facebook-url']) && $kp_options['facebook-url'] != ""){
				if(isset($kp_options['footer-facebook']) && $kp_options['footer-facebook'] == "1"){
                ?> <li><a href="<?php echo $kp_options['facebook-url']; ?>" class="icoFacebook" title="Facebook"><i class="fa fa-facebook"></i></a></li> <?php
                }}
				if(isset($kp_options['twitter-url']) && $kp_options['twitter-url'] != ""){ 
				if(isset($kp_options['footer-twitter']) && $kp_options['footer-twitter'] == "1"){				
                ?> <li><a href="<?php echo $kp_options['twitter-url'] ;?>" class="icoTwitter" title="Twitter"><i class="fa fa-twitter"></i></a></li> <?php
                }}
				if(isset($kp_options['google-plus-url']) && $kp_options['google-plus-url'] != ""){ 
				if(isset($kp_options['footer-googleplus']) && $kp_options['footer-googleplus'] == "1"){	
				?><li><a href="<?php echo $kp_options['google-plus-url'] ;?>" class="icoGoogle" title="Google +"><i class="fa fa-google-plus"></i></a></li> <?php
                }}
				if(isset($kp_options['linkedin-url']) && $kp_options['linkedin-url'] != ""){ 
				if(isset($kp_options['footer-linkedin']) && $kp_options['footer-linkedin'] == "1"){	
				?> <li><a href="<?php echo $kp_options['linkedin-url'] ;?>" class="icoLinkedin" title="Linkedin"><i class="fa fa-linkedin"></i></a></li> <?php
                }}
				
				if(isset($kp_options['youtube-url']) && $kp_options['youtube-url'] != ""){ 
				if(isset($kp_options['footer-youtube']) && $kp_options['footer-youtube'] == "1"){	
				?>  <li><a href="<?php echo $kp_options['youtube-url'] ;?>" class="icoyoutube" title="youtube"><i class="fa fa-youtube"></i></a></li> <?php
                }}
				?>

				   </ul>				
				</div>
			</div>
			
			<?php } ?>

		<br><br>	

		</div><!-- row -->
		</div><!-- container -->
</footer>
<!-- /footer  -->
<?php } ?>
	<?php
		$nav_style = $kp_options['nav_style'];
		if($nav_style =="side"){
		?>
  </div><!-- /#page-content-wrapper -->
	<?php } ?>
</div><!--Wrapper-->
<?php if (isset($str_options['google-analytics']) && $str_options['google-analytics'] != ""){ echo $str_options['google-analytics']; } ?> 
<?php wp_footer(); ?>
</body>
</html>