Changeset 44149 for trunk/src/wp-content/themes/twentynineteen/header.php
- Timestamp:
- 12/14/2018 02:32:33 AM (6 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/5.0 merged: 43808,43821,43842,43860,43892,43904,43909,43926-43929,43956,43961-43963
- Property svn:mergeinfo changed
-
trunk/src/wp-content/themes/twentynineteen/header.php
r43808 r44149 9 9 * @package WordPress 10 10 * @subpackage Twenty_Nineteen 11 * @since 1.0.0 11 12 */ 12 13 ?><!doctype html> … … 21 22 <body <?php body_class(); ?>> 22 23 <div id="page" class="site"> 23 <a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', 'twentynineteen' ); ?></a>24 <a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'twentynineteen' ); ?></a> 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"> 34 <?php twentynineteen_post_thumbnail(); ?> 32 35 <?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; ?> 36 <?php $discussion = ! is_page() && twentynineteen_can_show_post_thumbnail() ? twentynineteen_get_discussion_data() : null; ?> 37 <div class="<?php echo ( ! empty( $discussion ) && count( $discussion->responses ) > 0 ) ? 'entry-header has-discussion' : 'entry-header'; ?>"> 38 <?php get_template_part( 'template-parts/header/entry', 'header' ); ?> 70 39 </div><!-- .entry-header --> 71 40 <?php rewind_posts(); ?>
Note: See TracChangeset
for help on using the changeset viewer.