<?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();
$genre = ts_tax_cut(get_the_ID(),'2','genre');
?>
<div class="stylefor">
	<div class="col-img">
		<a href="<?php the_permalink(); ?>" class="tip" rel="<?php the_ID(); ?>">
			<div class="thumb">
				<?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>
		</a>
	</div>
	<div class="med-info">
		<div class="col-title">
			<div class="fortitle">
				<a href="<?php the_permalink(); ?>" class="tip" rel="<?php the_ID(); ?>"><?php the_title(); ?></a>
			</div>
		</div>
		<div class="col-genre">
			<div class="forgen">
				<?php if($genre){ echo $genre; } else { echo '-'; } ?>
			</div>
		</div>
		<div class="col-chap">
			<div class="forchap">
				<?php if($latest){ ?>
					<a href="<?php echo get_permalink($latest_post); ?>">
						<?php if($latestvol){ echo GOV_lang::get('thumbnail_volume_min_label')." ".$latestvol." "; } ?><?php echo GOV_lang::get('thumbnail_chapter_min_label');?> <?php echo $latest; ?>
					</a>
				<?php } else { echo '-'; } ?>
			</div>
		</div>
		<div class="col-date">
			<div class="fordate">
				<?php echo human_time_diff( get_the_time('U',$latest_post), current_time('timestamp') ) . GOV_lang::get('home_timeago_label'); ?>
			</div>
		</div>
	</div>
</div>