Advertisement
Guest User

Untitled

a guest
May 15th, 2012
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.69 KB | None | 0 0
  1. <?php
  2. /**
  3. * The template for displaying Search Results pages.
  4. *
  5. * @package WordPress
  6. * @subpackage Twenty_Eleven
  7. * @since Twenty Eleven 1.0
  8. */
  9.  
  10. get_header(); ?>
  11.  
  12. <section id="primary">
  13. <div id="content" role="main">
  14. </br></br>
  15. <h1><search_results>Search Results: <span><?php the_search_query() ?></search_results></h1>
  16.  
  17.  
  18. </br>
  19. <?php if ( have_posts() ) : ?>
  20.  
  21.  
  22. <?php twentyeleven_content_nav( 'nav-above' ); ?>
  23.  
  24. <?php /* Start the Loop */ ?>
  25.  
  26. <?php while ( have_posts() ) : the_post(); ?>
  27.  
  28.  
  29. <div class="csc_post">
  30. <?php
  31. /* Include the Post-Format-specific template for the content.
  32. * If you want to overload this in a child theme then include a file
  33. * called content-___.php (where ___ is the Post Format name) and that will be used instead.
  34. */
  35. get_template_part( 'content', get_post_format() );
  36. ?>
  37. </div>
  38.  
  39. <?php endwhile; ?>
  40.  
  41. <?php twentyeleven_content_nav( 'nav-below' ); ?>
  42. </br></br>
  43. <?php else : ?>
  44.  
  45.  
  46. <article id="post-0" class="post no-results not-found">
  47. <?php spell_suggest(); ?>
  48. <?php related_searches(); ?>
  49. <header class="entry-header">
  50. <h1 class="entry-title"><?php _e( 'Nothing Found', 'twentyeleven' ); ?></h1>
  51. </header><!-- .entry-header -->
  52.  
  53. <div class="entry-content">
  54. <p><?php _e( 'Sorry, but nothing matched your search criteria. Please try again with some different keywords.', 'twentyeleven' ); ?></p>
  55. <?php get_search_form(); ?>
  56. </div><!-- .entry-content -->
  57. </article><!-- #post-0 -->
  58.  
  59. <?php endif; ?>
  60.  
  61. </div><!-- #content -->
  62. </section><!-- #primary -->
  63.  
  64.  
  65. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement