[ 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          $tags_list = get_the_tag_list( '', wp_get_list_item_separator() );
  36  
  37          if ( $tags_list && ! is_wp_error( $tags_list ) ) {
  38              /* translators: 1: Category list, 2: Tag list, 3: Post permalink, 4: Post title. */
  39              $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' );
  40          } else {
  41              /* translators: 1: Category list, 3: Post permalink, 4: Post title. */
  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  
  45          printf(
  46              $utility_text,
  47              get_the_category_list( wp_get_list_item_separator() ),
  48              $tags_list,
  49              esc_url( 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: Sat Jul 2 01:00:03 2022 Cross-referenced by PHPXref 0.7.1