-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathauthor.php
33 lines (26 loc) · 1.07 KB
/
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
<?php
/**
* Template part for displaying page content in page.php.
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package bangla
*/
$author_desc = get_the_author_meta('description');
$archive_page = is_archive();
?>
<?php if(get_theme_mod('bangla_author_info', 1) && !empty($author_desc)) { ?>
<?php if (!$archive_page) : ?>
<hr class="broxme_wp-margin-large-top broxme_wp-margin-large-top broxme_wp-margin-large-bottom">
<?php endif; ?>
<div id="author-info" class="broxme_wp-clearfix">
<div class="author-image broxme_wp-float-left broxme_wp-margin-right">
<a href="<?php echo esc_url(get_author_posts_url(get_the_author_meta( 'ID' ))); ?>"><?php echo get_avatar( esc_attr(get_the_author_meta('user_email')), '80', '' ); ?></a>
</div>
<div class="author-bio">
<h4 class="broxme_wp-margin-small-bottom"><?php esc_html_e('About', 'bangla'); ?> <?php the_author(); ?></h4>
<?php the_author_meta('description'); ?>
</div>
</div>
<hr class="broxme_wp-margin-large-top broxme_wp-margin-large-bottom">
<?php } ?>