author-bio.php 771 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * The template for displaying Author info
  4. *
  5. * @package WordPress
  6. * @subpackage Varia
  7. * @since 1.0.0
  8. */
  9. if ( (bool) get_the_author_meta( 'description' ) ) : ?>
  10. <div class="author-bio responsive-max-width">
  11. <h2 class="author-title">
  12. <span class="author-heading">
  13. <?php
  14. printf(
  15. /* translators: %s: post author */
  16. __( 'Published by %s', 'varia' ),
  17. esc_html( get_the_author() )
  18. );
  19. ?>
  20. </span>
  21. </h2>
  22. <p class="author-description">
  23. <?php the_author_meta( 'description' ); ?>
  24. <a class="author-link" href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author">
  25. <?php _e( 'View more posts', 'varia' ); ?>
  26. </a>
  27. </p><!-- .author-description -->
  28. </div><!-- .author-bio -->
  29. <?php endif; ?>