author-bio.php 870 B

123456789101112131415161718192021222324252627282930313233
  1. <?php declare( strict_types = 1 ); ?>
  2. <?php
  3. /**
  4. * The template for displaying Author info
  5. *
  6. * @package Seedlet
  7. */
  8. if ( (bool) get_the_author_meta( 'description' ) ) : ?>
  9. <div class="entry-author">
  10. <div class="author-heading">
  11. <h2 class="author-title">
  12. <?php esc_html_e( 'Published by', 'seedlet' ); ?>
  13. <span class="author-name">
  14. <?php
  15. printf(
  16. /* post author */
  17. esc_html( get_the_author() )
  18. );
  19. ?>
  20. </span><!-- .author-name -->
  21. </h2>
  22. </div><!-- .author-heading -->
  23. <p class="author-bio">
  24. <?php the_author_meta( 'description' ); ?>
  25. <a class="author-link" href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author">
  26. <?php printf( esc_html__( 'View all posts by %s', 'seedlet' ), get_the_author() ); ?>
  27. </a>
  28. </p><!-- .author-bio -->
  29. </div><!-- .entry-author -->
  30. <?php endif; ?>