<?php
/**
 * The main template file.
 *
 * This is the most generic template file in a WordPress theme
 * and one of the two required files for a theme (the other being style.css).
 * It is used to display a page when nothing more specific matches a query.
 * E.g., it puts together the home page.
 * Learn more: http://codex.wordpress.org/Template_Hierarchy
 *
 * @package Forex
 */
 get_header();  
 forexn_breadcrumbs();	
?>
<!-- page  -->
<section class="sp-70-100 page-section">
	<div class="container">
		<div class="row">
			<main class="col-md-8 col-lg-8 order-lg-1">
				<div class="row">
					<?php if(have_posts()) : ?>
	            		<?php while(have_posts()) : the_post(); ?>		
		                    <div id="post-<?php the_ID(); ?>" <?php post_class('col-sm-12'); ?>>
		                    	<?php get_template_part('content-parts/content', get_post_format()); ?>
		                   	</div>
	           			<?php endwhile; ?>
	           		<?php else :  
	                	get_template_part( 'template-parts/content', 'none' );
	            	endif; ?>
				</div>					

            	<div class="pagi d-flex justify-content-center">
		        	<ul class="meta ">
						<?php the_posts_pagination( array(
			                'prev_text' => esc_html__('Prev','forexn'),
			                'next_text' => esc_html__('Next','forexn')
			                )); 
			            ?>
		            </ul>
				</div>
	        </main>
           	<div class="col-md-4 col-lg-4 order-lg-2">
				<aside class="sidebar">				 							
	             	<?php get_sidebar(); ?>	         		
				</aside>
			</div>			 
		</div>  
	</div>
</section>
<?php get_footer(); ?>