<?php 
$ep = GOV_anime::get_latest_chapters(get_the_ID(), TRUE);
$latest = $ep['chapter'];
$latestvol = isset($ep['volume']) ? $ep['volume'] : '';
$epid = $ep['id'];
$latest_post = new GOV_post($ep['id']);
$latest_post = $latest_post->get_post();
$status = GOV_anime::get_post_meta(get_the_ID(),'ero_status',true);
?>
<article class="bs" itemscope="itemscope" itemtype="http://schema.org/CreativeWork">
	<div class="bsx">
		<a href="<?php echo get_permalink($latest_post); ?>" itemprop="url" title="<?php echo get_the_title($latest_post); ?>" class="tip" rel="<?php the_ID(); ?>">
		<div class="limit">
			<div class="ply"><i class="fas fa-book-open" aria-hidden="true"></i></div>
			<?php echo Lightnovel::get_post_thumbnail(get_the_ID(), 'full', 215, 151, array('itemprop'=>'image','title'=> get_the_title($latest_post),'alt'=>get_the_title($latest_post))); ?>
		</div>
			<div class="tt">
				<span class="ntitle"><?php the_title(); ?></span>
				<?php if($latest){ ?>
				<span class="nchapter"><?php if($latestvol){ echo GOV_lang::get('thumbnail_volume_min_label')." ".$latestvol." "; } ?><?php echo GOV_lang::get('thumbnail_chapter_min_label');?> <?php echo $latest; ?></span>
				<span class="ndate"><?php echo human_time_diff( get_the_time('U',$latest_post), current_time('timestamp') ) . GOV_lang::get('home_timeago_label'); ?></span>
				<?php } ?>
				<h2 itemprop="headline"><?php echo get_the_title($latest_post); ?></h2>
			</div>
		</a>
	</div>
</article>