<?php get_header(); $modeside = get_option('singlesidebar'); ?>
<div class="postbody<?php if($modeside=='0'){echo ' nosidebar';} ?>">
<article id="post-<?php the_ID(); ?>" class="post-<?php the_ID(); ?> hentry" itemscope="itemscope" itemtype="http://schema.org/CreativeWork">
	<?php breadcrumb_ts(); ?>
	<?php get_template_part('template-parts/single/main','content'); ?>
	<?php get_template_part('template-parts/single/series','info'); ?>
	<?php get_template_part('template-parts/single/related','series'); ?>
	
	<?php if (comments_open()) { ?>
		<div class="bixbox">
		<div class="releases"><h3><span><?php echo GOV_lang::get('comment_label');?></span></h3></div>
		<div class="cmt commentx">
		<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
		<?php echo get_post_meta($post->ID, "embed", true); ?>
		<?php comments_template(); ?>
		<?php endwhile; endif; ?>
			 </div>
		</div>
	<?php } ?>
	
	<meta itemprop="author" content="<?php the_author_meta('display_name', 1); ?>">
	<meta itemprop="datePublished" content="<?php the_time('c'); ?>">
	<meta itemprop="dateModified" content="<?php the_modified_date('c'); ?>">
	<span style="display: none;" itemprop="publisher" itemscope itemtype="https://schema.org/Organization">
		<span style="display: none;" itemprop="logo" itemscope itemtype="https://schema.org/ImageObject">
			<meta itemprop="url" content="<?php echo get_option('logo'); ?>">
		</span>
		<meta itemprop="name" content="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>">
	</span>
	</article>
</div>
<script>
chapterAjaxView(<?php echo get_the_ID();?>, function(r){
	if (r.error) return;
	if ( ! ts_view_count_visible) return;
    jQuery('#post-views').html(r.views);
});
chapterJsNav();
</script>
<?php GOV_history::load_script(get_the_ID()); ?>
<?php if($modeside=='1'){ get_sidebar(); } ?>
<?php get_footer(); ?>