| [ Index ] |
PHP Cross Reference of WordPress |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * The template for displaying Search Results pages. 4 * 5 * @package WordPress 6 * @subpackage Twenty_Ten 7 * @since Twenty Ten 1.0 8 */ 9 10 get_header(); ?> 11 12 <div id="container"> 13 <div id="content" role="main"> 14 15 <?php if ( have_posts() ) : ?> 16 <h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'twentyten' ), '<span>' . get_search_query() . '</span>' ); ?></h1> 17 <?php 18 /* Run the loop for the search to output the results. 19 * If you want to overload this in a child theme then include a file 20 * called loop-search.php and that will be used instead. 21 */ 22 get_template_part( 'loop', 'search' ); 23 ?> 24 <?php else : ?> 25 <div id="post-0" class="post no-results not-found"> 26 <h2 class="entry-title"><?php _e( 'Nothing Found', 'twentyten' ); ?></h2> 27 <div class="entry-content"> 28 <p><?php _e( 'Sorry, but nothing matched your search criteria. Please try again with some different keywords.', 'twentyten' ); ?></p> 29 <?php get_search_form(); ?> 30 </div><!-- .entry-content --> 31 </div><!-- #post-0 --> 32 <?php endif; ?> 33 </div><!-- #content --> 34 </div><!-- #container --> 35 36 <?php get_sidebar(); ?> 37 <?php get_footer(); ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Fri May 25 03:56:23 2012 | Hosted by follow the white rabbit. |