[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-content/themes/twentythirteen/ -> author-bio.php (source)

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


Generated: Sun Sep 15 01:00:03 2019 Cross-referenced by PHPXref 0.7.1