mirror of
https://github.com/WordPress/WordPress.git
synced 2024-10-29 23:09:44 +01:00
e539bb94dc
To help avoid issues with trailing whitespace, omitting the closing PHP tag at the end of a file is preferred. Props netweb, dd32, yahil, milindmore22, vishalkakadiya, NomNom99, manishsongirkar36, sabernhardt, audrasjb, desrosj. See #40039. Built from https://develop.svn.wordpress.org/trunk@53880 git-svn-id: http://core.svn.wordpress.org/trunk@53439 1a063a9b-81f0-0310-95a4-ce76da25c4cd
50 lines
1.1 KiB
PHP
50 lines
1.1 KiB
PHP
<?php
|
|
/**
|
|
* Displays the post header
|
|
*
|
|
* @package WordPress
|
|
* @subpackage Twenty_Nineteen
|
|
* @since Twenty Nineteen 1.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: Post title. 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;
|