<?php
 /* List */
 defined( 'ABSPATH' ) || exit; // Exit if accessed directly
 $args = shortcode_atts( array(
    'tag'     => (is_category() || is_singular() ) ? 'h3' : 'h2'
  ), $args ) ;
  extract($args);
?>
<div class="col-12 toinfinite">
  <div class="kanews-post-item kanews-post-list-item kanews-post-big">
    <div class="row no-gutters align-items-center">
      <?php do_action('kanews_post_hook'); ?>
      <?php kanews_post_thumbnail('kanews-post-2', 'kanews-post-thumb col-12 col-lg-5', true); ?>
      <div class="kanews-post-content col">
        <?php echo kanews_primary_category($post->ID); ?>
        <?php echo kanews_post_date('post', 'span'); ?>
        <?php the_title( sprintf( '<'.$tag.' class="kanews-post-headline"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></'.$tag.'>' ); ?>
        <?php if (kanews_get_option('excerpt-length') != ''): ?>
          <div class="hidden-mobile"><?php the_excerpt(); ?></div>
        <?php endif; ?>
      </div>
    </div>
  </div>
</div>