[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

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      ?>
  12  <div class="author-bio">
  13      <div class="author-title-wrapper">
  14          <div class="author-avatar vcard">
  15              <?php echo get_avatar( get_the_author_meta( 'ID' ), 160 ); ?>
  16          </div>
  17          <h2 class="author-title heading-size-4">
  18              <?php
  19              printf(
  20                  /* translators: %s: Author name. */
  21                  __( 'By %s', 'twentytwenty' ),
  22                  esc_html( get_the_author() )
  23              );
  24              ?>
  25          </h2>
  26      </div><!-- .author-name -->
  27      <div class="author-description">
  28          <?php echo wp_kses_post( wpautop( get_the_author_meta( 'description' ) ) ); ?>
  29          <a class="author-link" href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author">
  30              <?php _e( 'View Archive <span aria-hidden="true">&rarr;</span>', 'twentytwenty' ); ?>
  31          </a>
  32      </div><!-- .author-description -->
  33  </div><!-- .author-bio -->
  34      <?php
  35  endif;


Generated : Thu Nov 21 08:20:01 2024 Cross-referenced by PHPXref