Changeset 30394 for trunk/src/wp-content/themes/twentyfifteen/search.php
- Timestamp:
- 11/19/2014 08:27:09 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyfifteen/search.php
r30316 r30394 19 19 </header><!-- .page-header --> 20 20 21 <?php /* Start the Loop */ ?> 22 <?php while ( have_posts() ) : the_post(); ?> 21 <?php 22 // Start the loop. 23 while ( have_posts() ) : the_post(); ?> 23 24 24 25 <?php 25 /* *26 /* 26 27 * Run the loop for the search to output the results. 27 28 * If you want to overload this in a child theme then include a file … … 29 30 */ 30 31 get_template_part( 'content', 'search' ); 31 ?>32 32 33 <?php endwhile; ?> 33 // End the loop. 34 endwhile; 34 35 35 <?php 36 the_pagination( array( 37 'prev_text' => __( 'Previous page', 'twentyfifteen' ), 38 'next_text' => __( 'Next page', 'twentyfifteen' ), 39 'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>', 40 ) ); 41 ?> 36 // Previous/next page navigation. 37 the_pagination( array( 38 'prev_text' => __( 'Previous page', 'twentyfifteen' ), 39 'next_text' => __( 'Next page', 'twentyfifteen' ), 40 'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>', 41 ) ); 42 42 43 <?php else : ?> 43 // If no content, include the "No posts found" template. 44 else : 45 get_template_part( 'content', 'none' ); 44 46 45 <?php get_template_part( 'content', 'none' ); ?> 46 47 <?php endif; ?> 47 endif; 48 ?> 48 49 49 50 </main><!-- .site-main -->
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)