wp/wp-content/themes/twentythirteen/author-bio.php
author ymh <ymh.work@gmail.com>
Mon, 14 Oct 2019 17:39:30 +0200
changeset 7 cf61fcea0001
parent 0 d970ebf37754
permissions -rw-r--r--
resynchronize code repo with production
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     1
<?php
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     2
/**
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     3
 * The template for displaying Author bios
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     4
 *
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     5
 * @package WordPress
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     6
 * @subpackage Twenty_Thirteen
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     7
 * @since Twenty Thirteen 1.0
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     8
 */
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     9
?>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    10
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    11
<div class="author-info">
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    12
	<div class="author-avatar">
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    13
		<?php
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    14
		/**
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    15
		 * Filter the author bio avatar size.
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    16
		 *
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    17
		 * @since Twenty Thirteen 1.0
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    18
		 *
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    19
		 * @param int $size The avatar height and width size in pixels.
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    20
		 */
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    21
		$author_bio_avatar_size = apply_filters( 'twentythirteen_author_bio_avatar_size', 74 );
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    22
		echo get_avatar( get_the_author_meta( 'user_email' ), $author_bio_avatar_size );
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    23
		?>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    24
	</div><!-- .author-avatar -->
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    25
	<div class="author-description">
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    26
		<h2 class="author-title"><?php printf( __( 'About %s', 'twentythirteen' ), get_the_author() ); ?></h2>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    27
		<p class="author-bio">
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    28
			<?php the_author_meta( 'description' ); ?>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    29
			<a class="author-link" href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author">
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    30
				<?php printf( __( 'View all posts by %s <span class="meta-nav">&rarr;</span>', 'twentythirteen' ), get_the_author() ); ?>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    31
			</a>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    32
		</p>
d970ebf37754 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    33
	</div><!-- .author-description -->
7
cf61fcea0001 resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents: 0
diff changeset
    34
</div><!-- .author-info -->