-
Notifications
You must be signed in to change notification settings - Fork 90
Expand file tree
/
Copy pathauthor-info.php
More file actions
53 lines (32 loc) · 2.03 KB
/
author-info.php
File metadata and controls
53 lines (32 loc) · 2.03 KB
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
47
48
49
50
51
52
53
<?php global $brew_options; ?>
<?php if ( $brew_options['author_profile'] == '1' ) { ?>
<div id="author-info" class="clearfix well">
<div class="author-img">
<?php echo get_avatar( get_the_author_meta( 'ID' ), '96' ); ?>
</div>
<div class="author-desc">
<h4><?php printf( esc_attr__( 'About %s', 'brew' ), get_the_author() );?></h4>
<p><?php echo wp_kses( get_the_author_meta( 'description' ), null ); ?></p>
<div class="profile-links clearfix">
<ul class="social-links">
<li><a class="author-icon" href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>"><i class="fa fa-pencil"></i> </a></li>
<?php if ( get_the_author_meta( 'twitter' ) != '' ) { ?>
<li><a class="author-icon" target="_blank" href="<?php echo esc_url( get_the_author_meta( 'twitter' ) ); ?>"><i class="fa fa-twitter"></i> </a></li>
<?php } ?>
<?php if ( get_the_author_meta( 'facebook' ) != '' ) { ?>
<li><a class="author-icon" target="_blank" href="<?php echo esc_url( get_the_author_meta( 'facebook' ) ); ?>"><i class="fa fa-facebook"></i> </a></li>
<?php } ?>
<?php if ( get_the_author_meta( 'linkedin' ) != '' ) { ?>
<li><a class="author-icon" target="_blank" href="<?php echo esc_url( get_the_author_meta( 'linkedin' ) ); ?>"><i class="fa fa-linkedin"></i> </a></li>
<?php } ?>
<?php if ( get_the_author_meta( 'googleplus' ) != '' ) { ?>
<li><a class="author-icon" target="_blank" href="<?php echo esc_url( get_the_author_meta( 'googleplus' ) ); ?>"><i class="fa fa-google-plus"></i> </a></li>
<?php } ?>
<?php if ( get_the_author_meta( 'pinterest' ) != '' ) { ?>
<li><a class="author-icon" target="_blank" href="<?php echo esc_url( get_the_author_meta( 'pinterest' ) ); ?>"><i class="fa fa-pinterest-square"></i> </a></li>
<?php } ?>
</ul>
</div>
</div>
</div>
<?php } ?> <!-- end if -->