[ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * 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"> 17 <?php 18 /* translators: %s: Search query. */ 19 printf( __( 'Search Results for: %s', 'twentyten' ), '<span>' . get_search_query() . '</span>' ); 20 ?> 21 </h1> 22 <?php 23 /* 24 * Run the loop for the search to output the results. 25 * If you want to overload this in a child theme then include a file 26 * called loop-search.php and that will be used instead. 27 */ 28 get_template_part( 'loop', 'search' ); 29 ?> 30 <?php else : ?> 31 <div id="post-0" class="post no-results not-found"> 32 <h2 class="entry-title"><?php _e( 'Nothing Found', 'twentyten' ); ?></h2> 33 <div class="entry-content"> 34 <p><?php _e( 'Sorry, but nothing matched your search criteria. Please try again with some different keywords.', 'twentyten' ); ?></p> 35 <?php get_search_form(); ?> 36 </div><!-- .entry-content --> 37 </div><!-- #post-0 --> 38 <?php endif; ?> 39 </div><!-- #content --> 40 </div><!-- #container --> 41 42 <?php get_sidebar(); ?> 43 <?php get_footer(); ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated : Thu Nov 21 08:20:01 2024 | Cross-referenced by PHPXref |