<?php get_header();?>
<div class="article-detail-wrap">
  <div class="main-section" style="position: relative;">
    <div class="content-wrapper">
      <?php while (have_posts()) : the_post(); ?>
      <article class="single-post">
        <section class="single-post-header">
          <header class="single-post-header__meta">
            <h1 class="single-post__title"><?php the_title(); ?></h1>
          </header>
          <div class="author single-post-meta">
          	<a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ) ?>"><span class="avatar before-fade-in after-fade-in" style="background-image: url(<?php echo MBT_monkey_get_avatar(get_the_author_meta( 'ID' ));?>);"></span><span class="name"><?php echo get_the_author() ?></span></a>
          	<span class="item"><?php echo timeago( get_gmt_from_date(get_the_time('Y-m-d G:i:s')) ) ?></span>
            <span class="item"><?php monkey_views('浏览') ?></span>
			<?php edit_post_link('[编辑]'); ?>
          </div>
        </section>
        <br>
        <section class="article">
          <?php the_content(); ?>
        </section>
        <?php the_tags('<section class="single-post-tags">标签： ','',' </section>'); ?>
        <section class="single-post-share">
        	<?php if($options['share']) include('modules/singlePostShare.php');?>
        	<?php if($options['collect']) include('modules/singlePostCollect.php');?>
        </section>
      </article>
      <?php endwhile;  ?>
      <?php if($options['collect']) include('modules/singlePostMobileAuthor.php');?>
      <?php if($options['singlead']){?><section class="ad ad-single mobile-hide"><?php echo $options['singlead'];?></section><?php }?>
      <?php if($options['relate']) include('modules/singlePostRelate.php');?>
      <?php comments_template('', true); ?>
    </div>
    <div class="article-side">
        <?php if($options['author']) include('modules/singlePostAuthor.php'); ?>
	    <?php get_sidebar();?>
    </div>
  </div>
</div>
<?php get_footer();?>
