3 * The template for displaying Author Archive pages.
5 * Used to display archive-type pages for posts by an author.
7 * Learn more: http://codex.wordpress.org/Template_Hierarchy
10 * @subpackage Twenty_Twelve
11 * @since Twenty Twelve 1.0
16 <section id="primary" class="site-content">
17 <div id="content" role="main">
19 <?php if ( have_posts() ) : ?>
22 /* Queue the first post, that way we know
23 * what author we're dealing with (if that is the case).
25 * We reset this later so we can run the loop
26 * properly with a call to rewind_posts().
31 <header class="archive-header">
32 <h1 class="archive-title"><?php printf( __( 'Author Archives: %s', 'twentytwelve' ), '<span class="vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( "ID" ) ) ) . '" title="' . esc_attr( get_the_author() ) . '" rel="me">' . get_the_author() . '</a></span>' ); ?></h1>
33 </header><!-- .archive-header -->
36 /* Since we called the_post() above, we need to
37 * rewind the loop back to the beginning that way
38 * we can run the loop properly, in full.
43 <?php twentytwelve_content_nav( 'nav-above' ); ?>
46 // If a user has filled out their description, show a bio on their entries.
47 if ( get_the_author_meta( 'description' ) ) : ?>
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', 60 ) ); ?>
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><!-- .author-description -->
56 </div><!-- .author-info -->
59 <?php /* Start the Loop */ ?>
60 <?php while ( have_posts() ) : the_post(); ?>
61 <?php get_template_part( 'content', get_post_format() ); ?>
64 <?php twentytwelve_content_nav( 'nav-below' ); ?>
67 <?php get_template_part( 'content', 'none' ); ?>
70 </div><!-- #content -->
71 </section><!-- #primary -->
73 <?php get_sidebar(); ?>
74 <?php get_footer(); ?>