[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-content/themes/twentytwenty/template-parts/ -> entry-author-bio.php (source)

   1  <?php
   2  /**
   3   * The template for displaying Author info
   4   *
   5   * @package WordPress
   6   * @subpackage Twenty_Twenty
   7   * @since Twenty Twenty 1.0
   8   */
   9  
  10  if ( (bool) get_the_author_meta( 'description' ) && (bool) get_theme_mod( 'show_author_bio', true ) ) : ?>
  11  <div class="author-bio">
  12      <div class="author-title-wrapper">
  13          <div class="author-avatar vcard">
  14              <?php echo get_avatar( get_the_author_meta( 'ID' ), 160 ); ?>
  15          </div>
  16          <h2 class="author-title heading-size-4">
  17              <?php
  18              printf(
  19                  /* translators: %s: Author name. */
  20                  __( 'By %s', 'twentytwenty' ),
  21                  esc_html( get_the_author() )
  22              );
  23              ?>
  24          </h2>
  25      </div><!-- .author-name -->
  26      <div class="author-description">
  27          <?php echo wp_kses_post( wpautop( get_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 _e( 'View Archive <span aria-hidden="true">&rarr;</span>', 'twentytwenty' ); ?>
  30          </a>
  31      </div><!-- .author-description -->
  32  </div><!-- .author-bio -->
  33  <?php endif; ?>


Generated: Thu Mar 28 01:00:02 2024 Cross-referenced by PHPXref 0.7.1