author-bio.php 1012 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /**
  3. * The template part for displaying an Author biography
  4. *
  5. * @package Scratchpad
  6. */
  7. ?>
  8. <div class="author-info clear">
  9. <div class="author-avatar">
  10. <?php echo get_avatar( get_the_author_meta( 'user_email' ), 100 ); ?>
  11. </div><!-- .author-avatar -->
  12. <div class="author-description">
  13. <h2 class="author-title">
  14. <span class="author-heading"><?php esc_html_e( 'Author:', 'scratchpad' ); ?></span>
  15. <a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author"><?php echo get_the_author(); ?></a>
  16. </h2>
  17. <p class="author-bio">
  18. <?php the_author_meta( 'description' ); ?>
  19. <a class="author-link" href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author">
  20. <?php esc_html_e( 'View All Posts', 'scratchpad' ); ?>
  21. <?php //printf( esc_html__( 'View all posts by %s', 'scratchpad' ), get_the_author() ); ?>
  22. </a>
  23. </p><!-- .author-bio -->
  24. </div><!-- .author-description -->
  25. </div><!-- .author-info -->