Ticket #17735: 17735.diff
File 17735.diff, 6.4 KB (added by , 13 years ago) |
---|
-
wp-content/themes/twentyeleven/author.php
12 12 <section id="primary"> 13 13 <div id="content" role="main"> 14 14 15 <?php if ( have_posts() ) : ?> 16 15 17 <?php 16 18 /* Queue the first post, that way we know 17 19 * what date we're dealing with (if that is the case). … … 19 21 * We reset this later so we can run the loop 20 22 * properly with a call to rewind_posts(). 21 23 */ 22 if ( have_posts() ) 23 the_post(); 24 the_post(); 24 25 ?> 25 26 26 27 <header class="page-header"> … … 66 67 67 68 <?php twentyeleven_content_nav( 'nav-below' ); ?> 68 69 70 <?php else : ?> 71 72 <article id="post-0" class="post no-results not-found"> 73 <header class="entry-header"> 74 <h1 class="entry-title"><?php _e( 'Nothing Found', 'twentyeleven' ); ?></h1> 75 </header><!-- .entry-header --> 76 77 <div class="entry-content"> 78 <p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'twentyeleven' ); ?></p> 79 <?php get_search_form(); ?> 80 </div><!-- .entry-content --> 81 </article><!-- #post-0 --> 82 83 <?php endif; ?> 84 69 85 </div><!-- #content --> 70 86 </section><!-- #primary --> 71 87 -
wp-content/themes/twentyeleven/tag.php
12 12 <section id="primary"> 13 13 <div id="content" role="main"> 14 14 15 <?php the_post();?>15 <?php if ( have_posts() ) : ?> 16 16 17 17 <header class="page-header"> 18 18 <h1 class="page-title"><?php … … 26 26 ?> 27 27 </header> 28 28 29 <?php rewind_posts(); ?>30 31 29 <?php twentyeleven_content_nav( 'nav-above' ); ?> 32 30 33 31 <?php /* Start the Loop */ ?> … … 45 43 46 44 <?php twentyeleven_content_nav( 'nav-below' ); ?> 47 45 46 <?php else : ?> 47 48 <article id="post-0" class="post no-results not-found"> 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( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'twentyeleven' ); ?></p> 55 <?php get_search_form(); ?> 56 </div><!-- .entry-content --> 57 </article><!-- #post-0 --> 58 59 <?php endif; ?> 60 48 61 </div><!-- #content --> 49 62 </section><!-- #primary --> 50 63 -
wp-content/themes/twentyeleven/category.php
12 12 <section id="primary"> 13 13 <div id="content" role="main"> 14 14 15 <?php if ( have_posts() ) : ?> 16 15 17 <header class="page-header"> 16 18 <h1 class="page-title"><?php 17 19 printf( __( 'Category Archives: %s', 'twentyeleven' ), '<span>' . single_cat_title( '', false ) . '</span>' ); … … 41 43 42 44 <?php twentyeleven_content_nav( 'nav-below' ); ?> 43 45 46 <?php else : ?> 47 48 <article id="post-0" class="post no-results not-found"> 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( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'twentyeleven' ); ?></p> 55 <?php get_search_form(); ?> 56 </div><!-- .entry-content --> 57 </article><!-- #post-0 --> 58 59 <?php endif; ?> 60 44 61 </div><!-- #content --> 45 62 </section><!-- #primary --> 46 63 -
wp-content/themes/twentyeleven/archive.php
17 17 <section id="primary"> 18 18 <div id="content" role="main"> 19 19 20 <?php if ( have_posts() ) : ?> 21 20 22 <?php 21 23 /* Queue the first post, that way we know 22 24 * what date we're dealing with (if that is the case). … … 24 26 * We reset this later so we can run the loop 25 27 * properly with a call to rewind_posts(). 26 28 */ 27 if ( have_posts() ) 28 the_post(); 29 the_post(); 29 30 ?> 30 31 31 32 <header class="page-header"> … … 67 68 68 69 <?php twentyeleven_content_nav( 'nav-below' ); ?> 69 70 71 <?php else : ?> 72 73 <article id="post-0" class="post no-results not-found"> 74 <header class="entry-header"> 75 <h1 class="entry-title"><?php _e( 'Nothing Found', 'twentyeleven' ); ?></h1> 76 </header><!-- .entry-header --> 77 78 <div class="entry-content"> 79 <p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'twentyeleven' ); ?></p> 80 <?php get_search_form(); ?> 81 </div><!-- .entry-content --> 82 </article><!-- #post-0 --> 83 84 <?php endif; ?> 85 70 86 </div><!-- #content --> 71 87 </section><!-- #primary --> 72 88 -
wp-content/themes/twentyeleven/index.php
17 17 <div id="primary"> 18 18 <div id="content" role="main"> 19 19 20 <?php if ( have_posts() ) : ?> 21 20 22 <?php twentyeleven_content_nav( 'nav-above' ); ?> 21 23 22 24 <?php /* Start the Loop */ ?> … … 28 30 29 31 <?php twentyeleven_content_nav( 'nav-below' ); ?> 30 32 33 <?php else : ?> 34 35 <article id="post-0" class="post no-results not-found"> 36 <header class="entry-header"> 37 <h1 class="entry-title"><?php _e( 'Nothing Found', 'twentyeleven' ); ?></h1> 38 </header><!-- .entry-header --> 39 40 <div class="entry-content"> 41 <p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'twentyeleven' ); ?></p> 42 <?php get_search_form(); ?> 43 </div><!-- .entry-content --> 44 </article><!-- #post-0 --> 45 46 <?php endif; ?> 47 31 48 </div><!-- #content --> 32 49 </div><!-- #primary --> 33 50