3 * The default template for displaying content
6 * @subpackage Twenty_Eleven
7 * @since Twenty Eleven 1.0
11 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
12 <header class="entry-header">
13 <?php if ( is_sticky() ) : ?>
15 <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>
16 <h3 class="entry-format"><?php _e( 'Featured', 'twentyeleven' ); ?></h3>
19 <h1 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></h1>
22 <?php if ( 'post' == get_post_type() ) : ?>
23 <div class="entry-meta">
24 <?php twentyeleven_posted_on(); ?>
25 </div><!-- .entry-meta -->
28 <?php if ( comments_open() && ! post_password_required() ) : ?>
29 <div class="comments-link">
30 <?php comments_popup_link( '<span class="leave-reply">' . __( 'Reply', 'twentyeleven' ) . '</span>', _x( '1', 'comments number', 'twentyeleven' ), _x( '%', 'comments number', 'twentyeleven' ) ); ?>
33 </header><!-- .entry-header -->
35 <?php if ( is_search() ) : // Only display Excerpts for Search ?>
36 <div class="entry-summary">
37 <?php the_excerpt(); ?>
38 </div><!-- .entry-summary -->
40 <div class="entry-content">
41 <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyeleven' ) ); ?>
42 <?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?>
43 </div><!-- .entry-content -->
46 <footer class="entry-meta">
47 <?php $show_sep = false; ?>
48 <?php if ( is_object_in_taxonomy( get_post_type(), 'category' ) ) : // Hide category text when not supported ?>
50 /* translators: used between list items, there is a space after the comma */
51 $categories_list = get_the_category_list( __( ', ', 'twentyeleven' ) );
52 if ( $categories_list ):
54 <span class="cat-links">
55 <?php printf( __( '<span class="%1$s">Posted in</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-cat-links', $categories_list );
58 <?php endif; // End if categories ?>
59 <?php endif; // End if is_object_in_taxonomy( get_post_type(), 'category' ) ?>
60 <?php if ( is_object_in_taxonomy( get_post_type(), 'post_tag' ) ) : // Hide tag text when not supported ?>
62 /* translators: used between list items, there is a space after the comma */
63 $tags_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) );
66 <span class="sep"> | </span>
67 <?php endif; // End if $show_sep ?>
68 <span class="tag-links">
69 <?php printf( __( '<span class="%1$s">Tagged</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list );
72 <?php endif; // End if $tags_list ?>
73 <?php endif; // End if is_object_in_taxonomy( get_post_type(), 'post_tag' ) ?>
75 <?php if ( comments_open() ) : ?>
76 <?php if ( $show_sep ) : ?>
77 <span class="sep"> | </span>
78 <?php endif; // End if $show_sep ?>
79 <span class="comments-link"><?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentyeleven' ) . '</span>', __( '<b>1</b> Reply', 'twentyeleven' ), __( '<b>%</b> Replies', 'twentyeleven' ) ); ?></span>
80 <?php endif; // End if comments_open() ?>
82 <?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?>
83 </footer><!-- .entry-meta -->
84 </article><!-- #post-<?php the_ID(); ?> -->