Pouknouki

Thoughts search results page

Jun 25th, 2013
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.95 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. get_header(); // Loads the header.php template
  13. ?>
  14.  
  15. <header id="page-heading">
  16.     <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>
  17.     <?php get_search_form(); ?>
  18. </header><!-- /page-heading -->
  19. <div id="search-results-page" class="clearfix">
  20.     <?php
  21.     if (have_posts()) :
  22.         get_template_part( 'content', get_post_format() );
  23.     else :
  24.         _e('Désolé, mais aucun résultat n\'a été trouvé.','wpex');
  25.     endif;
  26.     ?>
  27. </div><!-- /search-results-page -->
  28. <?php wpex_pagination(); // Paginate Pages ?>
  29. <?php get_footer(); // Loads the footer.php file ?>
Advertisement
Add Comment
Please, Sign In to add comment