forked from Codeinwp/flat
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathauthor-bio.php
More file actions
15 lines (15 loc) · 774 Bytes
/
author-bio.php
File metadata and controls
15 lines (15 loc) · 774 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<div class="author-info">
<div class="author-avatar">
<?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'flat_author_bio_avatar_size', 80 ) ); ?>
</div>
<div class="author-description">
<h4><?php printf( __( 'About %s', 'flat' ), get_the_author() ); ?></h4>
<p>
<?php $author_description = apply_filters( 'the_content', get_the_author_meta( 'description' ) ); ?>
<?php echo wp_kses( $author_description, wp_kses_allowed_html( 'pre_user_description' ) ); ?>
<a class="author-link" href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author">
<?php printf( __( 'View all posts by %s <span class="meta-nav">→</span>', 'flat' ), get_the_author() ); ?>
</a>
</p>
</div>
</div>