<?php global $asteria;?>&#13;
<?php get_header(); ?>&#13;
<!--Content-->&#13;
<div class="fixed_site">&#13;
	<div class="fixed_wrap singlefx">&#13;
		<div id="content">&#13;
			<div class="center">&#13;
				<div class="content_wrap">&#13;
                    <!--POST END-->&#13;
					<div class="single_wrap&lt;?php if ( !is_active_sidebar( 'sidebar' ) ) { ?&gt; no_sidebar&lt;?php } ?&gt;">&#13;
				<div class="single_post">&#13;
&#13;
                   <?php if(have_posts()): ?><?php while(have_posts()): ?><?php the_post(); ?>&#13;
                    <div post_class> id="post-<?php the_ID(); ?>"&gt; &#13;
                    <!--EDIT BUTTON START-->&#13;
					<?php if ( is_user_logged_in() || is_admin() ) { ?>&#13;
                    <div class="edit_wrap"><a href="&lt;?php%20echo%20get_edit_post_link();%20?&gt;">&#13;
                    <i title="&lt;?php _e('Edit This','asteria'); ?&gt;" class="fa-edit"></i></a>&#13;
                    </div>&#13;
                    <?php } ?>&#13;
    				<!--EDIT BUTTON END-->&#13;
                    &#13;
                    <!--POST START-->&#13;
                    <div class="single_post_content">&#13;
                        <h1 class="postitle"><?php the_title(); ?><amp-ad width="100vw" height="320" type="adsense" data-ad-client="ca-pub-6024983979000104" data-ad-slot="6512403466" data-auto-format="rspv" data-full-width="">&#13;
  <div overflow=""></div>&#13;
</amp-ad></h1>&#13;
                        <!--POST INFO START-->&#13;
                        <?php if (!empty ($asteria['post_info_id'])) { ?>&#13;
                        <div class="single_metainfo">&#13;
                            <i class="fa-calendar"></i><a class="comm_date"><?php the_time( get_option('date_format') ); ?></a>&#13;
                            <i class="fa-user"></i><?php global $authordata; $post_author = "<a class='auth_meta' href=\"".get_author_posts_url( $authordata->ID, $authordata-&gt;user_nicename )."\"&gt;".get_the_author()."\r\n"; echo $post_author; ?&gt;&#13;
                            <i class="fa-comments"></i><?php if (!empty($post->post_password)) { ?&gt;&#13;
                        <?php } else { ?><div class="meta_comm"><?php comments_popup_link( __('0 Comment', 'asteria'), __('1 Comment', 'asteria'), __('% Comments', 'asteria'), '', __('Off' , 'asteria')); ?></div><?php } ?>&#13;
                        &#13;
                          <i class="fa-th-list"></i><div class="catag_list"><?php the_category(', '); ?></div>&#13;
                        </div>&#13;
                        <?php } ?>&#13;
                        <!--POST INFO START-->&#13;
                        &#13;
                        <!--POST CONTENT START-->&#13;
                        <div class="thn_post_wrap"><?php the_content(); ?> </div>&#13;
                        <div style="clear:both"></div>&#13;
                        <div class="thn_post_wrap"><?php wp_link_pages('<p class="pages"><strong>'.__('Pages:').'</strong> ', '', 'number'); ?&gt;&#13;
                        <!--POST CONTENT END-->&#13;
                        </div>&#13;
                        &#13;
                        &#13;
                        <!--POST FOOTER START-->&#13;
                        <div class="post_foot">&#13;
                            <div class="post_meta">&#13;
         <?php if( has_tag() ) { ?><div class="post_tag"><div class="tag_list"><?php the_tags('<i class="fa-tag">','  '); ?&gt;</div></div><?php } ?>&#13;
                            </div>&#13;
                       </div>&#13;
                       <!--POST FOOTER END-->&#13;
                        &#13;
                    <amp-ad width="100vw" height="320" type="adsense" data-ad-client="ca-pub-6024983979000104" data-ad-slot="6512403466" data-auto-format="rspv" data-full-width="">&#13;
  <div overflow=""></div>&#13;
</amp-ad></div>&#13;
                    <!--POST END-->&#13;
                    </div>&#13;
                        &#13;
            <?php endwhile ?> &#13;
       &#13;
            <?php endif ?>&#13;
&#13;
<!--SOCIAL SHARE POSTS START-->&#13;
<?php if (!empty ($asteria['social_single_id']) || !get_option( 'asteria' )) { ?>&#13;
	<?php get_template_part('share_this');?>&#13;
<?php } ?>&#13;
<!--SOCIAL SHARE POSTS END-->&#13;
</div>&#13;
&#13;
<!--NEXT AND PREVIOUS POSTS START-->&#13;
<?php if (!empty ($asteria['post_nextprev_id']) || !get_option( 'asteria' )) { ?>&#13;
<div id="ast_nextprev" class="navigation">&#13;
	<?php $prevPost = get_previous_post(true); if($prevPost) {?>&#13;
        <div class="nav-box ast-prev">&#13;
        <?php $prevthumbnail = get_the_post_thumbnail($prevPost->ID, array(100,100) );?&gt;&#13;
        <?php previous_post_link('%link',"$prevthumbnail &#1055;&#1088;&#1077;&#1076;&#1099;&#1076;&#1091;&#1097;&#1072;&#1103; &#1079;&#1072;&#1087;&#1080;&#1089;&#1100;<br><span>%title</span>", TRUE); ?&gt;&#13;
        <a class="left_arro" href="#"><i class="fa-angle-left"></i></a>&#13;
        </div>&#13;
    <?php }?>&#13;
    <?php $nextPost = get_next_post(true); if($nextPost) { ?>&#13;
        <div class="nav-box ast-next">&#13;
        <?php $nextthumbnail = get_the_post_thumbnail($nextPost->ID, array(100,100) ); ?&gt;&#13;
        <?php next_post_link('%link',"$nextthumbnail &#1057;&#1083;&#1077;&#1076;&#1091;&#1102;&#1097;&#1072;&#1103; &#1079;&#1072;&#1087;&#1080;&#1089;&#1100;<br><span>%title</span>", TRUE); ?&gt;&#13;
        <a class="right_arro" href="#"><i class="fa-angle-right"></i></a>&#13;
        </div>&#13;
    <?php }?>&#13;
</div>&#13;
<?php }?>&#13;
<!--NEXT AND PREVIOUS POSTS END-->                &#13;
&#13;
&#13;
<!--COMMENT START: Calling the Comment Section. If you want to hide comments from your posts, remove the line below-->     &#13;
<?php if (!empty ($asteria['post_comments_id']) || !get_option( 'asteria' )) { ?>&#13;
    <div class="comments_template">&#13;
    	<?php comments_template('',true); ?>&#13;
    </div>&#13;
<?php }?> &#13;
<!--COMMENT END-->&#13;
&#13;
&#13;
			</div>&#13;
<!--SIDEBAR START--> &#13;
<?php if ( is_active_sidebar( 'sidebar' ) ) { ?><?php get_sidebar();?><?php } ?>&#13;
<!--SIDEBAR END--> &#13;
&#13;
		</div>&#13;
	</div>&#13;
</div>&#13;
</div>&#13;
</div>&#13;
<?php get_footer(); ?>