<?php
	global $passport_front_page_column;

    $passport_front_page_column	        = get_theme_mod( 'passport_section_5_settings', '3' );

	$j = $passport_front_page_column; 

?>
	<div id="section-5" class="column layout">
		<?php for ( $j=1; $j <= $passport_front_page_column; $j++ ) :
			if ( is_active_sidebar( PASSPORT_THEME_SLUG . '-front-page-'. $j .'' ) ) : 
				if( '1' == $passport_front_page_column ) : ?>
					<div class="col-xxs col-xs-12 col-sm-12 col-md-12 col-lg-12">
				<?php elseif( '2' == $passport_front_page_column ) : ?>
					<div class="col-xxs col-xs-12 col-sm-6 col-md-6 col-lg-6">
				<?php elseif( '3' == $passport_front_page_column ) : ?>
					<div class="col-xxs col-xs-12 col-sm-6 col-md-4 col-lg-4">
				<?php elseif( '4' == $passport_front_page_column ) : ?>
					<div class="col-xxs col-xs-12 col-sm-6 col-md-3 col-lg-3">
				<?php endif; ?> 
						<div class="row">
							<div class="widget-column">
								<?php dynamic_sidebar( PASSPORT_THEME_SLUG . '-front-page-'. $j. '' ); ?>
							</div>
					    </div>
				<?php if( '1' == $passport_front_page_column ) : ?>
					</div>
				<?php elseif( '2' == $passport_front_page_column ) : ?>
					</div>
				<?php elseif( '3' == $passport_front_page_column ) : ?>
					</div>
				<?php elseif( '4' == $passport_front_page_column ) : ?>
					</div>
				<?php endif; ?>
			<?php endif; ?>
		<?php endfor; ?>
	</div>