<?php /*
Template Name: Page with Left Sidebar
*/
?>&#13;
<?php global $asteria;?>&#13;
<?php get_header(); ?>&#13;
&#13;
<!--Content-->&#13;
<div class="fixed_site">&#13;
	<div class="fixed_wrap singlefx">&#13;
		<?php if(($asteria['page_type_id']) == '1'){ ?>&#13;
            <div class="page_tt">&#13;
                <div class="center"><h1 class="postitle"><?php the_title(); ?></h1></div>&#13;
            </div> &#13;
        <?php } ?>&#13;
&#13;
<div id="content">&#13;
<div class="center">&#13;
&#13;
<div class="single_wrap left_sidebar">&#13;
<div class="single_post">&#13;
                   <?php if(have_posts()): ?><?php while(have_posts()): ?><?php the_post(); ?>&#13;
                <div post_class> id="post-<?php the_ID(); ?>"&gt;  &#13;
                &#13;
<?php if ( is_user_logged_in() || is_admin() ) { ?><div class="edit_wrap"><a href="&lt;?php%20echo%20get_edit_post_link(%20);%20?&gt;"><i title="&lt;?php _e('Edit This','asteria'); ?&gt;" class="fa-edit"></i></a></div><?php } ?>&#13;
        &#13;
                <div class="single_post_content">&#13;
                    <?php if(($asteria['page_type_id']) == '2'){ ?><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><?php } ?>&#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;</div>&#13;
                    &#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;
                &#13;
                &#13;
                &#13;
                        </div>&#13;
            <?php endwhile ?> &#13;
                </div>&#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'])) { ?>&#13;
                    <div class="comments_template">&#13;
                        <?php comments_template('',true); ?>&#13;
                    </div>&#13;
                <?php }?> &#13;
                <!--COMMENT END-->&#13;
            <?php endif ?>&#13;
&#13;
    </div>&#13;
   &#13;
    <!--PAGE END-->&#13;
<?php get_sidebar();?>&#13;
    	</div>&#13;
    </div>&#13;
</div>&#13;
</div>&#13;
<?php get_footer(); ?>