[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-content/themes/twentyfifteen/ -> content-link.php (source)

   1  <?php
   2  /**
   3   * The template for displaying link post formats
   4   *
   5   * Used for both single and index/archive/search.
   6   *
   7   * @package WordPress
   8   * @subpackage Twenty_Fifteen
   9   * @since Twenty Fifteen 1.0
  10   */
  11  ?>
  12  
  13  <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  14      <?php twentyfifteen_post_thumbnail(); ?>
  15  
  16      <header class="entry-header">
  17          <?php
  18          if ( is_single() ) :
  19              the_title( sprintf( '<h1 class="entry-title"><a href="%s">', esc_url( twentyfifteen_get_link_url() ) ), '</a></h1>' );
  20              else :
  21                  the_title( sprintf( '<h2 class="entry-title"><a href="%s">', esc_url( twentyfifteen_get_link_url() ) ), '</a></h2>' );
  22              endif;
  23              ?>
  24      </header>
  25      <!-- .entry-header -->
  26  
  27      <div class="entry-content">
  28          <?php
  29              the_content(
  30                  sprintf(
  31                      /* translators: %s: Post title. Only visible to screen readers. */
  32                      __( 'Continue reading %s', 'twentyfifteen' ),
  33                      the_title( '<span class="screen-reader-text">', '</span>', false )
  34                  )
  35              );
  36  
  37              wp_link_pages(
  38                  array(
  39                      'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfifteen' ) . '</span>',
  40                      'after'       => '</div>',
  41                      'link_before' => '<span>',
  42                      'link_after'  => '</span>',
  43                      /* translators: Hidden accessibility text. */
  44                      'pagelink'    => '<span class="screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>%',
  45                      'separator'   => '<span class="screen-reader-text">, </span>',
  46                  )
  47              );
  48              ?>
  49      </div>
  50      <!-- .entry-content -->
  51  
  52      <?php
  53      // Author bio.
  54      if ( is_single() && get_the_author_meta( 'description' ) ) :
  55          get_template_part( 'author-bio' );
  56          endif;
  57      ?>
  58  
  59      <footer class="entry-footer">
  60          <?php twentyfifteen_entry_meta(); ?>
  61          <?php edit_post_link( __( 'Edit', 'twentyfifteen' ), '<span class="edit-link">', '</span>' ); ?>
  62      </footer>
  63      <!-- .entry-footer -->
  64  
  65  </article><!-- #post-<?php the_ID(); ?> -->


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