<?php
/**
 * @package forexn
 */
?>
   
    <div class="blog-sm">
        <div class="featured-img">
            <?php if(has_post_thumbnail()) : ?>
                <?php the_post_thumbnail(); ?>
            <?php endif; ?>
        </div>
        <?php if(has_post_thumbnail()) : ?>
        <div class="blog-content">
        <?php else : ?>
        <div class="blog-img">
        <?php endif; ?>
           <?php if ( 'post' ===  get_post_type() ): ?>
                <ul class="blog-meta">
                    <?php
                      forexn_posted_by();
                      forexn_posted_on();
                      forexn_comment_on();
                    ?>
                </ul>
           <?php endif; ?>
            <h4 class="blog-head">
                <a href="<?php the_permalink(); ?>"> <?php the_title(); ?></a>
            </h4>
            <?php the_excerpt(); ?>
        </div>
        <a href="<?php the_permalink(); ?>" class="read-more"><?php esc_html_e( 'Read more', 'forexn' ); ?></a>
    </div>    