Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Search.php is used for your search result pages.
- * @package Thoughts 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
- */
- /**
- Page de recherche modifiée pour et par Thomas Kowalski
- http://thomaskowalski.net - @Pouknouki - http://www.citrik-digital.net
- Merci d'indiquer la source avant de partager :)
- */
- get_header(); // Loads the header.php template
- ?>
- <header id="page-heading">
- <h1 id="archive-title"><span class="wpex-icon-search"></span><?php _e('Résultats de la recherche de ','wpex'); ?>: " <?php the_search_query(); ?> "</h1>
- <?php get_search_form(); ?>
- </header><!-- /page-heading -->
- <div id="search-results-page" class="clearfix">
- <?php
- $compteur = 0;
- while (have_posts()) : the_post();
- get_template_part( 'content', get_post_format() );
- $compteur++;
- endwhile;
- if ($compteur == 0) {
- _e('<div style="background-color: white; width="100%; margin-bottom: 50px; text-align: center; padding: 25px;" ><center><p>Désolé, mais aucun résultat n\'a été trouvé.</p></center></div>','wpex');
- }
- ?>
- </div><!-- /search-results-page -->
- <?php wpex_pagination(); // Paginate Pages ?>
- <?php get_footer(); // Loads the footer.php file ?>
Advertisement
Add Comment
Please, Sign In to add comment