[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

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

   1  <?php
   2  /**
   3   * The template part for displaying 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 if ( is_sticky() && is_home() && ! is_paged() ) : ?>
  14              <span class="sticky-post"><?php _e( 'Featured', 'twentysixteen' ); ?></span>
  15          <?php endif; ?>
  16  
  17          <?php the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>
  18      </header><!-- .entry-header -->
  19  
  20      <?php twentysixteen_excerpt(); ?>
  21  
  22      <?php twentysixteen_post_thumbnail(); ?>
  23  
  24      <div class="entry-content">
  25          <?php
  26              the_content(
  27                  sprintf(
  28                      /* translators: %s: Post title. Only visible to screen readers. */
  29                      __( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'twentysixteen' ),
  30                      get_the_title()
  31                  )
  32              );
  33  
  34              wp_link_pages(
  35                  array(
  36                      'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentysixteen' ) . '</span>',
  37                      'after'       => '</div>',
  38                      'link_before' => '<span>',
  39                      'link_after'  => '</span>',
  40                      /* translators: Hidden accessibility text. */
  41                      'pagelink'    => '<span class="screen-reader-text">' . __( 'Page', 'twentysixteen' ) . ' </span>%',
  42                      'separator'   => '<span class="screen-reader-text">, </span>',
  43                  )
  44              );
  45              ?>
  46      </div><!-- .entry-content -->
  47  
  48      <footer class="entry-footer">
  49          <?php twentysixteen_entry_meta(); ?>
  50          <?php
  51              edit_post_link(
  52                  sprintf(
  53                      /* translators: %s: Post title. Only visible to screen readers. */
  54                      __( 'Edit<span class="screen-reader-text"> "%s"</span>', 'twentysixteen' ),
  55                      get_the_title()
  56                  ),
  57                  '<span class="edit-link">',
  58                  '</span>'
  59              );
  60              ?>
  61      </footer><!-- .entry-footer -->
  62  </article><!-- #post-<?php the_ID(); ?> -->


Generated : Mon Mar 18 08:20:01 2024 Cross-referenced by PHPXref