<?php
/**
 * The template for displaying archive pages.
 *
 * Learn more: http://codex.wordpress.org/Template_Hierarchy
 *
 * @package _spx
 */

get_header(); ?>

<!-- Extra header content goes here (like slider, header title, post thumbnail, etc) -->
  <div class="blog-heading">
      <div class="container">
          <h1><?php echo xs_get_option('theme_options', 'blog_page_title'); ?> <small><?php echo xs_get_option('theme_options', 'blog_page_sub_title'); ?></small></h1>
      </div>
  </div>
 <!-- End extra content -->
</section>
<!-- end HEADER --> 

<!--BEGIN-INTRO-BOX-->
<section id="intro" class="page-block">
  <div class="container">
    <div class="row">
		<!-- Post Content -->
		<div class="col-md-8 col-sm-8 col-xs-12">

		<?php if ( have_posts() ) : ?>
			<?php /* Start the Loop */ ?>
			<?php while ( have_posts() ) : the_post(); ?>

				<?php
					/* Include the Post-Format-specific template for the content.
					 * If you want to override this in a child theme, then include a file
					 * called content-___.php (where ___ is the Post Format name) and that will be used instead.
					 */
					get_template_part( 'content', get_post_format() );
				?>

			<?php endwhile; ?>

			<?php xs_paging_nav(); ?>

		<?php else : ?>

			<?php get_template_part( 'content', 'none' ); ?>

		<?php endif; ?>
		</div>
		<!-- End Post Content -->

<?php get_sidebar('blog'); ?>
      </div><!--end-of-row-->
  </div>
</section>
<!--END-INTRO-BOX--> 

<?php get_footer(); ?>
