<?php if(has_post_thumbnail()){  ?>
    <div class="news-thumb order-md-<?php echo $args['img-col-order'] ;?> col-md-<?php echo $args['img-container-col']; ?> <?php echo wp_is_mobile() ? 'is-mobile' : '' ;?>">
        <?php if($args['with_link']){ ?>
            <a href="<?php echo the_permalink() ;?>" alt="<?php the_title_attribute(); ?>">
        <?php } ?>
            <img class="syrus-theme-thumb-img" 
                 src="<?php the_post_thumbnail_url($args['img-size']) ?>" 
                 alt="<?php echo esc_attr((strlen(get_the_title()) > 80 ? substr(get_the_title(), 0, 80) . '...' : get_the_title() )); ?>" 
                 title="<?php the_title_attribute(); ?>" 
                 width="300"
                 height="300"
                 <?php echo $args['lazy_loading'] ? 'loading="lazy"' : '' ;?>
            />
        <?php if($args['with_link']){ ?>
            </a>
        <?php } ?>
    </div>
<?php }else{ ?>
   
<?php } ?>