<?php

use Elementor\Utils;

if (!defined('ABSPATH')) {
    exit; // Exit if accessed directly
}
list($animate_class, $animation_attr) = tfl_get_animation_atts($settings['widget_animation']);

$classCol = 'col-sm-4';
if (($args['current_post']+1) % 5 == 2 ){
    $classCol = 'col-sm-4 bigger';
}

?>

<article id="post-<?php the_ID(); ?>" <?php post_class($classCol); ?>>
    <div class="wrap-thumb" style="background-image: url(<?php echo get_the_post_thumbnail_url(); ?>)">
        <div class="box-content">
            <div class="left-content">
                <h5 class="title">
                    <a href="<?php the_permalink(); ?>">
                        <?php the_title(); ?>
                    </a>
                </h5>

                <div class="sub-title">
                    <?php the_excerpt(); ?>
                </div>
            </div>
            <div class="right-content">
                <a href="<?php the_permalink(); ?>">
                    <i class="fas fa-arrow-right"></i>
                </a>
            </div>
        </div>
    </div>
</article>
