<?php
/**
 * The template for displaying Search Results pages
 *
 * @package WordPress
 * @subpackage Twenty_Thirteen
 * @since Twenty Thirteen 1.0
 */

get_header(); ?>

	<div id="primary" class="content-area">
		<div id="content" class="site-content" role="main">

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

			<header class="page-header">
				<h1 class="page-title"><?php global $wp_query; echo $wp_query->found_posts; ?> <?php printf( __( 'résultat(s) de recherche pour : "%s"'), get_search_query() ); ?></h1>
			</header>

			<?php /* The loop */ ?>
			<?php while ( have_posts() ) : the_post();
                if (!get_the_content())
                    continue;
            ?>

				<?php get_template_part( 'content', get_post_format() ); ?>
			<?php endwhile; ?>

			<?php twentythirteen_paging_nav(); ?>

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

		</div><!-- #content -->
	</div><!-- #primary -->

            <?php get_sidebar(); ?>
        <div style="clear:both;"></div>
<?php get_footer(); ?>