<?php
/**
 * The template for displaying Search Results pages.
 *
 * @package progression
 * @since progression 1.0
 */

get_header(); ?>

<?php if(of_get_option('blog_sidebar', '1')): ?><div id="container-sidebar"><!-- sidebar content container --><?php endif; ?>


<?php if ( have_posts() ) : ?>

		
		<?php /* Start the Loop */ ?>
		<?php while ( have_posts() ) : the_post(); ?>
			
			<?php get_template_part( 'content', 'blog' ); ?>
			
		<?php endwhile; ?>
		
		
		<div class="clearfix"></div>
		<?php kriesi_pagination($pages = '', $range = 2); ?>
		<!--div><?php posts_nav_link(); // default tag ?></div-->

		<?php else : ?>	
			<?php get_template_part( 'no-results', 'search' ); ?>
		<?php endif; ?>
			
<div class="clearfix"></div>
<?php if(of_get_option('blog_sidebar', '1')): ?></div><!-- close #container-sidebar -->
<?php get_sidebar(); ?><?php endif; ?>
<?php get_footer(); ?>