forked from pavansolapure/openstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
author-box.php
35 lines (32 loc) · 1.22 KB
/
author-box.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
/**
* Author Box
*
* Loop content in single post template (author-box.php)
*
* @package Openstrap
* @subpackage Openstrap
* @since Openstrap 0.1
*/
?>
<?php if ( is_singular() && get_the_author_meta( 'description' ) && is_multi_author() ) :
// If a user has filled out their description and this is a multi-author blog, show a bio on their entries. ?>
<div class="panel panel-default author-info">
<div class="panel-body">
<div class="media author-avatar">
<a class="pull-left" href="#">
<?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'openstrap_author_bio_avatar_size', 70 ) ); ?>
</a>
<div class="media-body author-description">
<h3 class="media-heading"><?php printf( __( 'About %s', 'openstrap' ), get_the_author() ); ?></h3>
<p><?php the_author_meta( 'description' ); ?></p>
<div class="author-link">
<a 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>', 'openstrap' ), get_the_author() ); ?>
</a>
</div><!-- .author-link -->
</div><!-- .author-description -->
</div><!-- .author-avatar -->
</div>
</div><!-- .author-info -->
<?php endif; ?>