Changeset 42343 for trunk/src/wp-content/themes/twentyfifteen/image.php
- Timestamp:
- 11/30/2017 11:09:33 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyfifteen/image.php
r30896 r42343 15 15 <?php 16 16 // Start the loop. 17 while ( have_posts() ) : the_post(); 17 while ( have_posts() ) : 18 the_post(); 18 19 ?> 19 20 20 21 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 21 22 22 23 24 25 26 23 <nav id="image-navigation" class="navigation image-navigation"> 24 <div class="nav-links"> 25 <div class="nav-previous"><?php previous_image_link( false, __( 'Previous Image', 'twentyfifteen' ) ); ?></div><div class="nav-next"><?php next_image_link( false, __( 'Next Image', 'twentyfifteen' ) ); ?></div> 26 </div><!-- .nav-links --> 27 </nav><!-- .image-navigation --> 27 28 28 29 30 29 <header class="entry-header"> 30 <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?> 31 </header><!-- .entry-header --> 31 32 32 33 <div class="entry-content"> 33 34 34 35 36 37 38 39 40 41 42 43 35 <div class="entry-attachment"> 36 <?php 37 /** 38 * Filter the default Twenty Fifteen image attachment size. 39 * 40 * @since Twenty Fifteen 1.0 41 * 42 * @param string $image_size Image size. Default 'large'. 43 */ 44 $image_size = apply_filters( 'twentyfifteen_attachment_size', 'large' ); 44 45 45 46 46 echo wp_get_attachment_image( get_the_ID(), $image_size ); 47 ?> 47 48 48 49 <?php if ( has_excerpt() ) : ?> 49 50 <div class="entry-caption"> 50 51 <?php the_excerpt(); ?> … … 55 56 56 57 <?php 57 the_content(); 58 wp_link_pages( array( 58 the_content(); 59 wp_link_pages( 60 array( 59 61 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfifteen' ) . '</span>', 60 62 'after' => '</div>', … … 63 65 'pagelink' => '<span class="screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>%', 64 66 'separator' => '<span class="screen-reader-text">, </span>', 65 ) ); 66 ?> 67 ) 68 ); 69 ?> 67 70 </div><!-- .entry-content --> 68 71 69 72 <footer class="entry-footer"> 70 73 <?php twentyfifteen_entry_meta(); ?> 71 74 <?php edit_post_link( __( 'Edit', 'twentyfifteen' ), '<span class="edit-link">', '</span>' ); ?> 72 75 </footer><!-- .entry-footer --> … … 75 78 76 79 <?php 77 78 79 80 // If comments are open or we have at least one comment, load up the comment template 81 if ( comments_open() || get_comments_number() ) : 82 comments_template(); 80 83 endif; 81 84 82 // Previous/next post navigation. 83 the_post_navigation( array( 85 // Previous/next post navigation. 86 the_post_navigation( 87 array( 84 88 'prev_text' => _x( '<span class="meta-nav">Published in</span><span class="post-title">%title</span>', 'Parent post link', 'twentyfifteen' ), 85 ) ); 89 ) 90 ); 86 91 87 92 // End the loop.
Note: See TracChangeset
for help on using the changeset viewer.