<?php
/**
 * The template for displaying archive pages.
 *
 * @link https://codex.wordpress.org/Template_Hierarchy
 *
 * @package Glides
 */

get_header();
$glides_archive_pg_layout = get_theme_mod('archive_pg_layout', 'glides_rsb'); 

$col_class = ($glides_archive_pg_layout == 'glides_fullwidth')?'col-lg-10 mx-auto':'col-lg-8';
glides_breadcrumbs_style();
?>
<section class="blog-section">
	<div class="container">
		<div class="row">
			<?php if($glides_archive_pg_layout == 'glides_lsb'): get_sidebar(); endif; ?>	
			 <div class="<?php echo esc_attr($col_class); ?>">
			
				<?php if( have_posts() ): ?>
				<div class="row">
					<?php while( have_posts() ) : the_post(); ?>
						<div class="col-lg-6">
							<?php get_template_part('parts/default/post','page'); ?>
						</div>		
					<?php	endwhile; 
					the_posts_navigation();
					?>
				</div>	
				<?php else: ?>
				
					<?php get_template_part('parts/default/post','none'); ?>
					
				<?php endif; ?>
			</div>
			<?php if($glides_archive_pg_layout == 'glides_rsb'): get_sidebar(); endif; ?>
		</div>
	</div>
</section>
<?php get_footer(); ?>
