<?php
if ( ! defined( 'ABSPATH' ) ) exit;
/**
 */

//check if post has the image.
$postimgg = '';
$postimgg = tt_logiscargo_post_thumb('770', '310', false, true, true); ?>

    <article <?php post_class( 'single-blog-post img-cap-effect' ); ?>>
        <?php if ( has_post_thumbnail() ) { ?>
        <div class="img-box">
        <img src="<?php echo wp_kses_post($postimgg); ?>" alt="<?php the_title(); ?>">
        <div class="img-caption">
            <div class="box-holder">
                <ul>
                    <li><a href="<?php the_permalink();?>"><i class="fa fa-link"></i></a></li>
                </ul>
            </div>
        </div>
       </div>
        <?php }?>
        <div class="meta-info">
            <?php get_template_part( 'inc/templates/tt-post-date' ); ?>
            <div class="content-box">
                <a href="<?php the_permalink(); ?>" class="post-title"><h3><?php the_title();?></h3></a>
                <?php get_template_part( 'inc/templates/tt-post-meta' ); ?>
            </div>
        </div>
        <!-- .content -->
        <div class="content">
            <?php the_excerpt(); ?>
            <a href="<?php the_permalink(); ?>"><?php esc_html_e( 'Read More', 'logiscargo' ); ?> <i class="fa fa-long-arrow-right"></i></a>
        </div><!-- /.content -->
    </article>
