-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathauthor.php
More file actions
52 lines (46 loc) · 2.01 KB
/
author.php
File metadata and controls
52 lines (46 loc) · 2.01 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
<?php
get_header();
global $wp_query;
// $curauth = get_userdata(intval($author));
$current_author = $wp_query->get_queried_object();
$image = 'https://botpopuli.net/wp-content/uploads/2021/09/Contributors.png';
?>
<div class="featured" style="background-image: url('<?php _e($image);?>')">
<div class="featured-overlay"></div>
</div>
<div class="container overlay-div">
<div class="row">
<div class="col-md-12">
<div class="title-wrapper">
<h1 class="page-title"><?php _e( $current_author->display_name );?></h1>
<button class="btp-btn d-none d-md-block">
<a href="<?php _e(home_url('contributors'));?>"> See all Contributors</a>
<i class="fas fa-long-arrow-alt-right"></i>
</button>
</div>
<div class="page-title-separator"></div>
<div class="row">
<div class="col-md-3 user-avatar">
<?php echo get_avatar( $current_author->ID, '230', '', $current_author->display_name ); ?>
</div>
<div class="col-md-9 description-pane">
<div class="bio">
<p><?php _e( $current_author->description );?></p>
</div>
<h2 class="sub-title">Contributions</h2>
<div class="d-none d-md-block">
<?php echo do_shortcode( btp_get_author_posts( $current_author ) ); ?>
</div>
<div class="d-block d-md-none">
<?php echo do_shortcode( btp_get_author_posts( $current_author, 3 ) ); ?>
</div>
<button class="btp-btn d-block d-md-none mt-4">
<a href="<?php _e(home_url('contributors'));?>"> See all Contributors</a>
<i class="fas fa-long-arrow-alt-left"></i>
</button>
</div>
</div>
</div>
</div>
</div>
<?php get_footer(); ?>