<?php
/**
 * Landing Bottom Group  
 * @package Influential Lite
 */

if (   ! is_active_sidebar( 'section5-a'  )		
	&& ! is_active_sidebar( 'section5-b'  )		
	&& ! is_active_sidebar( 'section5-c'  )		
	&& ! is_active_sidebar( 'section5-d'  )		

	&& ! is_active_sidebar( 'section6-a'  )		
	&& ! is_active_sidebar( 'section6-b'  )		
	&& ! is_active_sidebar( 'section6-c'  )		
	&& ! is_active_sidebar( 'section6-d'  )			
		
	)
		return;
	// If we get this far, we have widgets. Let do this.
	
?>

<?php if( esc_attr(get_theme_mod( 'enable_section5_sidebars', 0 ) ) ) : ?>
<div id="section5" class="section widget-area clearfix <?php echo esc_attr(get_theme_mod( 'section5_spacing', 'spacing' )); ?>" >
		<?php 
		if( esc_attr(get_theme_mod( 'section5_fluid', 0 ) ) ) : 
				echo '<div class="container-fluid">';
			else : 
				echo '<div class="container">';
		endif;
		?>
		<div class="row">
			  
			  <?php if ( is_active_sidebar( 'section5-a' ) ) : ?>
			  <div id="section5-a" <?php influential_lite_section5(); ?>>
				<?php dynamic_sidebar( 'section5-a' ); ?>
				</div>
			  <?php endif; ?>
			  
			  <?php if ( is_active_sidebar( 'section5-b' ) ) : ?>           
			  <div id="section5-b" <?php influential_lite_section5(); ?>>
				<?php dynamic_sidebar( 'section5-b' ); ?>
				</div>          
			  <?php endif; ?>
			  
			  <?php if ( is_active_sidebar( 'section5-c' ) ) : ?>            
			  <div id="section5-c" <?php influential_lite_section5(); ?>>
				<?php dynamic_sidebar( 'section5-c' ); ?>
				</div>
			  <?php endif; ?>
			  
			  <?php if ( is_active_sidebar( 'section5-d' ) ) : ?>        
			  <div id="section5-d" <?php influential_lite_section5(); ?>>
				<?php dynamic_sidebar( 'section5-d' ); ?>
				</div>
			  <?php endif; ?>
		  
		</div>
	</div>
</div>
<?php endif; ?>

<?php if( esc_attr(get_theme_mod( 'enable_section6_sidebars', 0 ) ) ) : ?>
<div id="section6" class="section widget-area clearfix <?php echo esc_attr(get_theme_mod( 'section6_spacing', 'spacing' )); ?>" >
		<?php 
		if( esc_attr(get_theme_mod( 'section6_fluid', 0 ) ) ) : 
				echo '<div class="container-fluid">';
			else : 
				echo '<div class="container">';
		endif;
		?>
		<div class="row">
			  
			  <?php if ( is_active_sidebar( 'section6-a' ) ) : ?>
			  <div id="section6-a" <?php influential_lite_section6(); ?>>
				<?php dynamic_sidebar( 'section6-a' ); ?>
				</div>
			  <?php endif; ?>
			  
			  <?php if ( is_active_sidebar( 'section6-b' ) ) : ?>           
			  <div id="section6-b" <?php influential_lite_section6(); ?>>
				<?php dynamic_sidebar( 'section6-b' ); ?>
				</div>          
			  <?php endif; ?>
			  
			  <?php if ( is_active_sidebar( 'section6-c' ) ) : ?>            
			  <div id="section6-c" <?php influential_lite_section6(); ?>>
				<?php dynamic_sidebar( 'section6-c' ); ?>
				</div>
			  <?php endif; ?>
			  
			  <?php if ( is_active_sidebar( 'section6-d' ) ) : ?>        
			  <div id="section6-d" <?php influential_lite_section6(); ?>>
				<?php dynamic_sidebar( 'section6-d' ); ?>
				</div>
			  <?php endif; ?>
		  
		</div>
	</div>
</div>
<?php endif; ?>