- Timestamp:
- 12/14/2018 07:08:06 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0/src/wp-content/themes/twentynineteen/header.php
r43892 r44187 32 32 <?php if ( is_singular() && twentynineteen_can_show_post_thumbnail() ) : ?> 33 33 <div class="site-featured-image"> 34 <?php twentynineteen_post_thumbnail(); ?> 35 <?php the_post(); ?> 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'; ?>"> 34 <?php 35 twentynineteen_post_thumbnail(); 36 the_post(); 37 $discussion = ! is_page() && twentynineteen_can_show_post_thumbnail() ? twentynineteen_get_discussion_data() : null; 38 39 $classes = 'entry-header'; 40 if ( ! empty( $discussion ) && count( $discussion->responses ) > 0 ) { 41 $classes = 'entry-header has-discussion'; 42 } 43 ?> 44 <div class="<?php echo $classes; ?>"> 38 45 <?php get_template_part( 'template-parts/header/entry', 'header' ); ?> 39 46 </div><!-- .entry-header -->
Note: See TracChangeset
for help on using the changeset viewer.