<?php get_header('advertorial');
/*
Template Name: Advertorial
Template Post Type: post

*/
?>
<style> 
.fl-content-left{
    border: none;
}

.fl-sidebar{
    width: 30%;
    margin: 0;
    float: left;
    display: block;
}
#bottom_row > div > div, aside#text-4{
    display: none !important;
}
.fl-post-content{
    padding-top: 25px; 
    width: 70%; 
    float: left;
    display: block;
    margin: 0;
}

@media only screen and (max-width: 792px) {
  .fl-post-content, .fl-sidebar{
    padding-top: 0px; 
    width: 100%;
    clear: both;
    padding-left: 20px;
    padding-right: 20px; 
  }
  
  #siderail_ads_0{
      text-align: center !important;
    }
  
   
}
</style>

<div class="container">
	<div class="row">

		<?php FLTheme::sidebar( 'left' ); ?>

		<div class="fl-content">
			<?php
			if ( have_posts() ) :
				while ( have_posts() ) :
					the_post();
					get_template_part( 'content', 'advertorial' );
				endwhile;
			endif;
			
            if( is_single( array( 
                'driving-less-these-days-youre-might-be-eligible-for-a-discount-on-your-car-insurance', 
                'driving-less-these-days-youre-might-be-eligible-for-a-discount-on-your-car-insurance-1' ) ) )
                {
                    get_sidebar('advertorial_one'); 
                }
            
            
            if( is_single( array( 
                'discounts-most-new-car-owners-dont-know-about-simple-steps-to-save-big-on-your-insurance', 
                'discounts-most-new-car-owners-dont-know-about-simple-steps-to-save-big-on-your-insurance-1' ) ) )
                {
                    get_sidebar('advertorial_two'); 
                }
			?>
		</div>

	</div>
</div>

<?php get_footer('advertorial'); ?>