<?php
$footer_widget_columns	= pbmit_footer_widget_columns(); // array
$widget_exists			= $footer_widget_columns[0];
$footer_columns			= $footer_widget_columns[1];
$footer_column			= $footer_widget_columns[2];
$footer_boxes_area		= pbmit_get_base_option('footer-boxes-area');
$footer_big_title		= pbmit_get_base_option('footer-bottom-title');
if ( $widget_exists == true ) : ?>
	<div class="pbmit-widget-copyright-wrap">
		<div class="pbmit-footer-section footer-wrap pbmit-footer-widget-area <?php pbmit_footer_widget_classes(); ?>">
			<div class="container">
				<div class="row">
					<?php 
					$col = 1;
					foreach( $footer_columns as $column ){
						$class = ( $footer_column == '3-3-3-3' ) ? 'col-md-6 col-lg-3' : 'col-md-'.$column ;
						if ( is_active_sidebar( 'pbmit-footer-'.$col ) ) { ?>
							<div class="pbmit-footer-widget pbmit-footer-widget-col-<?php echo esc_attr($col); ?> <?php echo esc_attr($class); ?>">
								<?php dynamic_sidebar( 'pbmit-footer-'.$col ); ?>
							</div><!-- .pbmit-footer-widget -->
						<?php };
						$col++;
					} // end foreach
					?>
				</div>
			</div>
		</div>
		<div class="pbmit-footer-section <?php pbmit_footer_copyright_classes(); ?>">
			<div class="container">
				<div class="pbmit-footer-text-area-wrapper pbmit-footer-text-area">
					<div class="pbmit-footer-text-inner">
						<div class="row">
							<?php pbmit_footer_copyright_area(); ?>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
<?php endif; ?>
<?php if ( $footer_boxes_area == '1' ) : ?>
	<div class="pbmit-footer-section pbmit-footer-big-area-wrapper">
		<div class="container">
			<div class="row">
				<div class="col-sm-12 pbmit-footer-big-title">
					<?php if(! empty ( $footer_big_title ) ){ ?>
						<h3 class="pbmit-footer-title-big"><?php echo pbmit_esc_kses(  $footer_big_title ); ?></h3>
					<?php } ?>
				</div>
			</div>
		</div>
	</div>
<?php endif; ?>
