<?php
/* D5 CORPORATE Theme's Footer Sidebar Area
	Copyright: 2012-2017, D5 Creation, www.d5creation.com
	Based on the Simplest D5 Framework for WordPress
	Since D5 CORPORATE 1.0
*/
	
	if (   ! is_active_sidebar( 'sidebar-3'  )
		&& ! is_active_sidebar( 'sidebar-4' )
		&& ! is_active_sidebar( 'sidebar-5'  )
		&& ! is_active_sidebar( 'sidebar-5'  )
	)
		return;
		
	// If we get this far, we have widgets. Let do this.
?>
<div id="footer-sidebar">	
	<div class="footer-widgets"><?php if ( is_active_sidebar( 'sidebar-3' ) ) dynamic_sidebar( 'sidebar-3' ); ?></div>
	<div class="footer-widgets"><?php if ( is_active_sidebar( 'sidebar-4' ) ) dynamic_sidebar( 'sidebar-4' ); ?></div>
	<div class="footer-widgets"><?php if ( is_active_sidebar( 'sidebar-5' ) ) dynamic_sidebar( 'sidebar-5' ); ?></div>
	<div class="footer-widgets"><?php if ( is_active_sidebar( 'sidebar-6' ) ) dynamic_sidebar( 'sidebar-6' ); ?></div>
</div><!-- #footerwidget -->