The Twenty Twelve for WordPress.
props drewstrojny, lancewillett.
also props corvannoorloos, jeffsebring, kobenland, iandstewart, mfields,
mtdesign, op12no2, philiparthurmoore, sixhours, mamaduka.
see #19978.
git-svn-id: http://core.svn.wordpress.org/trunk@21261 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-12 00:20:46 -04:00
|
|
|
<?php
|
|
|
|
/**
|
2013-09-20 15:24:09 -04:00
|
|
|
* The template for displaying Author Archive pages
|
The Twenty Twelve for WordPress.
props drewstrojny, lancewillett.
also props corvannoorloos, jeffsebring, kobenland, iandstewart, mfields,
mtdesign, op12no2, philiparthurmoore, sixhours, mamaduka.
see #19978.
git-svn-id: http://core.svn.wordpress.org/trunk@21261 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-12 00:20:46 -04:00
|
|
|
*
|
2012-09-27 03:01:16 -04:00
|
|
|
* Used to display archive-type pages for posts by an author.
|
|
|
|
*
|
2019-01-09 00:09:51 -05:00
|
|
|
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
|
2012-09-27 03:01:16 -04:00
|
|
|
*
|
The Twenty Twelve for WordPress.
props drewstrojny, lancewillett.
also props corvannoorloos, jeffsebring, kobenland, iandstewart, mfields,
mtdesign, op12no2, philiparthurmoore, sixhours, mamaduka.
see #19978.
git-svn-id: http://core.svn.wordpress.org/trunk@21261 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-12 00:20:46 -04:00
|
|
|
* @package WordPress
|
|
|
|
* @subpackage Twenty_Twelve
|
|
|
|
* @since Twenty Twelve 1.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
get_header(); ?>
|
|
|
|
|
2012-08-02 15:12:11 -04:00
|
|
|
<section id="primary" class="site-content">
|
The Twenty Twelve for WordPress.
props drewstrojny, lancewillett.
also props corvannoorloos, jeffsebring, kobenland, iandstewart, mfields,
mtdesign, op12no2, philiparthurmoore, sixhours, mamaduka.
see #19978.
git-svn-id: http://core.svn.wordpress.org/trunk@21261 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-12 00:20:46 -04:00
|
|
|
<div id="content" role="main">
|
|
|
|
|
|
|
|
<?php if ( have_posts() ) : ?>
|
|
|
|
|
|
|
|
<?php
|
2020-01-28 19:45:18 -05:00
|
|
|
/*
|
|
|
|
* Queue the first post, that way we know
|
The Twenty Twelve for WordPress.
props drewstrojny, lancewillett.
also props corvannoorloos, jeffsebring, kobenland, iandstewart, mfields,
mtdesign, op12no2, philiparthurmoore, sixhours, mamaduka.
see #19978.
git-svn-id: http://core.svn.wordpress.org/trunk@21261 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-12 00:20:46 -04:00
|
|
|
* what author we're dealing with (if that is the case).
|
|
|
|
*
|
|
|
|
* We reset this later so we can run the loop
|
|
|
|
* properly with a call to rewind_posts().
|
|
|
|
*/
|
|
|
|
the_post();
|
|
|
|
?>
|
|
|
|
|
2012-08-06 17:05:02 -04:00
|
|
|
<header class="archive-header">
|
2019-07-08 21:10:00 -04:00
|
|
|
<h1 class="archive-title">
|
|
|
|
<?php
|
2019-09-02 20:41:05 -04:00
|
|
|
/* translators: Author display name. */
|
2022-12-01 17:06:13 -05:00
|
|
|
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' ) ) ) . '" rel="me">' . get_the_author() . '</a></span>' );
|
2019-07-08 21:10:00 -04:00
|
|
|
?>
|
|
|
|
</h1>
|
2012-08-25 13:16:56 -04:00
|
|
|
</header><!-- .archive-header -->
|
The Twenty Twelve for WordPress.
props drewstrojny, lancewillett.
also props corvannoorloos, jeffsebring, kobenland, iandstewart, mfields,
mtdesign, op12no2, philiparthurmoore, sixhours, mamaduka.
see #19978.
git-svn-id: http://core.svn.wordpress.org/trunk@21261 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-12 00:20:46 -04:00
|
|
|
|
|
|
|
<?php
|
2020-01-28 19:45:18 -05:00
|
|
|
/*
|
|
|
|
* Since we called the_post() above, we need
|
|
|
|
* to rewind the loop back to the beginning.
|
|
|
|
* That way we can run the loop properly, in full.
|
The Twenty Twelve for WordPress.
props drewstrojny, lancewillett.
also props corvannoorloos, jeffsebring, kobenland, iandstewart, mfields,
mtdesign, op12no2, philiparthurmoore, sixhours, mamaduka.
see #19978.
git-svn-id: http://core.svn.wordpress.org/trunk@21261 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-12 00:20:46 -04:00
|
|
|
*/
|
|
|
|
rewind_posts();
|
|
|
|
?>
|
|
|
|
|
|
|
|
<?php twentytwelve_content_nav( 'nav-above' ); ?>
|
|
|
|
|
|
|
|
<?php
|
|
|
|
// If a user has filled out their description, show a bio on their entries.
|
2017-11-30 18:11:00 -05:00
|
|
|
if ( get_the_author_meta( 'description' ) ) :
|
2018-08-16 21:51:36 -04:00
|
|
|
?>
|
2012-09-21 12:39:38 -04:00
|
|
|
<div class="author-info">
|
|
|
|
<div class="author-avatar">
|
2013-09-20 15:24:09 -04:00
|
|
|
<?php
|
2013-10-24 18:59:20 -04:00
|
|
|
/**
|
2020-08-10 20:34:08 -04:00
|
|
|
* Filters the author bio avatar size.
|
2013-10-24 18:59:20 -04:00
|
|
|
*
|
|
|
|
* @since Twenty Twelve 1.0
|
|
|
|
*
|
|
|
|
* @param int $size The height and width of the avatar in pixels.
|
|
|
|
*/
|
2013-09-20 15:24:09 -04:00
|
|
|
$author_bio_avatar_size = apply_filters( 'twentytwelve_author_bio_avatar_size', 68 );
|
|
|
|
echo get_avatar( get_the_author_meta( 'user_email' ), $author_bio_avatar_size );
|
|
|
|
?>
|
2012-09-21 12:39:38 -04:00
|
|
|
</div><!-- .author-avatar -->
|
|
|
|
<div class="author-description">
|
2019-07-08 21:10:00 -04:00
|
|
|
<h2>
|
|
|
|
<?php
|
2019-09-02 20:41:05 -04:00
|
|
|
/* translators: Author display name. */
|
2019-07-08 21:10:00 -04:00
|
|
|
printf( __( 'About %s', 'twentytwelve' ), get_the_author() );
|
|
|
|
?>
|
|
|
|
</h2>
|
The Twenty Twelve for WordPress.
props drewstrojny, lancewillett.
also props corvannoorloos, jeffsebring, kobenland, iandstewart, mfields,
mtdesign, op12no2, philiparthurmoore, sixhours, mamaduka.
see #19978.
git-svn-id: http://core.svn.wordpress.org/trunk@21261 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-12 00:20:46 -04:00
|
|
|
<p><?php the_author_meta( 'description' ); ?></p>
|
2012-09-21 12:39:38 -04:00
|
|
|
</div><!-- .author-description -->
|
|
|
|
</div><!-- .author-info -->
|
The Twenty Twelve for WordPress.
props drewstrojny, lancewillett.
also props corvannoorloos, jeffsebring, kobenland, iandstewart, mfields,
mtdesign, op12no2, philiparthurmoore, sixhours, mamaduka.
see #19978.
git-svn-id: http://core.svn.wordpress.org/trunk@21261 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-12 00:20:46 -04:00
|
|
|
<?php endif; ?>
|
|
|
|
|
2017-11-30 18:11:00 -05:00
|
|
|
<?php
|
2020-01-28 19:45:18 -05:00
|
|
|
// Start the Loop.
|
2017-11-30 18:11:00 -05:00
|
|
|
while ( have_posts() ) :
|
|
|
|
the_post();
|
2018-08-16 21:51:36 -04:00
|
|
|
?>
|
The Twenty Twelve for WordPress.
props drewstrojny, lancewillett.
also props corvannoorloos, jeffsebring, kobenland, iandstewart, mfields,
mtdesign, op12no2, philiparthurmoore, sixhours, mamaduka.
see #19978.
git-svn-id: http://core.svn.wordpress.org/trunk@21261 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-12 00:20:46 -04:00
|
|
|
<?php get_template_part( 'content', get_post_format() ); ?>
|
|
|
|
<?php endwhile; ?>
|
|
|
|
|
|
|
|
<?php twentytwelve_content_nav( 'nav-below' ); ?>
|
|
|
|
|
|
|
|
<?php else : ?>
|
|
|
|
<?php get_template_part( 'content', 'none' ); ?>
|
|
|
|
<?php endif; ?>
|
|
|
|
|
|
|
|
</div><!-- #content -->
|
2012-08-25 13:16:56 -04:00
|
|
|
</section><!-- #primary -->
|
The Twenty Twelve for WordPress.
props drewstrojny, lancewillett.
also props corvannoorloos, jeffsebring, kobenland, iandstewart, mfields,
mtdesign, op12no2, philiparthurmoore, sixhours, mamaduka.
see #19978.
git-svn-id: http://core.svn.wordpress.org/trunk@21261 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-12 00:20:46 -04:00
|
|
|
|
|
|
|
<?php get_sidebar(); ?>
|
2015-04-12 17:29:32 -04:00
|
|
|
<?php get_footer(); ?>
|