Make WordPress Core


Ignore:
Timestamp:
11/19/2014 08:27:09 PM (12 years ago)
Author:
iandstewart
Message:

Twenty Fifteen: doc cleanup, addresses removing periods from file header summaries, some spacing, loop documentation, and https instead of http.

Props DrewAPicture, MikeHansenMe, see #30149.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfifteen/search.php

    r30316 r30394  
    1919                        </header><!-- .page-header -->
    2020
    21                         <?php /* Start the Loop */ ?>
    22                         <?php while ( have_posts() ) : the_post(); ?>
     21                        <?php
     22                        // Start the loop.
     23                        while ( have_posts() ) : the_post(); ?>
    2324
    2425                                <?php
    25                                 /**
     26                                /*
    2627                                 * Run the loop for the search to output the results.
    2728                                 * If you want to overload this in a child theme then include a file
     
    2930                                 */
    3031                                get_template_part( 'content', 'search' );
    31                                 ?>
    3232
    33                         <?php endwhile; ?>
     33                        // End the loop.
     34                        endwhile;
    3435
    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                        ) );
    4242
    43                 <?php else : ?>
     43                // If no content, include the "No posts found" template.
     44                else :
     45                        get_template_part( 'content', 'none' );
    4446
    45                         <?php get_template_part( 'content', 'none' ); ?>
    46 
    47                 <?php endif; ?>
     47                endif;
     48                ?>
    4849
    4950                </main><!-- .site-main -->
Note: See TracChangeset for help on using the changeset viewer.