<?php
$footer_widgets = tie_get_option( 'footer_widgets' ) ? tie_get_option( 'footer_widgets' ) : "footer-3c" ;
if(  tie_get_option( 'footer_widgets_enable' ) ): ?>
<footer id="theme-footer">
	<div id="footer-widget-area" class="<?php echo $footer_widgets ?>">

	<?php if ( is_active_sidebar( 'first-footer-widget-area' ) ) : ?>
		<div id="footer-first" class="footer-widgets-box">
			<?php dynamic_sidebar( 'first-footer-widget-area' ); ?>
		</div>
	<?php endif; ?>

	<?php if ( is_active_sidebar( 'second-footer-widget-area' ) ) : ?>
		<div id="footer-second" class="footer-widgets-box">
			<?php dynamic_sidebar( 'second-footer-widget-area' ); ?>
		</div><!-- #second .widget-area -->
	<?php endif; ?>


	<?php if ( is_active_sidebar( 'third-footer-widget-area' ) ) : ?>
		<div id="footer-third" class="footer-widgets-box">
			<?php dynamic_sidebar( 'third-footer-widget-area' ); ?>
		</div><!-- #third .widget-area -->
	<?php endif; ?>

	<?php if ( is_active_sidebar( 'fourth-footer-widget-area' ) ) : ?>
		<div id="footer-fourth" class="footer-widgets-box">
			<?php dynamic_sidebar( 'fourth-footer-widget-area' ); ?>
		</div><!-- #fourth .widget-area -->
	<?php endif; ?>
	
	</div><!-- #footer-widget-area -->
	<div class="clear"></div>
</footer><!-- .Footer /-->
<?php endif; ?>