[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

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  
  12  <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  13      <header class="entry-header">
  14          <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
  15      </header><!-- .entry-header -->
  16  
  17      <?php twentysixteen_post_thumbnail(); ?>
  18  
  19      <div class="entry-content">
  20          <?php
  21          the_content();
  22  
  23          wp_link_pages(
  24              array(
  25                  'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentysixteen' ) . '</span>',
  26                  'after'       => '</div>',
  27                  'link_before' => '<span>',
  28                  'link_after'  => '</span>',
  29                  /* translators: Hidden accessibility text. */
  30                  'pagelink'    => '<span class="screen-reader-text">' . __( 'Page', 'twentysixteen' ) . ' </span>%',
  31                  'separator'   => '<span class="screen-reader-text">, </span>',
  32              )
  33          );
  34          ?>
  35      </div><!-- .entry-content -->
  36  
  37      <?php
  38          edit_post_link(
  39              sprintf(
  40                  /* translators: %s: Post title. Only visible to screen readers. */
  41                  __( 'Edit<span class="screen-reader-text"> "%s"</span>', 'twentysixteen' ),
  42                  get_the_title()
  43              ),
  44              '<footer class="entry-footer"><span class="edit-link">',
  45              '</span></footer><!-- .entry-footer -->'
  46          );
  47          ?>
  48  
  49  </article><!-- #post-<?php the_ID(); ?> -->


Generated : Sat Dec 21 08:20:01 2024 Cross-referenced by PHPXref