<?php defined("ABSPATH") || die("!"); ?>
<div class='serieslist'>
    <ul>
    <?php while($nswi_new_series->have_posts()) { $nswi_new_series->the_post(); ?>
        <li>
            <div class="imgseries">
                <a class="series tip" href="<?php the_permalink() ?>" rel="<?php the_ID(); ?>">
                    <?php echo Lightnovel::get_post_thumbnail(get_the_ID(), "medium", 105, 80, array('itemprop'=>'image','title'=> get_the_title(get_the_ID()),'alt'=>get_the_title(get_the_ID()))); ?>
                </a>
            </div>
            <div class="leftseries">
                <h4>
                    <a class="series tip" href="<?php the_permalink() ?>" rel="<?php the_ID(); ?>"><?php the_title(); ?></a>
                </h4>
                <?php echo get_the_term_list( get_the_ID(), 'genre', '<span><b>' . GOV_lang::get('series_info_genres_label') . '</b>: ', ', ', '</span>' ); ?> 
                <span>
                    <?php 
                        $type = strip_tags(get_the_term_list( get_the_ID(), 'type', '', ', ', '' )); 
                        if($type){ 
                            echo esc_html($type); 
                        } else { 
                            echo esc_html(get_post_meta( get_the_ID(), 'ero_date', true )); 
                        } ?>
                </span> 
            </div>
        </li>
    <?php } ?>
    </ul>
</div>