<?php get_header(); ?>

<?php $et_full_post = 'on' == get_post_meta( get_the_ID(), '_et_full_post', true ) ? true : false; ?>

<div id="content">
	<div class="container clearfix<?php if ( $et_full_post ) echo ' fullwidth'; ?>">
		<div id="left-area">			
			<?php if (et_get_option('fusion_integration_single_top') <> '' && et_get_option('fusion_integrate_singletop_enable') == 'on') echo (et_get_option('fusion_integration_single_top')); ?>
			
			<?php while ( have_posts() ) : the_post(); ?>

				<?php get_template_part( 'content', get_post_format() ); ?>
				
				<?php
					if ( comments_open() && 'on' == et_get_option( 'fusion_show_postcomments', 'on' ) ) 
						comments_template( '', true );
				?>
				
			<?php endwhile; ?>
			
			<?php if (et_get_option('fusion_integration_single_bottom') <> '' && et_get_option('fusion_integrate_singlebottom_enable') == 'on') echo(et_get_option('fusion_integration_single_bottom')); ?>
		
			<?php 
				if ( et_get_option('fusion_468_enable') == 'on' ){
					if ( et_get_option('fusion_468_adsense') <> '' ) echo( et_get_option('fusion_468_adsense') );
					else { ?>
					   <a href="<?php echo esc_url(et_get_option('fusion_468_url')); ?>"><img src="<?php echo esc_url(et_get_option('fusion_468_image')); ?>" alt="468 ad" class="foursixeight" /></a>
			<?php 	}    
				}
			?>
			
		</div> <!-- end #left-area -->
			
		<?php if ( ! $et_full_post ) get_sidebar(); ?>
	</div> <!-- .container -->
</div> <!-- #content -->
	
<?php get_footer(); ?>