Wordpress 3.5
[autoinstalls/wordpress.git] / wp-content / themes / twentyeleven / content-featured.php
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                 <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ) ); ?>" 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 wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?>
24         </div><!-- .entry-content -->
25
26         <footer class="entry-meta">
27                 <?php
28                         /* translators: used between list items, there is a space after the comma */
29                         $tag_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) );
30                         if ( '' != $tag_list ) {
31                                 $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' );
32                         } else {
33                                 $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' );
34                         }
35                         printf(
36                                 $utility_text,
37                                 /* translators: used between list items, there is a space after the comma */
38                                 get_the_category_list( __( ', ', 'twentyeleven' ) ),
39                                 $tag_list,
40                                 esc_url( get_permalink() ),
41                                 the_title_attribute( 'echo=0' )
42                         );
43                 ?>
44
45                 <?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?>
46         </footer><!-- .entry-meta -->
47 </article><!-- #post-<?php the_ID(); ?> -->