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


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