2010-03-30 00:03:15 +02:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* The template used to display Author Archive pages
|
|
|
|
*
|
|
|
|
* @package WordPress
|
|
|
|
* @subpackage Twenty Ten
|
|
|
|
* @since 3.0.0
|
|
|
|
*/
|
|
|
|
?>
|
|
|
|
|
2010-02-07 17:16:26 +01:00
|
|
|
<?php get_header(); ?>
|
2010-02-08 19:02:23 +01:00
|
|
|
|
|
|
|
<div id="container">
|
2010-05-10 23:10:12 +02:00
|
|
|
<div id="content" role="main">
|
2010-02-08 19:02:23 +01:00
|
|
|
|
|
|
|
<?php the_post(); ?>
|
|
|
|
|
2010-05-10 07:28:01 +02:00
|
|
|
<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>
|
2010-02-07 17:16:26 +01:00
|
|
|
|
2010-05-03 21:28:44 +02:00
|
|
|
<?php if ( get_the_author_meta( 'description' ) ) : // If a user has filled out their description, show a bio on their entries ?>
|
2010-02-07 17:16:26 +01:00
|
|
|
<div id="entry-author-info">
|
|
|
|
<div id="author-avatar">
|
2010-03-16 21:17:22 +01:00
|
|
|
<?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentyten_author_bio_avatar_size', 60 ) ); ?>
|
2010-02-08 19:02:23 +01:00
|
|
|
</div><!-- #author-avatar -->
|
2010-02-07 17:16:26 +01:00
|
|
|
<div id="author-description">
|
2010-03-16 21:17:22 +01:00
|
|
|
<h2><?php printf( __( 'About %s', 'twentyten' ), get_the_author() ); ?></h2>
|
|
|
|
<?php the_author_meta( 'description' ); ?>
|
2010-02-07 17:16:26 +01:00
|
|
|
</div><!-- #author-description -->
|
|
|
|
</div><!-- .entry-author-info -->
|
|
|
|
<?php endif; ?>
|
|
|
|
|
|
|
|
<?php rewind_posts(); ?>
|
2010-02-08 19:02:23 +01:00
|
|
|
|
2010-03-25 23:04:27 +01:00
|
|
|
<?php
|
|
|
|
/* Run the loop for the author archive page to output the authors posts
|
|
|
|
* If you want to overload this in a child theme then include a file
|
|
|
|
* called loop-author.php and that will be used instead.
|
|
|
|
*/
|
|
|
|
get_template_part( 'loop', 'author' );
|
|
|
|
?>
|
2010-02-08 19:02:23 +01:00
|
|
|
</div><!-- #content -->
|
2010-02-07 17:16:26 +01:00
|
|
|
</div><!-- #container -->
|
2010-02-08 19:02:23 +01:00
|
|
|
|
|
|
|
<?php get_sidebar(); ?>
|
2010-03-16 21:17:22 +01:00
|
|
|
<?php get_footer(); ?>
|