3 * The template for displaying Author Archive pages.
6 * @subpackage Twenty_Ten
7 * @since Twenty Ten 1.0
13 <div id="content" role="main">
16 /* Queue the first post, that way we know who
17 * the author is when we try to get their name,
18 * URL, description, avatar, etc.
20 * We reset this later so we can run the loop
21 * properly with a call to rewind_posts().
27 <h1 class="page-title author"><?php printf( __( 'Author Archives: %s', 'twentyten' ), "<span class='vcard'><a class='url fn n' href='" . get_author_posts_url( get_the_author_meta( 'ID' ) ) . "' title='" . esc_attr( get_the_author() ) . "' rel='me'>" . get_the_author() . "</a></span>" ); ?></h1>
30 // If a user has filled out their description, show a bio on their entries.
31 if ( get_the_author_meta( 'description' ) ) : ?>
32 <div id="entry-author-info">
33 <div id="author-avatar">
34 <?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentyten_author_bio_avatar_size', 60 ) ); ?>
35 </div><!-- #author-avatar -->
36 <div id="author-description">
37 <h2><?php printf( __( 'About %s', 'twentyten' ), get_the_author() ); ?></h2>
38 <?php the_author_meta( 'description' ); ?>
39 </div><!-- #author-description -->
40 </div><!-- #entry-author-info -->
44 /* Since we called the_post() above, we need to
45 * rewind the loop back to the beginning that way
46 * we can run the loop properly, in full.
50 /* Run the loop for the author archive page to output the authors posts
51 * If you want to overload this in a child theme then include a file
52 * called loop-author.php and that will be used instead.
54 get_template_part( 'loop', 'author' );
56 </div><!-- #content -->
57 </div><!-- #container -->
59 <?php get_sidebar(); ?>
60 <?php get_footer(); ?>