[ XREF Home ] [ Index ]

PHP Cross Reference of WordPress Trunk

Provided by Yoast

title

Body

[close]

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

   1  <?php
   2  /**
   3   * The template for displaying content featured in the showcase.php page template
   4   *
   5   * @package WordPress
   6   * @subpackage Twenty_Eleven
   7   * @since Twenty Eleven 1.0
   8   */
   9  
  10  global $feature_class;
  11  ?>
  12  <article id="post-<?php the_ID(); ?>" <?php post_class( $feature_class ); ?>>
  13      <header class="entry-header">
  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  
  16          <div class="entry-meta">
  17              <?php
  18                  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' ),
  19                      get_permalink(),
  20                      get_the_date( 'c' ),
  21                      get_the_date(),
  22                      get_author_posts_url( get_the_author_meta( 'ID' ) ),
  23                      sprintf( esc_attr__( 'View all posts by %s', 'twentyeleven' ), get_the_author() ),
  24                      get_the_author()
  25                  );
  26              ?>
  27          </div><!-- .entry-meta -->
  28      </header><!-- .entry-header -->
  29  
  30      <div class="entry-summary">
  31          <?php the_excerpt(); ?>
  32          <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyeleven' ), 'after' => '</div>' ) ); ?>
  33      </div><!-- .entry-content -->
  34  
  35      <footer class="entry-meta">
  36          <?php
  37              /* translators: used between list items, there is a space after the comma */
  38              $tag_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) );
  39              if ( '' != $tag_list ) {
  40                  $utility_text = __( 'This entry was posted in %1$s and tagged %2$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyeleven' );
  41              } else {
  42                  $utility_text = __( 'This entry was posted in %1$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyeleven' );
  43              }
  44              printf(
  45                  $utility_text,
  46                  /* translators: used between list items, there is a space after the comma */
  47                  get_the_category_list( __( ', ', 'twentyeleven' ) ),
  48                  $tag_list,
  49                  get_permalink(),
  50                  the_title_attribute( 'echo=0' )
  51              );
  52          ?>
  53  
  54          <?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?>
  55      </footer><!-- .entry-meta -->
  56  </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