[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-content/themes/twentyfourteen/ -> content-quote.php (source)

   1  <?php
   2  /**
   3   * The template for displaying posts in the Quote post format
   4   *
   5   * @package WordPress
   6   * @subpackage Twenty_Fourteen
   7   * @since Twenty Fourteen 1.0
   8   */
   9  
  10  ?>
  11  
  12  <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  13      <?php twentyfourteen_post_thumbnail(); ?>
  14  
  15      <header class="entry-header">
  16          <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ), true ) && twentyfourteen_categorized_blog() ) : ?>
  17          <div class="entry-meta">
  18              <span class="cat-links"><?php echo get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen' ) ); ?></span>
  19          </div><!-- .entry-meta -->
  20              <?php
  21              endif;
  22  
  23          if ( is_single() ) :
  24              the_title( '<h1 class="entry-title">', '</h1>' );
  25              else :
  26                  the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' );
  27              endif;
  28              ?>
  29  
  30          <div class="entry-meta">
  31              <span class="post-format">
  32                  <a class="entry-format" href="<?php echo esc_url( get_post_format_link( 'quote' ) ); ?>"><?php echo get_post_format_string( 'quote' ); ?></a>
  33              </span>
  34  
  35              <?php twentyfourteen_posted_on(); ?>
  36  
  37              <?php if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) : ?>
  38              <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyfourteen' ), __( '1 Comment', 'twentyfourteen' ), __( '% Comments', 'twentyfourteen' ) ); ?></span>
  39              <?php endif; ?>
  40  
  41              <?php edit_post_link( __( 'Edit', 'twentyfourteen' ), '<span class="edit-link">', '</span>' ); ?>
  42          </div><!-- .entry-meta -->
  43      </header><!-- .entry-header -->
  44  
  45      <div class="entry-content">
  46          <?php
  47              the_content(
  48                  sprintf(
  49                      /* translators: %s: Post title. Only visible to screen readers. */
  50                      __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ),
  51                      the_title( '<span class="screen-reader-text">', '</span>', false )
  52                  )
  53              );
  54  
  55              wp_link_pages(
  56                  array(
  57                      'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>',
  58                      'after'       => '</div>',
  59                      'link_before' => '<span>',
  60                      'link_after'  => '</span>',
  61                  )
  62              );
  63              ?>
  64      </div><!-- .entry-content -->
  65  
  66      <?php the_tags( '<footer class="entry-meta"><span class="tag-links">', '', '</span></footer>' ); ?>
  67  </article><!-- #post-<?php the_ID(); ?> -->


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