biography.php 1.1 KB

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