[ 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_Eleven 7 * @since Twenty Eleven 1.0 8 */ 9 10 get_header(); ?> 11 12 <section id="primary"> 13 <div id="content" role="main"> 14 15 <?php if ( have_posts() ) : ?> 16 17 <header class="page-header"> 18 <h1 class="page-title"> 19 <?php 20 /* translators: %s: Search query. */ 21 printf( __( 'Search Results for: %s', 'twentyeleven' ), '<span>' . get_search_query() . '</span>' ); 22 ?> 23 </h1> 24 </header> 25 26 <?php twentyeleven_content_nav( 'nav-above' ); ?> 27 28 <?php 29 // Start the Loop. 30 while ( have_posts() ) : 31 the_post(); 32 ?> 33 34 <?php 35 /* 36 * Include the Post-Format-specific template for the content. 37 * If you want to overload this in a child theme then include a file 38 * called content-___.php (where ___ is the Post Format name) and that 39 * will be used instead. 40 */ 41 get_template_part( 'content', get_post_format() ); 42 ?> 43 44 <?php endwhile; ?> 45 46 <?php twentyeleven_content_nav( 'nav-below' ); ?> 47 48 <?php else : ?> 49 50 <article id="post-0" class="post no-results not-found"> 51 <header class="entry-header"> 52 <h1 class="entry-title"><?php _e( 'Nothing Found', 'twentyeleven' ); ?></h1> 53 </header><!-- .entry-header --> 54 55 <div class="entry-content"> 56 <p><?php _e( 'Sorry, but nothing matched your search criteria. Please try again with some different keywords.', 'twentyeleven' ); ?></p> 57 <?php get_search_form(); ?> 58 </div><!-- .entry-content --> 59 </article><!-- #post-0 --> 60 61 <?php endif; ?> 62 63 </div><!-- #content --> 64 </section><!-- #primary --> 65 66 <?php get_sidebar(); ?> 67 <?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 |