Pouknouki

Search Results (Thoughts WP Theme)

Jun 27th, 2013
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.38 KB | None | 0 0
  1. <?php
  2. /**
  3.  * Search.php is used for your search result pages.
  4.  * @package Thoughts WordPress Theme
  5.  * @since 1.0
  6.  * @author AJ Clarke : http://wpexplorer.com
  7.  * @copyright Copyright (c) 2012, AJ Clarke
  8.  * @link http://wpexplorer.com
  9.  * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
  10.  */
  11.  
  12. /**
  13. Page de recherche modifiée pour et par Thomas Kowalski
  14. http://thomaskowalski.net - @Pouknouki - http://www.citrik-digital.net
  15. Merci d'indiquer la source avant de partager :)
  16. */
  17.  
  18. get_header(); // Loads the header.php template
  19. ?>
  20.  
  21. <header id="page-heading">
  22.     <h1 id="archive-title"><span class="wpex-icon-search"></span><?php _e('Résultats de la recherche de ','wpex'); ?>: &quot; <?php the_search_query(); ?> &quot;</h1>
  23.     <?php get_search_form(); ?>
  24. </header><!-- /page-heading -->
  25. <div id="search-results-page" class="clearfix">
  26.     <?php
  27.     $compteur = 0;
  28.     while (have_posts()) : the_post();
  29.         get_template_part( 'content', get_post_format() );  
  30.     $compteur++;
  31.     endwhile;          
  32.     if ($compteur == 0) {
  33.             _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');
  34.     }
  35.     ?>
  36. </div><!-- /search-results-page -->
  37. <?php wpex_pagination(); // Paginate Pages ?>
  38. <?php get_footer(); // Loads the footer.php file ?>
Advertisement
Add Comment
Please, Sign In to add comment