author-bio.php 1004 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /**
  3. * The template for displaying Author Bio
  4. *
  5. * @package Canard
  6. */
  7. ?>
  8. <div class="author-info">
  9. <div class="author-avatar">
  10. <?php
  11. /**
  12. * Filter the author bio avatar size.
  13. *
  14. * @param int $size The avatar height and width size in pixels.
  15. */
  16. $author_bio_avatar_size = apply_filters( 'canard_author_bio_avatar_size', 60 );
  17. echo get_avatar( get_the_author_meta( 'user_email' ), $author_bio_avatar_size );
  18. ?>
  19. </div><!-- .author-avatar -->
  20. <div class="author-heading">
  21. <h2 class="author-title"><?php _e( 'Published by', 'canard' ); ?></h2>
  22. <h3 class="author-name"><?php echo get_the_author(); ?></h3>
  23. </div><!-- .author-heading -->
  24. <p class="author-bio">
  25. <?php the_author_meta( 'description' ); ?>
  26. <a class="author-link" href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author">
  27. <?php printf( __( 'View all posts by %s', 'canard' ), get_the_author() ); ?>
  28. </a>
  29. </p><!-- .author-bio -->
  30. </div><!-- .author-info -->