[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-content/themes/twentysixteen/template-parts/ -> biography.php (source)

   1  <?php
   2  /**
   3   * The template part for displaying an Author biography
   4   *
   5   * @package WordPress
   6   * @subpackage Twenty_Sixteen
   7   * @since Twenty Sixteen 1.0
   8   */
   9  
  10  ?>
  11  
  12  <div class="author-info">
  13      <div class="author-avatar">
  14          <?php
  15          /**
  16           * Filters the Twenty Sixteen author bio avatar size.
  17           *
  18           * @since Twenty Sixteen 1.0
  19           *
  20           * @param int $size The avatar height and width size in pixels.
  21           */
  22          $author_bio_avatar_size = apply_filters( 'twentysixteen_author_bio_avatar_size', 42 );
  23  
  24          echo get_avatar( get_the_author_meta( 'user_email' ), $author_bio_avatar_size );
  25          ?>
  26      </div><!-- .author-avatar -->
  27  
  28      <div class="author-description">
  29          <h2 class="author-title"><span class="author-heading"><?php _e( 'Author:', 'twentysixteen' ); ?></span> <?php echo get_the_author(); ?></h2>
  30  
  31          <p class="author-bio">
  32              <?php the_author_meta( 'description' ); ?>
  33              <a class="author-link" href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author">
  34                  <?php
  35                  /* translators: %s: The post author display name. */
  36                  printf( __( 'View all posts by %s', 'twentysixteen' ), get_the_author() );
  37                  ?>
  38              </a>
  39          </p><!-- .author-bio -->
  40      </div><!-- .author-description -->
  41  </div><!-- .author-info -->


Generated : Thu Dec 26 08:20:01 2024 Cross-referenced by PHPXref