| 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 ) && absint( $discussion->responses ) > 0 ) { |
| | 41 | $classes = 'entry-header has-discussion'; |
| | 42 | } |
| | 43 | ?> |
| | 44 | <div class="<?php echo $classes; ?>"> |