Changeset 43842 for branches/5.0/src/wp-content/themes/twentynineteen/template-parts/content/content-single.php
- Timestamp:
- 10/30/2018 02:13:07 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0/src/wp-content/themes/twentynineteen/template-parts/content/content-single.php
r43808 r43842 7 7 * @package WordPress 8 8 * @subpackage Twenty_Nineteen 9 * @since 1.0.0 9 10 */ 10 11 … … 12 13 13 14 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 14 <?php if ( ! twentynineteen_can_show_post_thumbnail() ) : ?>15 <?php if ( ! twentynineteen_can_show_post_thumbnail() ) : ?> 15 16 <header class="entry-header"> 16 <?php if ( ! is_page() ) : ?> 17 <?php $discussion = twentynineteen_can_show_post_thumbnail() ? twentynineteen_get_discussion_data() : null; ?> 18 <?php endif; ?> 19 <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?> 20 <?php if ( ! is_page() ) : ?> 21 <div class="<?php echo ( ! empty( $discussion ) && count( $discussion->authors ) > 0 ) ? 'entry-meta has-discussion' : 'entry-meta'; ?>"> 22 <?php twentynineteen_posted_by(); ?> 23 <?php twentynineteen_posted_on(); ?> 24 <span class="comment-count"> 25 <?php 26 if ( ! empty( $discussion ) ) { 27 twentynineteen_discussion_avatars_list( $discussion->authors );} 28 ?> 29 <?php twentynineteen_comment_count(); ?> 30 </span> 31 <?php 32 // Edit post link. 33 edit_post_link( 34 sprintf( 35 wp_kses( 36 /* translators: %s: Name of current post. Only visible to screen readers. */ 37 __( 'Edit <span class="screen-reader-text">%s</span>', 'twentynineteen' ), 38 array( 39 'span' => array( 40 'class' => array(), 41 ), 42 ) 43 ), 44 get_the_title() 45 ), 46 '<span class="edit-link">' . twentynineteen_get_icon_svg( 'edit', 16 ), 47 '</span>' 48 ); 49 ?> 50 </div><!-- .meta-info --> 51 <?php endif; ?> 17 <?php get_template_part( 'template-parts/header/entry', 'header' ); ?> 52 18 </header> 53 <?php endif; ?>19 <?php endif; ?> 54 20 55 21 <div class="entry-content"> … … 83 49 </footer><!-- .entry-footer --> 84 50 85 <?php get_template_part( 'template-parts/post/author', 'info' ); ?> 51 <?php if ( ! is_singular( 'attachment' ) ) : ?> 52 <?php get_template_part( 'template-parts/post/author', 'bio' ); ?> 53 <?php endif; ?> 86 54 87 55 </article><!-- #post-${ID} -->
Note: See TracChangeset
for help on using the changeset viewer.