<?php
   /**
   * The template for displaying all search.
   *
   * This is the template that displays all posts by default.
   * Please note that this is the WordPress construct of posts
   * and that other 'posts' on your WordPress site will use a
   * different template.
   *
   * @package Forex 
   */
    get_header();
    forexn_breadcrumbs();
 ?>
<section class="sp-70-100 page-section">
 	<div class="container">
    <div class="row">
      <div class="col-lg-8 col-md-12">
        <?php if(have_posts()) : ?>
          <?php while(have_posts()) : the_post(); ?>
            <article class="col-md-12 blog-wrap blog-iso-item">
              <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
                 <?php get_template_part('content-parts/content', 'search'); ?>
              </div>
            </article>
          <?php endwhile; ?>
        <?php else : 
            get_template_part( 'content-parts/content', 'none' );
        endif; ?>
        <div class="pagi d-flex justify-content-center">
          <?php the_posts_pagination(  array(
                  'prev_text' => esc_html__('Prev','forexn'),
                  'next_text' => esc_html__('Next','forexn')
              ) ); 
            ?>
        </div>
      </div>
      <div class="col-lg-4 order-lg-1">
        <aside class="sidebar">
          <?php get_sidebar(); ?>
        </aside>
      </div>
    </div>
  </div>
</section>
<?php get_footer(); ?>