diff options
| author | Nathan Kinkade <nath@nkinka.de> | 2014-06-16 16:03:41 +0000 |
|---|---|---|
| committer | Nathan Kinkade <nath@nkinka.de> | 2014-06-16 16:03:41 +0000 |
| commit | 07b2ba9ff5fe1cf4bba34de578c29aee85c48b83 (patch) | |
| tree | 3aacb1db21dfd0975813ea0b8a7defff3603e8f2 /author-bio.php | |
Initial commit of Vortant theme based on WordPress twentythirteen stock theme.
Diffstat (limited to 'author-bio.php')
| -rw-r--r-- | author-bio.php | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/author-bio.php b/author-bio.php new file mode 100644 index 0000000..ae2f522 --- /dev/null +++ b/author-bio.php @@ -0,0 +1,34 @@ +<?php +/** + * The template for displaying Author bios + * + * @package WordPress + * @subpackage Twenty_Thirteen + * @since Twenty Thirteen 1.0 + */ +?> + +<div class="author-info"> + <div class="author-avatar"> + <?php + /** + * Filter the author bio avatar size. + * + * @since Twenty Thirteen 1.0 + * + * @param int $size The avatar height and width size in pixels. + */ + $author_bio_avatar_size = apply_filters( 'twentythirteen_author_bio_avatar_size', 74 ); + echo get_avatar( get_the_author_meta( 'user_email' ), $author_bio_avatar_size ); + ?> + </div><!-- .author-avatar --> + <div class="author-description"> + <h2 class="author-title"><?php printf( __( 'About %s', 'twentythirteen' ), get_the_author() ); ?></h2> + <p class="author-bio"> + <?php the_author_meta( 'description' ); ?> + <a class="author-link" href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author"> + <?php printf( __( 'View all posts by %s <span class="meta-nav">→</span>', 'twentythirteen' ), get_the_author() ); ?> + </a> + </p> + </div><!-- .author-description --> +</div><!-- .author-info -->
\ No newline at end of file |
