Changeset 30394 for trunk/src/wp-content/themes/twentyfifteen/image.php
- Timestamp:
- 11/19/2014 08:27:09 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyfifteen/image.php
r30314 r30394 1 1 <?php 2 2 /** 3 * The template for displaying all single posts and attachments.3 * The template for displaying image attachments 4 4 * 5 5 * @package WordPress … … 13 13 <main id="main" class="site-main" role="main"> 14 14 15 <?php while ( have_posts() ) : the_post(); ?> 15 <?php 16 // Start the loop. 17 while ( have_posts() ) : the_post(); 18 ?> 16 19 17 20 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 21 18 22 <nav id="image-navigation" class="navigation image-navigation"> 19 23 <div class="nav-links"> … … 27 31 28 32 <div class="entry-content"> 33 29 34 <div class="entry-attachment"> 30 35 <?php … … 37 42 */ 38 43 $image_size = apply_filters( 'twentyfifteen_attachment_size', 'large' ); 44 39 45 echo wp_get_attachment_image( get_the_ID(), $image_size ); 40 46 ?> … … 45 51 </div><!-- .entry-caption --> 46 52 <?php endif; ?> 53 47 54 </div><!-- .entry-attachment --> 48 55 … … 64 71 <?php edit_post_link( esc_html__( 'Edit', 'twentyfifteen' ), '<span class="edit-link">', '</span>' ); ?> 65 72 </footer><!-- .entry-footer --> 73 66 74 </article><!-- #post-## --> 67 75 … … 71 79 comments_template(); 72 80 endif; 73 ?>74 81 75 <?php82 // Previous/next post navigation. 76 83 the_post_navigation( array( 77 84 'prev_text' => _x( '<span class="meta-nav">Published in</span><span class="post-title">%title</span>', 'Parent post link', 'twentyfifteen' ), 78 85 ) ); 79 ?>80 86 81 <?php endwhile; // end of the loop. ?> 87 // End the loop. 88 endwhile; 89 ?> 82 90 83 91 </main><!-- .site-main -->
Note: See TracChangeset
for help on using the changeset viewer.