<?php
/**
 * Search.php is used for your search result pages.
 * @package Ultra WordPress Theme
 * @since 1.0
 * @author AJ Clarke : http://wpexplorer.com
 * @copyright Copyright (c) 2012, AJ Clarke
 * @link http://wpexplorer.com
 * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
 */

get_header(); // Loads the header.php template ?>

<header id="page-heading">
    <div class="boxed">
        <h1 id="search-title"><?php _e('Search Results For','wpex'); ?>: &#8220;<?php the_search_query(); ?>&#8221;</h1>
    </div><!-- .boxed -->
</header><!-- #page-heading -->

<div id="search-results-page" class="container boxed clearfix">
    <div id="post" class="clearfix">
		<?php
		if (have_posts()) : 
			//show posts using the serach loop
			get_template_part( 'content', 'search');
		
		else :
			_e('Sorry, no results where found','wpex');
		endif;
		?>
        <div class="clear"></div>
        <?php wpex_pagination(); //paginate pages ?>
    </div><!-- /post  -->
	<?php get_sidebar(); // Loads the sidebar.php file ?>
</div><!-- /search-results-page -->
<?php get_footer(); // Loads the footer.php file ?>