<div class="card">
   <div <?php post_class("grid-md ts-grid-box ts-grid-content"); ?>>
      <?php if(has_post_thumbnail()): ?>
               <div class="ts-post-thumb">
                  <a href="<?php echo esc_url(the_permalink()); ?>">
                        <?php  the_post_thumbnail('full'); ?>
                  </a>
               </div>
            <?php
               endif;
            ?>
   
      <?php $cat = get_the_category(); ?>

      <span class="post-tag">
            <?php $cat = get_the_category(); ?>
            <a 
               href="<?php echo get_category_link($cat[0]->term_id); ?>"
               style="<?php echo esc_attr(vinkmag_cat_style($cat[0]->term_id, 'color_only')); ?>"
               >
               <?php echo get_cat_name($cat[0]->term_id); ?>
            </a>
      </span>
      <h3 class="post-title">
      <a href="<?php the_permalink(); ?>"><?php echo esc_html(vinkmag_limited_title(get_the_title(), '20')); ?></a>		
      </h3>

   </div>
</div>