<?php get_header();?>
<div class="post" itemscope itemtype="http://schema.org/Article">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<h1 id="post-title" itemprop="name"><?php the_title(); ?></h1>
<div id="post-category"><?php the_category(', '); ?></div>
<div class="post_content" itemprop="articleBody">
<?php the_content(); ?>
</div>
<div class="clear"></div>
<div class="section_title"><span>关于本文</span></div>
<div class="post_detail"><ul>
<li>属于分类：<span id="post_category"><?php the_category(', '); ?></li>
<li>本文标签：<?php the_tags('', ', ', ''); ?></li>
<li>本文小编：<?php the_author_posts_link(); ?></li>
<li>流行热度：<span id="post_view_count">超过<?php if(function_exists('the_views')) echo the_views().'人围观'; ?></span></li>
<li>生产日期：<?php the_date_xml(); ?></li></ul>
<ul class="entry-relate-links">
<li><span>上一篇 &gt;：</span><a href="<?php if (get_previous_post()) { echo get_permalink(get_previous_post(false,'')); } else { echo "javascript:alert('木有啦，已经是最后一篇了...');"; } ?>">
<?php if (get_previous_post()) { echo get_the_title(get_previous_post(false,'')); } else { echo "木有啦"; } ?></a></li>
<li><span>下一篇 &gt;：</span><a href="<?php if (get_next_post()) { echo get_permalink(get_next_post(false,'')); } else { echo "javascript:alert('你正在看的文章已经是最新的了...');"; } ?>">
<?php if (get_next_post()) { echo get_the_title(get_next_post(false,'')); } else { echo "木有啦"; } ?></a></li></ul>
<ul class="prev-next"><?php previous_post_link('%link','&laquo; 上一篇文章'); ?>&nbsp;&nbsp;<?php next_post_link('%link','下一篇文章 &raquo;'); ?></ul>
<script type="text/javascript">loadAdPagenav();</script>
<div class="section_title"><span>相关文章</span>
</div>
<ul class="same-cat-post">
<?php include('related.php'); ?>
</ul></div>
	<?php comments_template( '', true ); ?>
		<?php endwhile; else: ?>
	<?php endif; ?>
</div>	
<?php get_footer(); ?>
