<?php
/**
 * @package WordPress
 * @subpackage coe
 */
if ( !defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

global $coe_options; ?>


<?php coe_page_content_bottom(); ?>
</div><!-- end page-content -->
<?php coe_page_content_after(); ?>

<div class="clear"></div>

<?php

	$bottom_1_is_active = sidebar_exist_and_active('bottom-widget-area-1');
	$bottom_2_is_active = sidebar_exist_and_active('bottom-widget-area-2');
	$bottom_3_is_active = sidebar_exist_and_active('bottom-widget-area-3');
	$bottom_4_is_active = sidebar_exist_and_active('bottom-widget-area-4');

	if ( $bottom_1_is_active || $bottom_2_is_active || $bottom_3_is_active || $bottom_4_is_active ) : // hide this area if no widgets are active...
?>
	
			
		
<!-- bottom Videos -->		
			    <div id="bottom-bg-vid">
		<div id="bottom" class="container_24">
		    <div class="bottom-content-padding">
<?php                   coe_bottom_section_top(); ?>
<?php
                        $output = '';
			// all 4 active: 1 case
			
			    $output .= get_dynamic_column( 'bottom_2', 'full_width', 'bottom-widget-area-2' );

			   
                        
                        echo $output;

                        coe_bottom_section_bottom(); ?>
		    </div>
		    <!-- end bottom-content-padding -->
		</div>
		<!-- end bottom -->
	    </div>
<!-- end bottom-video -->

<!-- bottom boutons -->		
			    <div id="bottom-bg-btn">
		<div id="bottom" class="container_24">
		    <div class="bottom-content-padding">
<?php                   coe_bottom_section_top(); ?>
<?php
                        $output = '';
			// all 4 active: 1 case
			
			    $output .= get_dynamic_column( 'bottom_3', 'full_width', 'bottom-widget-area-3' );
			   
                        
                        echo $output;

                        coe_bottom_section_bottom(); ?>
		    </div>
		    <!-- end bottom-content-padding -->
		</div>
		<!-- end bottom -->
	    </div>
<!-- end bottom-boutons -->

<?php /**<!-- bottom sponsors OFF-->		
			    <div id="bottom-bg-spon">
		<div id="bottom" class="container_24">
		    <div class="bottom-content-padding">
<?php                   coe_bottom_section_top(); ?>
<?php
                        $output = '';
			// all 4 active: 1 case
			
			    // $output .= get_dynamic_column( 'bottom_4', 'full_width', 'bottom-widget-area-4' );
			   
                        
                        echo $output;

                        coe_bottom_section_bottom(); ?>
		    </div>
		    <!-- end bottom-content-padding -->
		</div>
		<!-- end bottom -->
	    </div>
<!-- end bottom-sponsors --> **/?>

	  <div class="clear"></div>
		
		

<?php	endif; ?>

<?php   coe_footer_before(); ?>
	<div id="footer-bg">
		<div id="footer" class="container_24 footer-top">
<?php               coe_footer_inside(); ?>
		</div>
	</div>
<?php   coe_footer_after(); ?>

	<div class="clear"></div>

<?php   wp_footer(); ?>
        
<?php
    if( $coe_options['enable_cufon'] ) : ?>
	<script type="text/javascript"> Cufon.now(); </script>
<?php
    endif; ?>
<?php coe_body_bottom(); ?>
</body>
</html>