<?php $seri = get_post_meta(get_the_ID(), 'ero_series', true); $chaptertitle = get_post_meta(get_the_ID(), 'ero_title', true); ?>
<?php $ann = get_option('anntopplayer'); if($ann) { ?><div class="announ"><?php echo $ann; ?></div><?php } ?>
<div class="bixbox episodedl" style="background-color:#FFF">
	<div class="epwrapper">
		<div class="epheader">
			<h1 class="entry-title" itemprop="headline"><?php the_title(); ?></h1>
			<?php if($chaptertitle){ ?><div class="cat-series"><?php echo $chaptertitle; ?></div><?php } ?>
			<div class="entry-info"><?php if (get_option('hidechapterauthor')!=='0') { ?><?php echo GOV_lang::get('episode_page_posted_by_label'); ?> <span class="vcard author"><b class="fn"><?php $author_id = get_post_field( 'post_author', get_the_ID() ); echo get_the_author_meta('display_name', $author_id); ?></b></span>, <?php } ?><?php if (get_option('ts_view_count', TRUE)) { ?><span id="post-views"><?php echo GOV_lang::get("wpb_get_post_views_label", ["count" => "?"]); ?></span>, <?php } ?><?php if (get_option('hidechapterdate')!=='0') { ?><?php echo GOV_lang::get('episode_page_uploaded_at_label');?> <span class="updated"><?php the_time('F j, Y'); ?></span><?php } ?></div>
		</div>

		<div class="navimedia" style="background-color:#FFF">
			<div class="left">
				<div class="naveps">
					<div class="nvs"><?php previous_post_link('%link', '<i class="fa fa-angle-left" aria-hidden="true"></i> '.GOV_lang::get('episode_page_nav_prev_label'), TRUE); ?></div>
					<div class="nvs nvsc"><a href='<?php echo get_permalink($seri) ?>' aria-label='<?php echo GOV_lang::get('episode_page_nav_all_episodes_label'); ?>'><i class="fas fa-list-ul"></i> <?php echo GOV_lang::get('episode_page_nav_all_episodes_label'); ?></a></div>
					<div class="nvs"><?php next_post_link('%link', GOV_lang::get('episode_page_nav_next_label').' <i class="fa fa-angle-right" aria-hidden="true"></i>', TRUE); ?></div>
				</div>
				<?php $pdfcheck = ts_ln_pdf_link();
				if($pdfcheck){ ?>
				<a href="<?php echo $pdfcheck; ?>" class="dlpdf" target="_blank"><i class="fas fa-cloud-download-alt"></i> <?php echo GOV_lang::get('download_pdf_label'); ?></a>
				<?php } ?>
			</div>
			<div class="right">
				<div class="optread optxid"><i class="fas fa-cog"></i> <?php echo GOV_lang::get('option_read_button_label');?></div>
			</div>
		</div>
		<?php $tsshr = get_option('singlesocial',1); if($tsshr){ get_template_part('template-parts/general/social','share'); } ?>
		<?php $kln = get_option('reader1'); if($kln) { ?><div class="kln"><?php echo $kln; ?></div><br/><?php } ?>
		<div class="epcontent entry-content" itemprop="text" style="font-family: 'Fira Sans',sans-serif;font-size: 15px;line-height: 160%;">
			<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
				<?php the_content(); ?>
			<?php endwhile; endif; ?>
		</div>
		<?php $kln = get_option('reader2'); if($kln) { ?><br/><div class="kln"><?php echo $kln; ?></div><?php } ?>
		<div class="bottomnav">
			<?php previous_post_link('%link', '<i class="fa fa-angle-left" aria-hidden="true"></i> '.GOV_lang::get('episode_page_nav_prev_label'), TRUE); ?>
			<?php next_post_link('%link', GOV_lang::get('episode_page_nav_next_label').' <i class="fa fa-angle-right" aria-hidden="true"></i>', TRUE); ?>
		</div>
	</div>
</div>
<?php $ann = get_option('annbotplayer'); if($ann) { ?><div class="announ"><?php echo $ann; ?></div><?php } ?>