<?php defined( 'ABSPATH' ) || exit; // Exit if accessed directly 
 $tag = (is_category() || is_singular() ) ? 'h3' : 'h2';?>
<div class="col-12 toinfinite">
  <div class="kanews-post-item kanews-post-special-item kanews-post-big">
    <?php
    if( empty( $GLOBALS['timeline_time'] ) || $GLOBALS['timeline_time'] != get_the_time('D M Y') ){
      echo '<div class="kanews-post-special-item-date"><span>'. get_the_time('j') .'</span><div>'. get_the_time('F') .'</div></div>';
    }
    $GLOBALS['timeline_time'] = get_the_time('D M Y');
    ?>	
    <div class="kanews-post-special-item-time"><span><?php the_time( 'G:i');  ?></span></div>
    <div class="row align-items-center">
      <a href="<?php the_permalink(); ?>" class="kanews-post-href"></a>
      <?php $content_class = 'col-12';  if(has_post_thumbnail()) :  $content_class = 'col-12 col-md-8'; ?>
        <div class="col-12 col-md-4">
          <?php do_action('kanews_post_hook'); ?>
          <?php kanews_post_thumbnail('kanews-post-3', 'kanews-post-thumb'); ?>
        </div>
      <?php endif; ?>
      <div class="<?php echo $content_class; ?>">
        <div class="kanews-post-content">
      
          <?php echo kanews_primary_category($post->ID); ?>

          <?php the_title( sprintf( '<'.$tag.' class="kanews-post-headline truncate truncate-3"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></'.$tag.'>' ); ?>
          <div class="mt-1"><?php the_time( 'j F Y - D - G:i');  ?></div>
        </div>
      </div>
      
    </div>
  </div>
</div>