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

global $coe_options, $style, $current_slider, $coe_responsive;
// get the current color scheme subdirectory
$style = ( $coe_options['color_scheme'] ) ? "style{$coe_options['color_scheme']}": "style1";
$current_slider = $coe_options['current_slider'];
$coe_responsive = $coe_options['enable_responsive'];
$coe_responsive_body_class = ( $coe_responsive ) ? 'coe-responsive-on' : '';
$coe_menu_auto_arrows = ( $coe_options['show_menu_auto_arrows'] ) ? 'coe-menu-auto-arrows-on' : '';
$coe_menu_drop_shadows = ( $coe_options['show_menu_drop_shadows'] ) ? 'coe-menu-drop-shadows-on' : '';
$coe_fixed_main_menu = ( $coe_options['fixed_main_menu'] ) ? 'coe-fixed-menu-on' : '';
$coe_responsive_pinch_to_zoom = ( $coe_options['responsive_pinch_to_zoom'] ) ? '' : ', maximum-scale=1.0';

?>
<?php coe_html_before(); ?>
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
<link rel="alternate" href="http://www.osteo-coe.fr" hreflang="fr-fr" />
<head profile="http://gmpg.org/xfn/11">
<?php coe_head_top(); ?>
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<?php // add 'viewport' meta
if ( $coe_responsive ) echo '<meta name="viewport" content="width=device-width, initial-scale=1.0'.$coe_responsive_pinch_to_zoom.'" />'; ?>

<?php // The HTML <title> Element:
ob_start(); ?>
<title><?php wp_title('&laquo;', true, 'right'); ?> <?php bloginfo('name'); ?></title>
<?php
echo apply_filters( 'coe_head_title_element', ob_get_clean() );  ?>

<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />

<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>

<!--[if IE 6]>
    <script type="text/javascript" src="<?php bloginfo('template_url'); ?>/scripts/DD_belatedPNG_0.0.8a-min.js"></script>
    <script type="text/javascript">
    // <![CDATA[
	DD_belatedPNG.fix('.pngfix, img, #home-page-content li, #page-content li, #bottom li, #footer li, #recentcomments li span');
    // ]]>
    </script>
<![endif]-->

<?php wp_head(); ?>

<!--[if lte IE 9]>
    <link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/styles/common-css/ie-all.css" media="screen" type="text/css" />
<![endif]-->
<!--[if lte IE 7]>
    <link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/styles/common-css/ie6-7.css" media="screen" type="text/css" />
<![endif]-->
<!--[if IE 6]>
    <link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/styles/common-css/ie6.css" media="screen" type="text/css" />
    <style type="text/css">
	body{ behavior: url("<?php bloginfo('template_directory'); ?>/scripts/csshover3.htc"); }
    </style>
<![endif]-->
<!--[if lt IE 9]>
    <script type="text/javascript" src="<?php bloginfo('template_url'); ?>/scripts/respond.min.js"></script>
<![endif]-->
<?php echo $coe_options['google_analytics']; ?>
<?php coe_head_bottom(); ?>
</head>
<body  <?php coe_inside_body_tag(); ?> <?php body_class( array ($coe_options['enable_cufon'], $coe_responsive_body_class, $coe_menu_auto_arrows, $coe_menu_drop_shadows, $coe_fixed_main_menu) ); ?>>
<?php coe_body_top(); ?>
    
    <div id="wrapper-1" class="pngfix">
<?php   coe_top_wrapper_before(); ?>
	<div id="top-wrapper">
<?php       coe_top_wrapper_top(); ?>
            <div id="top-elements" class="container_24">
<?php           coe_top_elements_inside( is_front_page() ); ?>
	    </div>
	    <!-- end top-elements -->
<?php       coe_top_wrapper_bottom( is_front_page() ); ?>
	</div>
	<!-- end top-wrapper -->
        
	<div class="clear"></div>
        
<?php   coe_top_wrapper_after( is_front_page() ); ?>

<?php	if( is_front_page() ) : 
    
            coe_front_page_slider_before();

	    if( $current_slider == '1' ) :
		include( 'sliders/flashmo/grid_slider/grid_slider_display.php' );
	    elseif( $current_slider == '2' ) :
		include( 'sliders/piecemaker/piecemaker_display.php' );
	    elseif( $current_slider == '3' ) :
		include( 'sliders/piecemaker_2/piecemaker_display.php' );
	    elseif ( $current_slider == '4' ) :
		include( 'sliders/cycle/cycle1/cycle1_display.php' );
	    elseif ( $current_slider == '5' ) :
		include( 'sliders/cycle/cycle2/cycle2_display.php' );
	    elseif ( $current_slider == '6' ) :
		include( 'sliders/cycle/cycle3/cycle3_display.php' );
	    elseif ( $current_slider == '8' ) : ?>
		<div id="rev-slider-header">
<?php               // Load Revolution slider
                    if ( class_exists('RevSliderFront') && $coe_options['rev_slider_shortcode'] ) {
                        $rvslider = new RevSlider();
                        $arrSliders = $rvslider->getArrSliders();
                        if( !empty( $arrSliders ) ) {
                            echo do_shortcode( $coe_options['rev_slider_shortcode'] );
                        }
                    } ?>
		</div>
		<!-- end rev-slider-header -->
<?php	    elseif ( $current_slider == '7' ) : // no slider ?>
		<div id="page-content-title">
		    <div id="page-content-header" class="container_24">
			<div id="page-title">
<?php                       if ( $coe_options['no_slider_text'] ) echo '<h2>' . $coe_options['no_slider_text'] . '</h2>'; ?>
			</div>
		    </div>
		    <!-- end page-content-header -->
		</div>
		<!-- end page-content-title -->
<?php	    endif; ?>
                
<?php       coe_front_page_slider_after(); ?>

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


            // home-page-before-content Widget Area
            $before_cont_1_is_active = sidebar_exist_and_active('home-page-before-content');
            if ( $before_cont_1_is_active  ) : // hide this area if no widgets are active...
?>
                <div id="before-content">
                    <div id="before-content-column" class="container_24">
                        <div class="home-page-divider pngfix"></div>
<?php
                        if ( $before_cont_1_is_active ) {
                            echo get_dynamic_column( 'before-cont-box-1', 'column_3_of_3 home-cont-box', 'home-page-before-content' );
                        } ?>
                        <div class="home-page-divider pngfix"></div>
                    </div>
                    <!-- end before-content-column -->
                </div>
                <!-- end before-content -->

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

<?php	    endif; ?>

<?php       coe_home_page_content_before(); ?>
	    <div id="home-page-content">
<?php           coe_home_page_content_top(); ?>

<?php	else : // NOT front page ?>

<?php       coe_page_content_before(); ?>
	    <div id="page-content">
<?php           //coe_page_content_top(); // this hook is used to insert the breadcrumbs ?>

<?php	endif;




