3 * The default template for displaying content. Used for both single and index/archive/search.
6 * @subpackage Twenty_Twelve
7 * @since Twenty Twelve 1.0
11 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
12 <?php if ( is_sticky() && is_home() && ! is_paged() ) : ?>
13 <div class="featured-post">
14 <?php _e( 'Featured post', 'twentytwelve' ); ?>
17 <header class="entry-header">
18 <?php the_post_thumbnail(); ?>
19 <?php if ( is_single() ) : ?>
20 <h1 class="entry-title"><?php the_title(); ?></h1>
22 <h1 class="entry-title">
23 <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a>
25 <?php endif; // is_single() ?>
26 <?php if ( comments_open() ) : ?>
27 <div class="comments-link">
28 <?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentytwelve' ) . '</span>', __( '1 Reply', 'twentytwelve' ), __( '% Replies', 'twentytwelve' ) ); ?>
29 </div><!-- .comments-link -->
30 <?php endif; // comments_open() ?>
31 </header><!-- .entry-header -->
33 <?php if ( is_search() ) : // Only display Excerpts for Search ?>
34 <div class="entry-summary">
35 <?php the_excerpt(); ?>
36 </div><!-- .entry-summary -->
38 <div class="entry-content">
39 <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentytwelve' ) ); ?>
40 <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'twentytwelve' ), 'after' => '</div>' ) ); ?>
41 </div><!-- .entry-content -->
44 <footer class="entry-meta">
45 <?php twentytwelve_entry_meta(); ?>
46 <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?>
47 <?php if ( is_singular() && get_the_author_meta( 'description' ) && is_multi_author() ) : // If a user has filled out their description and this is a multi-author blog, show a bio on their entries. ?>
48 <div class="author-info">
49 <div class="author-avatar">
50 <?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentytwelve_author_bio_avatar_size', 68 ) ); ?>
51 </div><!-- .author-avatar -->
52 <div class="author-description">
53 <h2><?php printf( __( 'About %s', 'twentytwelve' ), get_the_author() ); ?></h2>
54 <p><?php the_author_meta( 'description' ); ?></p>
55 <div class="author-link">
56 <a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author">
57 <?php printf( __( 'View all posts by %s <span class="meta-nav">→</span>', 'twentytwelve' ), get_the_author() ); ?>
59 </div><!-- .author-link -->
60 </div><!-- .author-description -->
61 </div><!-- .author-info -->
63 </footer><!-- .entry-meta -->
64 </article><!-- #post -->