1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
<?php /** * Displays the post header * * @package WordPress * @subpackage Twenty_Nineteen * @since 1.0.0 */
$discussion = ! is_page() && twentynineteen_can_show_post_thumbnail() ? twentynineteen_get_discussion_data() : null; ?>
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
<?php if ( ! is_page() ) : ?> <div class="entry-meta"> <?php twentynineteen_posted_by(); ?> <?php twentynineteen_posted_on(); ?> <span class="comment-count"> <?php if ( ! empty( $discussion ) ) { twentynineteen_discussion_avatars_list( $discussion->authors ); } ?> <?php twentynineteen_comment_count(); ?> </span> <?php // Edit post link. edit_post_link( sprintf( wp_kses( /* translators: %s: Name of current post. Only visible to screen readers. */ __( 'Edit <span class="screen-reader-text">%s</span>', 'twentynineteen' ), array( 'span' => array( 'class' => array(), ), ) ), get_the_title() ), '<span class="edit-link">' . twentynineteen_get_icon_svg( 'edit', 16 ), '</span>' ); ?> </div><!-- .entry-meta --> <?php endif; ?>
|