[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

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

   1  <?php
   2  /**
   3   * Template part for displaying page content in page.php
   4   *
   5   * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
   6   *
   7   * @package WordPress
   8   * @subpackage Twenty_Nineteen
   9   * @since Twenty Nineteen 1.0
  10   */
  11  
  12  ?>
  13  
  14  <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  15      <?php if ( ! twentynineteen_can_show_post_thumbnail() ) : ?>
  16      <header class="entry-header">
  17          <?php get_template_part( 'template-parts/header/entry', 'header' ); ?>
  18      </header>
  19      <?php endif; ?>
  20  
  21      <div class="entry-content">
  22          <?php
  23          the_content();
  24  
  25          wp_link_pages(
  26              array(
  27                  'before' => '<div class="page-links">' . __( 'Pages:', 'twentynineteen' ),
  28                  'after'  => '</div>',
  29              )
  30          );
  31          ?>
  32      </div><!-- .entry-content -->
  33  
  34      <?php if ( get_edit_post_link() ) : ?>
  35          <footer class="entry-footer">
  36              <?php
  37              edit_post_link(
  38                  sprintf(
  39                      wp_kses(
  40                          /* translators: %s: Post title. Only visible to screen readers. */
  41                          __( 'Edit <span class="screen-reader-text">%s</span>', 'twentynineteen' ),
  42                          array(
  43                              'span' => array(
  44                                  'class' => array(),
  45                              ),
  46                          )
  47                      ),
  48                      get_the_title()
  49                  ),
  50                  '<span class="edit-link">' . twentynineteen_get_icon_svg( 'edit', 16 ),
  51                  '</span>'
  52              );
  53              ?>
  54          </footer><!-- .entry-footer -->
  55      <?php endif; ?>
  56  </article><!-- #post-<?php the_ID(); ?> -->


Generated: Wed Dec 25 01:00:02 2024 Cross-referenced by PHPXref 0.7.1