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

get_header(); ?>
<?php do_action('rockthemes_pb_frontend_before_page'); ?>
<?php if(defined('RPB_FULL_SHORTCODE')){ echo '<div class="row">';} ?>
<?php if(function_exists('rockthemes_pb_frontend_sidebar_before_content')) rockthemes_pb_frontend_sidebar_before_content(); ?>

	<div id="primary" class="content-area large-<?php echo rockthemes_pb_frontend_get_content_columns_after_sidebars(); ?> column">
		<div id="content" class="site-content" role="main">

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

			<?php /* The loop */ ?>
			<?php while ( have_posts() ) : the_post(); ?>
				<?php 
				get_template_part( 'summary', 'search' ); 
				?>
                <?php do_action('azoom_blogroll_after_article'); ?>
			<?php endwhile; ?>

			<?php azoom_paging_nav(true); ?>

		<?php else : ?>
        	<div class="search-results-empty-content">
                <header class="page-header">
                    <h3 class="page-title"><?php echo esc_html__( 'Nothing matched for : ', 'azoom' ).get_search_query(); ?></h3>
                </header>
    			<hr/>
                <?php echo get_search_form(); ?>
            </div>
		<?php endif; ?>

		</div><!-- #content -->
	</div><!-- #primary -->
<?php 
if(function_exists('rockthemes_pb_frontend_sidebar_after_content')) rockthemes_pb_frontend_sidebar_after_content();
else get_sidebar();
get_sidebar();
?>
<?php if(defined('RPB_FULL_SHORTCODE')){ echo '</div>';} ?>
<?php do_action('rockthemes_pb_frontend_after_page'); ?>
<?php get_footer(); ?>