[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

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

   1  <?php
   2  /**
   3   * The template used for displaying page content
   4   *
   5   * @package WordPress
   6   * @subpackage Twenty_Sixteen
   7   * @since Twenty Sixteen 1.0
   8   */
   9  ?>
  10  
  11  <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  12      <header class="entry-header">
  13          <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
  14      </header><!-- .entry-header -->
  15  
  16      <?php twentysixteen_post_thumbnail(); ?>
  17  
  18      <div class="entry-content">
  19          <?php
  20          the_content();
  21  
  22          wp_link_pages(
  23              array(
  24                  'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentysixteen' ) . '</span>',
  25                  'after'       => '</div>',
  26                  'link_before' => '<span>',
  27                  'link_after'  => '</span>',
  28                  'pagelink'    => '<span class="screen-reader-text">' . __( 'Page', 'twentysixteen' ) . ' </span>%',
  29                  'separator'   => '<span class="screen-reader-text">, </span>',
  30              )
  31          );
  32          ?>
  33      </div><!-- .entry-content -->
  34  
  35      <?php
  36          edit_post_link(
  37              sprintf(
  38                  /* translators: %s: Post title. */
  39                  __( 'Edit<span class="screen-reader-text"> "%s"</span>', 'twentysixteen' ),
  40                  get_the_title()
  41              ),
  42              '<footer class="entry-footer"><span class="edit-link">',
  43              '</span></footer><!-- .entry-footer -->'
  44          );
  45          ?>
  46  
  47  </article><!-- #post-<?php the_ID(); ?> -->


Generated: Fri Sep 25 01:00:03 2020 Cross-referenced by PHPXref 0.7.1