<?php if(has_post_thumbnail()): ?>
    <div class="featured-post">
        <a href="<?php the_permalink(); ?>" class="item link-img" style="background-image:url(<?php echo esc_url(vinkmag_post_thumbnail(get_the_ID(), $thumb[0], $thumb[1])); ?>)">
        </a>
    </div>
<?php endif; ?>