author.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. /**
  3. * The template used to display Author Archive pages
  4. *
  5. * @package WordPress
  6. * @subpackage Twenty Ten
  7. * @since 3.0.0
  8. */
  9. ?>
  10. <?php get_header(); ?>
  11. <div id="container">
  12. <div id="content">
  13. <?php the_post(); ?>
  14. <h1 class="page-title author"><?php printf( __( 'Author Archives: <span class="vcard">%s</span>', 'twentyten' ), "<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>" ); ?></h1>
  15. <?php if ( get_the_author_meta( 'description' ) ) : // If a user has filled out their decscription show a bio on their entries ?>
  16. <div id="entry-author-info">
  17. <div id="author-avatar">
  18. <?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentyten_author_bio_avatar_size', 60 ) ); ?>
  19. </div><!-- #author-avatar -->
  20. <div id="author-description">
  21. <h2><?php printf( __( 'About %s', 'twentyten' ), get_the_author() ); ?></h2>
  22. <?php the_author_meta( 'description' ); ?>
  23. </div><!-- #author-description -->
  24. </div><!-- .entry-author-info -->
  25. <?php endif; ?>
  26. <?php rewind_posts(); ?>
  27. <?php
  28. /* Run the loop for the author archive page to output the authors posts
  29. * If you want to overload this in a child theme then include a file
  30. * called loop-author.php and that will be used instead.
  31. */
  32. get_template_part( 'loop', 'author' );
  33. ?>
  34. </div><!-- #content -->
  35. </div><!-- #container -->
  36. <?php get_sidebar(); ?>
  37. <?php get_footer(); ?>