[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-content/themes/twentynineteen/template-parts/content/ -> content.php (source)

   1  <?php
   2  /**
   3   * Template part for displaying posts
   4   *
   5   * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
   6   *
   7   * @package WordPress
   8   * @subpackage Twenty_Nineteen
   9   * @since 1.0.0
  10   */
  11  
  12  ?>
  13  
  14  <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  15      <header class="entry-header">
  16          <?php
  17          if ( is_sticky() && is_home() && ! is_paged() ) {
  18              printf( '<span class="sticky-post">%s</span>', _x( 'Featured', 'post', 'twentynineteen' ) );
  19          }
  20          if ( is_singular() ) :
  21              the_title( '<h1 class="entry-title">', '</h1>' );
  22          else :
  23              the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' );
  24          endif;
  25          ?>
  26      </header><!-- .entry-header -->
  27  
  28      <?php twentynineteen_post_thumbnail(); ?>
  29  
  30      <div class="entry-content">
  31          <?php
  32          the_content(
  33              sprintf(
  34                  wp_kses(
  35                      /* translators: %s: Post title. Only visible to screen readers. */
  36                      __( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'twentynineteen' ),
  37                      array(
  38                          'span' => array(
  39                              'class' => array(),
  40                          ),
  41                      )
  42                  ),
  43                  get_the_title()
  44              )
  45          );
  46  
  47          wp_link_pages(
  48              array(
  49                  'before' => '<div class="page-links">' . __( 'Pages:', 'twentynineteen' ),
  50                  'after'  => '</div>',
  51              )
  52          );
  53          ?>
  54      </div><!-- .entry-content -->
  55  
  56      <footer class="entry-footer">
  57          <?php twentynineteen_entry_footer(); ?>
  58      </footer><!-- .entry-footer -->
  59  </article><!-- #post-<?php the_ID(); ?> -->


Generated: Mon Sep 23 01:00:03 2019 Cross-referenced by PHPXref 0.7.1