-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathauthor-bio.php
51 lines (49 loc) · 1.98 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
47
48
49
50
51
<?php
/**
* The template for displaying Author bios.
*
* @package Bucket Lite
* @since Bucket Lite 1.0.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
} ?>
<aside class="author" itemscope itemtype="http://schema.org/Person">
<div class="author__avatar">
<?php echo '<img src="'. esc_url( util::get_avatar_url( get_the_author_meta('email'), '80') ) . '" itemprop="image" alt="avatar" />'; ?>
</div>
<div class="author__text">
<div class="author__title">
<h3 class="accessibility"><?php esc_html_e('Author', 'bucket-lite'); ?></h3>
<div class="hN">
<span itemprop="name"><?php bucket::the_author_posts_link(); ?></span>
</div>
</div>
<p class="author__bio" itemprop="description">
<?php echo esc_html( get_the_author_meta('description') ); ?>
</p>
<ul class="author__social-links">
<?php if ( get_the_author_meta('url') ){ ?>
<li class="author__social-links__list-item">
<a class="author__social-link" href="<?php echo esc_url( get_the_author_meta('url') ); ?>" target="_blank"><?php esc_html_e('Website', 'bucket-lite'); ?></a>
</li>
<?php } ?>
<?php if ( get_the_author_meta('user_tw') ){ ?>
<li class="author__social-links__list-item">
<a class="author__social-link" href="https://twitter.com/<?php echo esc_html( get_the_author_meta('user_tw') ); ?>" target="_blank">Twitter</a>
</li>
<?php } ?>
<?php if ( get_the_author_meta('user_fb') ){ ?>
<li class="author__social-links__list-item">
<a class="author__social-link" href="https://www.facebook.com/<?php echo esc_html( get_the_author_meta('user_fb') ); ?>" target="_blank">Facebook</a>
</li>
<?php } ?>
<?php if ( get_the_author_meta('google_profile') ){ ?>
<li class="author__social-links__list-item">
<a class="author__social-link" href="<?php echo esc_url( get_the_author_meta('google_profile') ); ?>" target="_blank">Google+</a>
</li>
<?php } ?>
</ul>
</div>
</aside>
<hr class="separator separator--subsection">