~canonical-sysadmins/wordpress/4.1.3

« back to all changes in this revision

Viewing changes to wp-content/themes/twentyfifteen/author-bio.php

  • Committer: Nick Moffitt
  • Date: 2015-01-15 11:05:37 UTC
  • mfrom: (1.1.1 wp4-upstream)
  • Revision ID: nick.moffitt@canonical.com-20150115110537-8bp1y42eyg0jsa7c
Tags: 4.1
MergeĀ upstreamĀ versionĀ 4.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
/**
 
3
 * The template for displaying Author bios
 
4
 *
 
5
 * @package WordPress
 
6
 * @subpackage Twenty_Fifteen
 
7
 * @since Twenty Fifteen 1.0
 
8
 */
 
9
?>
 
10
 
 
11
<div class="author-info">
 
12
        <h2 class="author-heading"><?php _e( 'Published by', 'twentyfifteen' ); ?></h2>
 
13
        <div class="author-avatar">
 
14
                <?php
 
15
                /**
 
16
                 * Filter the author bio avatar size.
 
17
                 *
 
18
                 * @since Twenty Fifteen 1.0
 
19
                 *
 
20
                 * @param int $size The avatar height and width size in pixels.
 
21
                 */
 
22
                $author_bio_avatar_size = apply_filters( 'twentyfifteen_author_bio_avatar_size', 56 );
 
23
 
 
24
                echo get_avatar( get_the_author_meta( 'user_email' ), $author_bio_avatar_size );
 
25
                ?>
 
26
        </div><!-- .author-avatar -->
 
27
 
 
28
        <div class="author-description">
 
29
                <h3 class="author-title"><?php echo get_the_author(); ?></h3>
 
30
 
 
31
                <p class="author-bio">
 
32
                        <?php the_author_meta( 'description' ); ?>
 
33
                        <a class="author-link" href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author">
 
34
                                <?php printf( __( 'View all posts by %s', 'twentyfifteen' ), get_the_author() ); ?>
 
35
                        </a>
 
36
                </p><!-- .author-bio -->
 
37
 
 
38
        </div><!-- .author-description -->
 
39
</div><!-- .author-info -->