[ XREF Home ] [ Index ]

PHP Cross Reference of WordPress Trunk

Provided by Yoast

title

Body

[close]

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

   1  <?php
   2  /**
   3   * The default 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                  <h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
  15                  <h2 class="entry-format"><?php _e( 'Quote', 'twentyeleven' ); ?></h2>
  16              </hgroup>
  17  
  18              <?php if ( 'post' == $post->post_type ) : ?>
  19              <div class="entry-meta">
  20                  <?php
  21                      printf( __( '<span class="sep">Posted on </span><a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s" pubdate>%3$s</time></a> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%4$s" title="%5$s">%6$s</a></span>', 'twentyeleven' ),
  22                          get_permalink(),
  23                          get_the_date( 'c' ),
  24                          get_the_date(),
  25                          get_author_posts_url( get_the_author_meta( 'ID' ) ),
  26                          sprintf( esc_attr__( 'View all posts by %s', 'twentyeleven' ), get_the_author() ),
  27                          get_the_author()
  28                      );
  29                  ?>
  30              </div><!-- .entry-meta -->
  31              <?php endif; ?>
  32  
  33              <?php if ( comments_open() ) : ?>
  34              <div class="comments-link">
  35                  <?php comments_popup_link( __( '<span class="leave-reply">Reply</span>', 'twentyeleven' ), __( '1', 'twentyeleven' ), __( '%', 'twentyeleven' ) ); ?>
  36              </div>
  37              <?php endif; ?>
  38          </header><!-- .entry-header -->
  39  
  40          <?php if ( is_search() ) : // Only display Excerpts for Search ?>
  41          <div class="entry-summary">
  42              <?php the_excerpt(); ?>
  43          </div><!-- .entry-summary -->
  44          <?php else : ?>
  45          <div class="entry-content">
  46              <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyeleven' ) ); ?>
  47              <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( '<span>Pages:</span>', 'twentyeleven' ), 'after' => '</div>' ) ); ?>
  48          </div><!-- .entry-content -->
  49          <?php endif; ?>
  50  
  51          <footer class="entry-meta">
  52              <?php if ( 'post' == $post->post_type ) : // Hide category and tag text for pages on Search ?>
  53              <?php
  54                  /* translators: used between list items, there is a space after the comma */
  55                  $categories_list = get_the_category_list( __( ', ', 'twentyeleven' ) );
  56                  if ( $categories_list ):
  57              ?>
  58              <span class="cat-links">
  59                  <?php 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              </span>
  62              <?php endif; // End if categories ?>
  63              <?php
  64                  /* translators: used between list items, there is a space after the comma */
  65                  $tags_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) );
  66                  if ( $tags_list ):
  67                  if ( $show_sep ) : ?>
  68              <span class="sep"> | </span>
  69                  <?php endif; // End if $show_sep ?>
  70              <span class="tag-links">
  71                  <?php printf( __( '<span class="%1$s">Tagged</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list );
  72                  $show_sep = true; ?>
  73              </span>
  74              <?php endif; // End if $tags_list ?>
  75              <?php endif; // End if 'post' == $post->post_type ?>
  76  
  77              <?php if ( comments_open() ) : ?>
  78              <?php if ( $show_sep ) : ?>
  79              <span class="sep"> | </span>
  80              <?php endif; // End if $show_sep ?>
  81              <span class="comments-link"><?php comments_popup_link( __( '<span class="leave-reply">Leave a reply</span>', 'twentyeleven' ), __( '<b>1</b> Reply', 'twentyeleven' ), __( '<b>%</b> Replies', 'twentyeleven' ) ); ?></span>
  82              <?php endif; // End if comments_open() ?>
  83  
  84              <?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?>
  85          </footer><!-- #entry-meta -->
  86      </article><!-- #post-<?php the_ID(); ?> -->


Generated: Wed Jun 1 08:30:02 2011 Cross-referenced by PHPXref 0.7
Provided by Yoast and awesome WordPress Hosting