- Timestamp:
- 10/30/2018 02:13:07 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0/src/wp-content/themes/twentynineteen/header.php
r43808 r43842 9 9 * @package WordPress 10 10 * @subpackage Twenty_Nineteen 11 * @since 1.0.0 11 12 */ 12 13 ?><!doctype html> … … 24 25 25 26 <header id="masthead" class="<?php echo is_singular() && twentynineteen_can_show_post_thumbnail() ? 'site-header featured-image' : 'site-header'; ?>"> 27 26 28 <div class="site-branding-container"> 27 29 <?php get_template_part( 'template-parts/header/site', 'branding' ); ?> … … 29 31 30 32 <?php if ( is_singular() && twentynineteen_can_show_post_thumbnail() ) : ?> 31 <div class=" hentry">33 <div class="site-featured-image"> 32 34 <?php the_post(); ?> 33 <div class="entry-header"> 34 <?php if ( ! is_page() ) : ?> 35 <?php $discussion = twentynineteen_can_show_post_thumbnail() ? twentynineteen_get_discussion_data() : null; ?> 36 <?php endif; ?> 37 <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?> 38 <?php if ( ! is_page() ) : ?> 39 <div class="<?php echo ( ! empty( $discussion ) && count( $discussion->authors ) > 0 ) ? 'entry-meta has-discussion' : 'entry-meta'; ?>"> 40 <?php twentynineteen_posted_by(); ?> 41 <?php twentynineteen_posted_on(); ?> 42 <span class="comment-count"> 43 <?php 44 if ( ! empty( $discussion ) ) { 45 twentynineteen_discussion_avatars_list( $discussion->authors );} 46 ?> 47 <?php twentynineteen_comment_count(); ?> 48 </span> 49 <?php 50 // Edit post link. 51 edit_post_link( 52 sprintf( 53 wp_kses( 54 /* translators: %s: Name of current post. Only visible to screen readers. */ 55 __( 'Edit <span class="screen-reader-text">%s</span>', 'twentynineteen' ), 56 array( 57 'span' => array( 58 'class' => array(), 59 ), 60 ) 61 ), 62 get_the_title() 63 ), 64 '<span class="edit-link">' . twentynineteen_get_icon_svg( 'edit', 16 ), 65 '</span>' 66 ); 67 ?> 68 </div><!-- .meta-info --> 69 <?php endif; ?> 35 <?php $discussion = ! is_page() && twentynineteen_can_show_post_thumbnail() ? twentynineteen_get_discussion_data() : null; ?> 36 <div class="<?php echo ( ! empty( $discussion ) && count( $discussion->authors ) > 0 ) ? 'entry-header has-discussion' : 'entry-header'; ?>"> 37 <?php get_template_part( 'template-parts/header/entry', 'header' ); ?> 70 38 </div><!-- .entry-header --> 71 39 <?php rewind_posts(); ?>
Note: See TracChangeset
for help on using the changeset viewer.