<?php
/**
 * The template for displaying all pages.
 *
 * This is the template that displays all pages by default.
 * Please note that this is the WordPress construct of pages
 * and that other 'pages' on your WordPress site will use a
 * different template.
 *
 * @package forexn
 */
 get_header(); 
 forexn_breadcrumbs(); ?>

<!-- news item details -->
<section class="section-padding page-section">
    <div class="container">
        <div class="row">
            <!-- blog starts  -->
            <div class="col-sm-8 col-12">
                <div class="blog-lg">
                    <?php if(has_post_thumbnail()) : ?>
                        <div class="featured-img">                            
                            <?php the_post_thumbnail(); ?>                           
                        </div>
                    <?php endif; ?>
                    <?php if(has_post_thumbnail()) : ?>
                     <div class="blog-content">
                    <?php else : ?>
                    <div class="blogg-img">
                    <?php endif; ?>
                        <?php if(have_posts()) :                       
                            while(have_posts()) : the_post();  
                                the_content(); 
                                wp_link_pages( array(
                                    'before' => '<div class="page-links d-flex justify-content-center">',
                                    'after'  => '</div>',
                                ) );
                            endwhile;                       
                        else : ?>
                            <p><?php esc_html__('No Posts Found', 'forexn'); ?></p>
                        <?php endif; ?>
                    </div>
                </div>
                    <div class="col-md-12">
                        <?php if ( comments_open() || get_comments_number() ) :
                            comments_template();
                        endif; ?> 
                    </div>
            </div>
            <div class="col-lg-4 order-lg-1">
                <aside class="sidebar">
                    <?php get_sidebar(); ?>
                </aside>
            </div>
            <!-- blog ends  -->
        </div>
	</div>
</section>
<?php get_footer(); ?>