Changeset 39618 for trunk/src/wp-content/themes/twentyseventeen/template-parts/post/content-image.php
- Timestamp:
- 12/16/2016 10:07:41 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyseventeen/template-parts/post/content-image.php
r39072 r39618 10 10 * @version 1.0 11 11 */ 12 12 13 ?> 13 14 14 15 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 15 16 <?php 16 if ( is_sticky() && is_home() ) :17 if ( is_sticky() && is_home() ) { 17 18 echo twentyseventeen_get_svg( array( 'icon' => 'thumb-tack' ) ); 18 endif;19 } 19 20 ?> 20 21 <header class="entry-header"> 21 22 <?php 22 if ( 'post' === get_post_type() ) :23 if ( 'post' === get_post_type() ) { 23 24 echo '<div class="entry-meta">'; 24 if ( is_single() ) :25 if ( is_single() ) { 25 26 twentyseventeen_posted_on(); 26 else :27 } else { 27 28 echo twentyseventeen_time_link(); 28 29 twentyseventeen_edit_link(); 29 endif;30 }; 30 31 echo '</div><!-- .entry-meta -->'; 31 endif;32 }; 32 33 33 34 if ( is_single() ) { … … 49 50 <div class="entry-content"> 50 51 51 <?php if ( is_single() || '' === get_the_post_thumbnail() ) :52 <?php if ( is_single() || '' === get_the_post_thumbnail() ) { 52 53 53 54 // Only show content if is a single post, or if there's no featured image. … … 65 66 ) ); 66 67 67 endif; ?> 68 }; 69 ?> 68 70 69 71 </div><!-- .entry-content --> 70 72 71 <?php if ( is_single() ) : ?> 72 <?php twentyseventeen_entry_footer(); ?> 73 <?php endif; ?> 73 <?php 74 if ( is_single() ) { 75 twentyseventeen_entry_footer(); 76 } 77 ?> 74 78 75 79 </article><!-- #post-## -->
Note: See TracChangeset
for help on using the changeset viewer.