<?php
$layout=get_post_meta($post->ID, '_page_layout', true);
if(empty($layout) || $layout == 'default'){
	$layout = theme_get_option('general','layout');
}
?>
<?php get_header(); ?>
<?php theme_generator('introduce',$post->ID);?>
<div id="content-area">
	<div class="wrap-center <?php if($layout=='right'):?>right_sidebar<?php endif;?><?php if($layout=='left'):?>left_sidebar<?php endif;?><?php if($layout=='full'):?>full_width<?php endif;?>">
		<div id="content" class="main">
			<?php echo theme_generator('breadcrumbs',$post->ID);?>
			<header>
				<?php echo theme_generator('blog_featured_image','full',$layout);?>
			</header>
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
				<?php the_content(); ?>
				<div class="clear"></div>
<?php endwhile; ?>
			<div class="clear"></div>
		</div>
		<?php if($layout != 'full') get_sidebar(); ?>
		<div class="clear"></div>
	</div>
</div>
<?php get_footer(); ?>
