Changeset 39618 for trunk/src/wp-content/themes/twentyseventeen/template-parts/post/content-audio.php
- Timestamp:
- 12/16/2016 10:07:41 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyseventeen/template-parts/post/content-audio.php
r39146 r39618 15 15 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 16 16 <?php 17 if ( is_sticky() && is_home() ) :17 if ( is_sticky() && is_home() ) { 18 18 echo twentyseventeen_get_svg( array( 'icon' => 'thumb-tack' ) ); 19 endif;19 } 20 20 ?> 21 21 <header class="entry-header"> 22 22 <?php 23 if ( 'post' === get_post_type() ) :23 if ( 'post' === get_post_type() ) { 24 24 echo '<div class="entry-meta">'; 25 if ( is_single() ) :25 if ( is_single() ) { 26 26 twentyseventeen_posted_on(); 27 else :27 } else { 28 28 echo twentyseventeen_time_link(); 29 29 twentyseventeen_edit_link(); 30 endif;30 }; 31 31 echo '</div><!-- .entry-meta -->'; 32 endif;32 }; 33 33 34 34 if ( is_single() ) { … … 61 61 <div class="entry-content"> 62 62 63 <?php if ( ! is_single() ) : 63 <?php 64 if ( ! is_single() ) { 64 65 65 66 // If not a single post, highlight the audio file. 66 if ( ! empty( $audio ) ) :67 if ( ! empty( $audio ) ) { 67 68 foreach ( $audio as $audio_html ) { 68 69 echo '<div class="entry-audio">'; … … 70 71 echo '</div><!-- .entry-audio -->'; 71 72 } 72 endif;73 }; 73 74 74 endif;75 }; 75 76 76 if ( is_single() || empty( $audio ) ) :77 if ( is_single() || empty( $audio ) ) { 77 78 78 79 /* translators: %s: Name of current post */ … … 89 90 ) ); 90 91 91 endif; ?> 92 }; 93 ?> 92 94 93 95 </div><!-- .entry-content --> 94 96 95 <?php if ( is_single() ) : ?> 96 <?php twentyseventeen_entry_footer(); ?> 97 <?php endif; ?> 97 <?php 98 if ( is_single() ) { 99 twentyseventeen_entry_footer(); 100 } 101 ?> 98 102 99 103 </article><!-- #post-## -->
Note: See TracChangeset
for help on using the changeset viewer.