[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

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

   1  <?php
   2  /**
   3   * The template part for displaying single posts
   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_excerpt(); ?>
  18  
  19      <?php twentysixteen_post_thumbnail(); ?>
  20  
  21      <div class="entry-content">
  22          <?php
  23              the_content();
  24  
  25              wp_link_pages(
  26                  array(
  27                      'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentysixteen' ) . '</span>',
  28                      'after'       => '</div>',
  29                      'link_before' => '<span>',
  30                      'link_after'  => '</span>',
  31                      /* translators: Hidden accessibility text. */
  32                      'pagelink'    => '<span class="screen-reader-text">' . __( 'Page', 'twentysixteen' ) . ' </span>%',
  33                      'separator'   => '<span class="screen-reader-text">, </span>',
  34                  )
  35              );
  36  
  37              if ( '' !== get_the_author_meta( 'description' ) ) {
  38                  get_template_part( 'template-parts/biography' );
  39              }
  40              ?>
  41      </div><!-- .entry-content -->
  42  
  43      <footer class="entry-footer">
  44          <?php twentysixteen_entry_meta(); ?>
  45          <?php
  46              edit_post_link(
  47                  sprintf(
  48                      /* translators: %s: Post title. Only visible to screen readers. */
  49                      __( 'Edit<span class="screen-reader-text"> "%s"</span>', 'twentysixteen' ),
  50                      get_the_title()
  51                  ),
  52                  '<span class="edit-link">',
  53                  '</span>'
  54              );
  55              ?>
  56      </footer><!-- .entry-footer -->
  57  </article><!-- #post-<?php the_ID(); ?> -->


Generated : Thu Nov 21 08:20:01 2024 Cross-referenced by PHPXref