-
Notifications
You must be signed in to change notification settings - Fork 5
/
archive-author.php
40 lines (40 loc) · 1.6 KB
/
archive-author.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
35
36
37
38
39
40
<?php
/**
* The template for displaying Author description
*
* @package StormBringer
* @since StormBringer 0.0.1
*/
?>
<?php
// If a user has filled out their description, show a bio on their entries.
if ( get_the_author_meta( 'description' ) ) : ?>
<div class="author-info">
<div class="media">
<div class="pull-left">
<div class="author-avatar">
<?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'stormbringer_author_bio_avatar_size', 100 ) ); ?>
</div>
</div>
<!-- /.author-avatar -->
<div class="media-body">
<div class="author-description">
<h4 class="media-heading"><?php printf( __( 'About %s', 'stormbringer' ), get_the_author() ); ?></h4>
<?php $author_description = get_the_author_meta( 'description' );
echo wpautop( $author_description ); ?>
<?php if ( get_the_author_meta( 'user_fb' ) ) {
printf( '<p>' . __( 'Facebook:', 'stormbringer' ) . ' <a href="%s">%s</a></p>', get_the_author_meta( 'user_fb' ), get_the_author() );
} ?>
<?php if ( get_the_author_meta( 'user_tw' ) ) {
printf( '<p>' . __( 'Twitter:', 'stormbringer' ) . ' <a href="http://twitter.com/%s">%s</a></p>', get_the_author_meta( 'user_tw' ), get_the_author_meta( 'user_tw' ) );
} ?>
<?php if ( get_the_author_meta( 'google_profile' ) ) {
printf( '<p>' . __( 'Google Plus:', 'stormbringer' ) . ' <a href="%s">%s</a></p>', get_the_author_meta( 'google_profile' ), get_the_author() );
} ?>
</div>
</div>
<!-- /.author-description -->
</div>
</div>
<!-- /.author-info -->
<?php endif; ?>