<?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-4'); ?>>
    <div class="service-inner">
        <div class="wrap-thumb">
            <?php
            tfl_starter_post_thumbnail();
            ?>
        </div>
        <div class="box-content">
            <div class="left-content">
                <?php
                $id = get_the_ID();
                $_tfl_sub_img = get_post_meta($id, '_tfl_sub_img', true);
                echo '<img src="' . $_tfl_sub_img . '" alt="sub-img">';
                ?>
            </div>
            <div class="right-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>
