<?php
use Elementor\Utils;

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

<article id="post-<?php the_ID(); ?>" <?php post_class('col-md-3'); ?>>
    <div class="service2-inner">
<!--        <div class="wrap-thumb">-->
<!--            --><?php
//            tfl_starter_post_thumbnail();
//            ?>
<!--        </div>-->
        <div class="box-content">
            <div class="top-content">
                <?php
                $id = get_the_ID();
                $_tfl_sub2_img = get_post_meta($id, '_tfl_sub2_img', true);
                if ($_tfl_sub2_img){
                    echo '<img src="' . $_tfl_sub2_img . '" alt="sub2-img">';
                }
                ?>
            </div>
            <div class="bottom-content">
                <div class="title">
                    <h5>
                        <a href="<?php the_permalink(); ?>">
                            <?php the_title(); ?>
                        </a>
                    </h5>

                </div>
                <div class="sub-content">
                    <?php the_excerpt(); ?>
                </div>
            </div>
            <a href="<?php the_permalink(); ?>" class="readmore">
                <?php esc_html_e('Read More', 'gettree'); ?>
                <i class="fas fa-arrow-right"></i>
            </a>
        </div>
    </div>
</article>
