• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
WordPress a2z

WordPress a2z

WordPress Dynamic API Reference

  • Home
  • Plugins
  • Themes
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / Files / template-parts/header/entry-header.php


Lines:

1 to 51 of 51
<?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;
 

 View on GitHub View on Trac

Called by

    Invoked by

      Calls

      1 to 7 of 7
      • twentynineteen_can_show_post_thumbnail() – Determines if post thumbnail can be displayed.
      • twentynineteen_comment_count() – Prints HTML with the comment count for the current post.
      • twentynineteen_discussion_avatars_list() – Displays a list of avatars involved in a discussion for a given post.
      • twentynineteen_get_discussion_data() – Returns information about the current post’s discussion, with cache support.
      • twentynineteen_get_icon_svg() – Gets the SVG code for a given icon.
      • twentynineteen_posted_by() – Prints HTML with meta information about theme author.
      • twentynineteen_posted_on() – Prints HTML with meta information for the current post-date/time.

      Call hooks

      File name: template-parts/header/entry-header.php
      Plugin ref: Twenty Nineteen
      Version: 2.4
      Deprecated?: No
      API Letters: E,H,P,T

      Published: 25th November 2019 | Last updated: 2nd November 2022

      Primary Sidebar

      Information

      File name: template-parts/header/entry-header.php
      Plugin ref: Twenty Nineteen
      Version: 2.4
      Deprecated?: No
      API Letters: E,H,P,T

      template-parts/header

      Footer

      WordPress a2z
      WordPress a2z
      WordPress Dynamic API Reference
      WordPress 6.1.1. PHP: 8.0.28
      WordPress a2z
      WordPress core a2z
      Genesis Theme Framework a2z
      Jetpack a2z
      WordPress develop tests
      Easy Digital Downloads a2z
      WooCommerce a2z
      Yoast SEO a2z
      WordPress Blocks

      Site:  wp-a2z.org
      © Copyright WordPress a2z 2014-2023. All rights reserved.


      Website designed and developed by Herb Miller
      Proudly powered by WordPress and oik plugins

      • Home
      • Blog
      • Sitemap
      • Sites