-
Notifications
You must be signed in to change notification settings - Fork 8
/
author.php
47 lines (29 loc) · 1.44 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php get_header();
$full_image_url = SD_DEFAULT_FEATURED_IMAGE;
?>
<div class="sd-container">
<header>
<div class="featured-area">
<div class="featured-img" style="background-image: url('<?php echo esc_url($full_image_url); ?>');"></div>
<div class="header-wrap">
<?php $author_obj = get_user_by( 'slug', get_query_var( 'author_name' ) );
echo get_avatar($author_obj->ID, 120, '', get_the_author_meta('display_name')); ?>
<h1 class="entry-title"><?php $author_obj = $wp_query->get_queried_object();
echo ucfirst(esc_attr(sprintf( __("%s's Profile", 'supreme-directory'), esc_attr($author_obj->display_name) )))?></h1>
</div>
</div>
</header>
<div class="container">
<div class="content-box content-archive content-author">
<?php
/**
* Output the author page content.
*
* @param Object $author_obj The author object.
*/
do_action('sd_author_content',$author_obj);
?>
</div>
</div>
</div>
<?php get_footer(); ?>