<?php

get_header(); 


$settings  = _WSH()->option(); 
$layout = (sh_set($_GET, 'layout')) ? sh_set($_GET, 'layout') : sh_set($settings, 'archive_page_layout');
$layout = $layout ? $layout : 'right';
$sidebar = sh_set($settings, 'archive_page_sidebar', 'default-sidebar');
$bg = sh_set( $settings, 'archive_page_header_img' );
$bg = ( $bg ) ? $bg : get_template_directory_uri().'/images/other/parallax.jpg';
$title = sh_set( $settings, 'archive_page_title', 'Blog' );

?>

<div class="page-header parallax" style="background-image: url(<?php echo esc_url($bg); ?>);"></div>

<?php get_template_part('includes/modules/nav'); ?>

<!-- === START POST SECTION === -->
<section class="section padding" id="blog">

    <div class="container">
        <div class="row">
			
            
			<div class="col-lg-9 col-xs-12">
                
                <?php if( have_posts() ): ?>
                    
                    <?php while( have_posts() ): the_post(); ?>
            			
							<?php get_template_part( 'blog', get_post_format() ); ?>
						
					<?php endwhile; ?>
                    
					<?php _the_pagination(); ?>
				
				<?php else: ?>
					<p><?php esc_html_e('No posts found', SH_NAME) ?></p>
				<?php endif; ?>
            </div>

		
		
			<div class="col-md-3">
				<div class="sidebar">
					<?php dynamic_sidebar( 'default-sidebar' ); ?>
				</div>
			</div>
		
			
        </div>
    </div>
</section>
<!-- === END POST SECTION === -->

<?php get_footer(); ?>