3
* The template for displaying Author Archive pages
5
* Used to display archive-type pages for posts by an author.
7
* @link 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">
52
* Filter the author bio avatar size.
54
* @since Twenty Twelve 1.0
56
* @param int $size The height and width of the avatar in pixels.
58
$author_bio_avatar_size = apply_filters( 'twentytwelve_author_bio_avatar_size', 68 );
59
echo get_avatar( get_the_author_meta( 'user_email' ), $author_bio_avatar_size );
61
</div><!-- .author-avatar -->
62
<div class="author-description">
63
<h2><?php printf( __( 'About %s', 'twentytwelve' ), get_the_author() ); ?></h2>
64
<p><?php the_author_meta( 'description' ); ?></p>
65
</div><!-- .author-description -->
66
</div><!-- .author-info -->
69
<?php /* Start the Loop */ ?>
70
<?php while ( have_posts() ) : the_post(); ?>
71
<?php get_template_part( 'content', get_post_format() ); ?>
74
<?php twentytwelve_content_nav( 'nav-below' ); ?>
77
<?php get_template_part( 'content', 'none' ); ?>
80
</div><!-- #content -->
81
</section><!-- #primary -->
83
<?php get_sidebar(); ?>
84
<?php get_footer(); ?>
b'\\ No newline at end of file'