<?php global $smof_data; ?>
<?php if($smof_data['slidingbar_open_on_load']): ?>
<div id="slidingbar-area" class="open_onload">
<?php else: ?>
<div id="slidingbar-area">
<?php endif; ?>
	<div id="slidingbar">
		<div class="alora-row">
			<section class="t4p-columns row t4p-columns-<?php echo $smof_data['slidingbar_widgets_columns']; ?> columns columns-<?php echo $smof_data['slidingbar_widgets_columns']; ?>">
				<?php $column_width = 12 / $smof_data['slidingbar_widgets_columns']; ?>
			
				<?php if( $smof_data['slidingbar_widgets_columns'] >= 1 ): ?>
				<article class="t4p-column col <?php echo sprintf( 'col-lg-%s col-md-%s col-sm-%s', $column_width, $column_width, $column_width ); ?> ">        
				<?php
				if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('SlidingBar Widget  1')):
				endif;
				?>
				</article>
				<?php endif; ?>
				
				<?php if( $smof_data['slidingbar_widgets_columns'] >= 2 ): ?>
				<article class="t4p-column col <?php echo sprintf( 'col-lg-%s col-md-%s col-sm-%s', $column_width, $column_width, $column_width ); ?>">
				<?php
				if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('SlidingBar Widget  2')):
				endif;
				?>
				</article>
				<?php endif; ?>
				
				<?php if( $smof_data['slidingbar_widgets_columns'] >= 3 ): ?>
				<article class="t4p-column col <?php echo sprintf( 'col-lg-%s col-md-%s col-sm-%s', $column_width, $column_width, $column_width ); ?>">
				<?php
				if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('SlidingBar Widget  3')):
				endif;
				?>
				</article>

				<?php endif; ?>
				
				<?php if( $smof_data['slidingbar_widgets_columns'] >= 4 ): ?>
				<article class="t4p-column col last <?php echo sprintf( 'col-lg-%s col-md-%s col-sm-%s', $column_width, $column_width, $column_width ); ?>">
				<?php
				if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('SlidingBar Widget  4')):
				endif;
				?>
				</article>
				<?php endif; ?>
				<div class="t4p-clearfix"></div>
			</section>	
		</div>
	</div>
	<a class="sb_toggle" href="#"></a>
</div>
<?php wp_reset_postdata(); ?>