-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathauthor-bio.php
48 lines (41 loc) · 1.75 KB
/
author-bio.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
41
42
43
44
45
46
<?php
/**
* Author bio
*
*/
?>
<div class="author-bio clearfix">
<div class="col-md-3 col-sm-3 col-xs-12">
<?php echo get_avatar( get_the_author_meta( 'user_email' ), 80 ); ?>
<div class="author-social">
<?php
$author_name = get_the_author_meta('display_name');
$author_facebook = get_the_author_meta('alizee_facebook');
$author_twitter = get_the_author_meta('alizee_twitter');
$author_googleplus = get_the_author_meta('alizee_googleplus');
$author_linkedin = get_the_author_meta('alizee_linkedin');
?>
<?php if ( $author_facebook != '' ) : ?>
<a href="<?php echo esc_url($author_facebook); ?>" title="Facebook"><i class="fa fa-facebook-square"></i></a>
<?php endif; ?>
<?php if ( $author_twitter != '' ) : ?>
<a href="<?php echo esc_url($author_twitter); ?>" title="Twitter"><i class="fa fa-twitter-square"></i></a>
<?php endif; ?>
<?php if ( $author_googleplus != '' ) : ?>
<a href="<?php echo esc_url($author_googleplus); ?>" title="Google Plus"><i class="fa fa-google-plus-square"></i></a>
<?php endif; ?>
<?php if ( $author_linkedin != '' ) : ?>
<a href="<?php echo esc_url($author_linkedin); ?>" title="Linkedin"><i class="fa fa-linkedin-square"></i></a>
<?php endif; ?>
</div>
</div>
<div class="col-md-9 col-sm-9 col-xs-12">
<h3 class="author-name">
<?php printf(__('About %s', 'alizee'), esc_html($author_name) ); ?>
</h3>
<div class="author-desc">
<?php esc_html(the_author_meta( 'description' )); ?>
</div>
<div class="view-all"><a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>"><?php printf(__('See all posts by %s', 'alizee'), esc_html($author_name) ); ?></a> <i class="fa fa-long-arrow-right"></i></div>
</div>
</div>