<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>

    <header>
        <span class="entry-categories"><?php echo Forceful_Lite_Icon::getIcon('star', 'span'); ?><?php the_category( ', ' ); ?></span>
        <span class="entry-box-icon"><?php echo Forceful_Lite_Icon::getIcon('images', 'span'); ?></span>
        <div class="entry-box-title clearfix">
            <h4 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h4>
            <div class="meta-box">
                <span class="entry-date"><?php the_time( get_option( 'date_format' ) ); ?></span>
                <span class="entry-author"><?php esc_html_e( 'By', 'forceful-lite' ); ?> <?php the_author_posts_link(); ?></span>
                <?php if(comments_open()){ ?>
                    <span class="entry-comments"><?php echo Forceful_Lite_Icon::getIcon('comment', 'span'); ?><?php ?><?php comments_popup_link( '0', '1', '%'); ?></span>
                    <?php } ?>
                <?php
                $forceful_lite_total_view = get_post_meta( get_the_ID(), 'forceful_lite_total_view', true );

                if ( 'show' == get_theme_mod('forceful_lite_options_post_view_count_status') && $forceful_lite_total_view ) {
                ?>
                    <span class="entry-view"><?php echo Forceful_Lite_Icon::getIcon('view', 'span'); ?><?php echo wp_kses_post( $forceful_lite_total_view ); ?></span>
                <?php } // endif ?>
            </div>
            <!-- meta-box -->

            <div class="clear"></div>
        </div>
        <!-- entry-box-title -->
        <div class="clear"></div>
    </header>

    <div class="entry-thumb">
        <?php
        $gallery = forceful_lite_content_get_gallery( get_the_content() );
        if ( isset( $gallery[0] ) ) {
            $gallery = $gallery[0];
        } else {
            $gallery = '';
        }

        if ( isset( $gallery['shortcode'] ) ) {
            echo do_shortcode( $gallery['shortcode'] );
        }
        ?>
    </div>

    <div class="elements-box">
        <?php $content = get_the_content();
        $content = preg_replace('/\[gallery.*]/', '', $content);
        $content = apply_filters( 'the_content', $content );
        $content = str_replace(']]>', ']]&gt;', $content);
        echo  sprintf( '%s', $content );
        ?>
    </div>
    <div class="clear"></div>

    <div class="wp-link-pages clearfix">
        <?php wp_link_pages( array(
            'before'   => '<p>',
            'after'    => '</p>',
            'pagelink' => esc_html__( 'Page %', 'forceful-lite' )
        ) ); ?>
    </div> <!-- .wp-link-pages -->

    <footer class="clearfix">
        <?php get_template_part( 'templates/post-navigation' ); ?>
    </footer>
</div>
<!-- entry-box -->