[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

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

   1  <?php
   2  /**
   3   * Template for displaying content
   4   *
   5   * @package WordPress
   6   * @subpackage Twenty_Eleven
   7   * @since Twenty Eleven 1.0
   8   */
   9  ?>
  10  
  11      <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  12          <header class="entry-header">
  13              <hgroup>
  14                  <h2 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
  15                  <h3 class="entry-format"><?php _e( 'Quote', 'twentyeleven' ); ?></h3>
  16              </hgroup>
  17  
  18              <div class="entry-meta">
  19                  <?php twentyeleven_posted_on(); ?>
  20              </div><!-- .entry-meta -->
  21  
  22              <?php if ( comments_open() && ! post_password_required() ) : ?>
  23              <div class="comments-link">
  24                  <?php comments_popup_link( '<span class="leave-reply">' . __( 'Reply', 'twentyeleven' ) . '</span>', _x( '1', 'comments number', 'twentyeleven' ), _x( '%', 'comments number', 'twentyeleven' ) ); ?>
  25              </div>
  26              <?php endif; ?>
  27          </header><!-- .entry-header -->
  28  
  29          <?php if ( is_search() ) : // Only display excerpts for search. ?>
  30          <div class="entry-summary">
  31              <?php the_excerpt(); ?>
  32          </div><!-- .entry-summary -->
  33          <?php else : ?>
  34          <div class="entry-content">
  35              <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyeleven' ) ); ?>
  36              <?php
  37              wp_link_pages(
  38                  array(
  39                      'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>',
  40                      'after'  => '</div>',
  41                  )
  42              );
  43              ?>
  44          </div><!-- .entry-content -->
  45          <?php endif; ?>
  46  
  47          <footer class="entry-meta">
  48              <?php $show_sep = false; ?>
  49  
  50              <?php
  51              /* translators: Used between list items, there is a space after the comma. */
  52              $categories_list = get_the_category_list( __( ', ', 'twentyeleven' ) );
  53  
  54              if ( $categories_list ) :
  55                  ?>
  56              <span class="cat-links">
  57                  <?php
  58                  /* translators: 1: CSS classes, 2: List of categories. */
  59                  printf( __( '<span class="%1$s">Posted in</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-cat-links', $categories_list );
  60                  $show_sep = true;
  61                  ?>
  62              </span>
  63              <?php endif; // End if categories. ?>
  64  
  65              <?php
  66              /* translators: Used between list items, there is a space after the comma. */
  67              $tags_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) );
  68  
  69              if ( $tags_list && ! is_wp_error( $tags_list ) ) :
  70                  if ( $show_sep ) :
  71                      ?>
  72              <span class="sep"> | </span>
  73                  <?php endif; // End if $show_sep. ?>
  74              <span class="tag-links">
  75                  <?php
  76                  /* translators: 1: CSS classes, 2: List of tags. */
  77                  printf( __( '<span class="%1$s">Tagged</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list );
  78                  $show_sep = true;
  79                  ?>
  80              </span>
  81              <?php endif; // End if $tags_list. ?>
  82  
  83              <?php if ( comments_open() ) : ?>
  84                  <?php if ( $show_sep ) : ?>
  85              <span class="sep"> | </span>
  86              <?php endif; // End if $show_sep. ?>
  87              <span class="comments-link"><?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentyeleven' ) . '</span>', __( '<b>1</b> Reply', 'twentyeleven' ), __( '<b>%</b> Replies', 'twentyeleven' ) ); ?></span>
  88              <?php endif; // End if comments_open(). ?>
  89  
  90              <?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?>
  91          </footer><!-- .entry-meta -->
  92      </article><!-- #post-<?php the_ID(); ?> -->


Generated: Tue Dec 1 01:00:04 2020 Cross-referenced by PHPXref 0.7.1