<?php
$layout=theme_get_option('general','attachment_single_layout');
if(empty($layout)){
	$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 theme_generator('breadcrumbs',$post->ID);?>
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
			<article id="post-<?php the_ID(); ?>" class="post">
<div class="post-content">
					<?php theme_generator('attachment_content','full',$layout); ?>
		</div>
<?php if(!theme_get_option('blog','show_in_header') && get_post_meta($post->ID, '_introduce_text_type', true) !='defalut'):?>
					<h1><?php the_title(); ?></h1>
					<div class="entry_meta">
<?php echo theme_generator('post_meta',true); edit_post_link( __( 'Edit', THEME_FRONT_DOMAIN ), '<span class="sep">|</span> <span class="edit-link">', '</span>' ); ?>
					</div>
<?php endif;?>
				
				
<?php ?>
			</article>
<?php endwhile;?>
<?php comments_template( '', true ); ?>
		</div>
		<?php if($layout != 'full') get_sidebar(); ?>
		<div class="clear"></div>
	</div>
</div>

<?php get_footer(); ?>
