Advertisement
Guest User

Untitled

a guest
Jul 20th, 2011
294
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.26 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. <div id="infobar"></div>
  13.  
  14. </div>
  15.  
  16. <div id="hc-content">
  17. <div class="datablock">
  18.  
  19. <p>Here is some text, it should show up on the search results page but it doesn't, Here is some text, it should show up on the search results page but it doesn't, Here is some text, it should show up on the search results page but it doesn't, Here is some text, it should show up on the search results page but it doesn't, Here is some text, it should show up on the search results page but it doesn't, Here is some text, it should show up on the search results page but it doesn't, Here is some text, it should show up on the search results page but it doesn't, Here is some text, it should show up on the search results page but it doesn't</p>
  20.  
  21. <?php if ( have_posts() ) : ?>
  22.  
  23. <header class="page-header">
  24. <h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'twentyeleven' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
  25. </header>
  26.  
  27. <?php twentyeleven_content_nav( 'nav-above' ); ?>
  28.  
  29. <?php /* Start the Loop */ ?>
  30. <?php while ( have_posts() ) : the_post(); ?>
  31.  
  32. <?php
  33. /* Include the Post-Format-specific template for the content.
  34. * If you want to overload this in a child theme then include a file
  35. * called content-___.php (where ___ is the Post Format name) and that will be used instead.
  36. */
  37. get_template_part( 'content', get_post_format() );
  38. ?>
  39.  
  40. <?php endwhile; ?>
  41.  
  42. <?php twentyeleven_content_nav( 'nav-below' ); ?>
  43.  
  44. <?php else : ?>
  45.  
  46. <article id="post-0" class="post no-results not-found">
  47. <header class="entry-header">
  48. <h1 class="entry-title"><?php _e( 'Nothing Found', 'twentyeleven' ); ?></h1>
  49. </header><!-- .entry-header -->
  50.  
  51. <div class="entry-content">
  52. <p><?php _e( 'Sorry, but nothing matched your search criteria. Please try again with some different keywords.', 'twentyeleven' ); ?></p>
  53. <?php get_search_form(); ?>
  54. </div><!-- .entry-content -->
  55. </article><!-- #post-0 -->
  56.  
  57. <?php endif; ?>
  58.  
  59.  
  60. </div></div>
  61.  
  62. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement