[ Index ]

PHP Cross Reference of WordPress

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                      'pagelink'    => '<span class="screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>%',
  44                      'separator'   => '<span class="screen-reader-text">, </span>',
  45                  )
  46              );
  47              ?>
  48      </div>
  49      <!-- .entry-content -->
  50  
  51      <?php
  52      // Author bio.
  53      if ( is_single() && get_the_author_meta( 'description' ) ) :
  54          get_template_part( 'author-bio' );
  55          endif;
  56      ?>
  57  
  58      <footer class="entry-footer">
  59          <?php twentyfifteen_entry_meta(); ?>
  60          <?php edit_post_link( __( 'Edit', 'twentyfifteen' ), '<span class="edit-link">', '</span>' ); ?>
  61      </footer>
  62      <!-- .entry-footer -->
  63  
  64  </article><!-- #post-<?php the_ID(); ?> -->


Generated: Sun Dec 22 01:00:02 2024 Cross-referenced by PHPXref 0.7.1