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/image.php

    r30314 r30394  
    11<?php
    22/**
    3  * The template for displaying all single posts and attachments.
     3 * The template for displaying image attachments
    44 *
    55 * @package WordPress
    … …  
    1313                <main id="main" class="site-main" role="main">
    1414
    15                         <?php while ( have_posts() ) : the_post(); ?>
     15                        <?php
     16                                // Start the loop.
     17                                while ( have_posts() ) : the_post();
     18                        ?>
    1619
    1720                                <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
     21
    1822                                        <nav id="image-navigation" class="navigation image-navigation">
    1923                                                <div class="nav-links">
    … …  
    2731
    2832                                        <div class="entry-content">
     33
    2934                                                <div class="entry-attachment">
    3035                                                        <?php
    … …  
    3742                                                                 */
    3843                                                                $image_size = apply_filters( 'twentyfifteen_attachment_size', 'large' );
     44
    3945                                                                echo wp_get_attachment_image( get_the_ID(), $image_size );
    4046                                                        ?>
    … …  
    4551                                                                </div><!-- .entry-caption -->
    4652                                                        <?php endif; ?>
     53
    4754                                                </div><!-- .entry-attachment -->
    4855
    … …  
    6471                                                <?php edit_post_link( esc_html__( 'Edit', 'twentyfifteen' ), '<span class="edit-link">', '</span>' ); ?>
    6572                                        </footer><!-- .entry-footer -->
     73
    6674                                </article><!-- #post-## -->
    6775
    … …  
    7179                                                comments_template();
    7280                                        endif;
    73                                 ?>
    7481
    75                                 <?php
     82                                        // Previous/next post navigation.
    7683                                        the_post_navigation( array(
    7784                                                'prev_text' => _x( '<span class="meta-nav">Published in</span><span class="post-title">%title</span>', 'Parent post link', 'twentyfifteen' ),
    7885                                        ) );
    79                                 ?>
    8086
    81                         <?php endwhile; // end of the loop. ?>
     87                                // End the loop.
     88                                endwhile;
     89                        ?>
    8290
    8391                </main><!-- .site-main -->
Note: See TracChangeset for help on using the changeset viewer.