Changeset 39618 for trunk/src/wp-content/themes/twentyseventeen/template-parts/post/content-video.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-video.php
r39146 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() ) { … … 59 60 <div class="entry-content"> 60 61 61 <?php if ( ! is_single() ) : 62 <?php 63 if ( ! is_single() ) { 62 64 63 65 // If not a single post, highlight the video file. 64 if ( ! empty( $video ) ) :66 if ( ! empty( $video ) ) { 65 67 foreach ( $video as $video_html ) { 66 68 echo '<div class="entry-video">'; … … 68 70 echo '</div>'; 69 71 } 70 endif;72 }; 71 73 72 endif;74 }; 73 75 74 if ( is_single() || empty( $video ) ) :76 if ( is_single() || empty( $video ) ) { 75 77 76 78 /* translators: %s: Name of current post */ … … 86 88 'link_after' => '</span>', 87 89 ) ); 88 89 endif;?>90 }; 91 ?> 90 92 91 93 </div><!-- .entry-content --> 92 94 93 <?php if ( is_single() ) : ?> 94 <?php twentyseventeen_entry_footer(); ?> 95 <?php endif; ?> 95 <?php 96 if ( is_single() ) { 97 twentyseventeen_entry_footer(); 98 } 99 ?> 96 100 97 101 </article><!-- #post-## -->
Note: See TracChangeset
for help on using the changeset viewer.