[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

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

   1  <?php
   2  /**
   3   * 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          <h2 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
  15  
  16          <div class="entry-meta">
  17              <?php twentyeleven_posted_on(); ?>
  18          </div><!-- .entry-meta -->
  19      </header><!-- .entry-header -->
  20  
  21      <div class="entry-summary">
  22          <?php the_excerpt(); ?>
  23          <?php
  24          wp_link_pages(
  25              array(
  26                  'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>',
  27                  'after'  => '</div>',
  28              )
  29          );
  30          ?>
  31      </div><!-- .entry-content -->
  32  
  33      <footer class="entry-meta">
  34          <?php
  35          /* translators: Used between list items, there is a space after the comma. */
  36          $tags_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) );
  37  
  38          if ( $tags_list && ! is_wp_error( $tags_list ) ) {
  39              /* translators: 1: Category list, 2: Tag list, 3: Post permalink, 4: Post title. */
  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              /* translators: 1: Category list, 3: Post permalink, 4: Post title. */
  43              $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' );
  44          }
  45  
  46          printf(
  47              $utility_text,
  48              /* translators: Used between list items, there is a space after the comma. */
  49              get_the_category_list( __( ', ', 'twentyeleven' ) ),
  50              $tags_list,
  51              esc_url( get_permalink() ),
  52              the_title_attribute( 'echo=0' )
  53          );
  54          ?>
  55  
  56          <?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?>
  57      </footer><!-- .entry-meta -->
  58  </article><!-- #post-<?php the_ID(); ?> -->


Generated: Sun Nov 29 01:00:04 2020 Cross-referenced by PHPXref 0.7.1