[ XREF Home ] [ Index ]

PHP Cross Reference of WordPress Trunk

Provided by Yoast

title

Body

[close]

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

   1  <?php
   2  /**
   3   * The template for displaying content in the single.php template
   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          <h1 class="entry-title"><?php the_title(); ?></h1>
  14  
  15          <div class="entry-meta">
  16              <?php
  17                  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' ),
  18                      get_permalink(),
  19                      get_the_date( 'c' ),
  20                      get_the_date(),
  21                      get_author_posts_url( get_the_author_meta( 'ID' ) ),
  22                      sprintf( esc_attr__( 'View all posts by %s', 'twentyeleven' ), get_the_author() ),
  23                      get_the_author()
  24                  );
  25              ?>
  26          </div><!-- .entry-meta -->
  27      </header><!-- .entry-header -->
  28  
  29      <div class="entry-content">
  30          <?php the_content(); ?>
  31          <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( '<span>Pages:</span>', 'twentyeleven' ), 'after' => '</div>' ) ); ?>
  32      </div><!-- .entry-content -->
  33  
  34      <footer class="entry-meta">
  35          <?php
  36              /* translators: used between list items, there is a space after the comma */
  37              $tag_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) );
  38              if ( '' != $tag_list ) {
  39                  $utility_text = __( 'This entry was posted in %1$s and tagged %2$s by <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyeleven' );
  40              } else {
  41                  $utility_text = __( 'This entry was posted in %1$s by <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyeleven' );
  42              }
  43              printf(
  44                  $utility_text,
  45                  /* translators: used between list items, there is a space after the comma */
  46                  get_the_category_list( __( ', ', 'twentyeleven' ) ),
  47                  $tag_list,
  48                  get_permalink(),
  49                  the_title_attribute( 'echo=0' ),
  50                  get_the_author(),
  51                  get_author_posts_url( get_the_author_meta( 'ID' ) )
  52              );
  53          ?>
  54          <?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?>
  55  
  56          <?php if ( get_the_author_meta( 'description' ) && is_multi_author() ) : // If a user has filled out their description and this is a multi-author blog, show a bio on their entries ?>
  57          <div id="author-info">
  58              <div id="author-avatar">
  59                  <?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentyeleven_author_bio_avatar_size', 68 ) ); ?>
  60              </div><!-- #author-avatar -->
  61              <div id="author-description">
  62                  <h2><?php printf( esc_attr__( 'About %s', 'twentyeleven' ), get_the_author() ); ?></h2>
  63                  <?php the_author_meta( 'description' ); ?>
  64                  <div id="author-link">
  65                      <a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>">
  66                          <?php printf( __( 'View all posts by %s <span class="meta-nav">&rarr;</span>', 'twentyeleven' ), get_the_author() ); ?>
  67                      </a>
  68                  </div><!-- #author-link    -->
  69              </div><!-- #author-description -->
  70          </div><!-- #entry-author-info -->
  71          <?php endif; ?>
  72      </footer><!-- .entry-meta -->
  73  </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