-
Notifications
You must be signed in to change notification settings - Fork 0
/
author.php
72 lines (63 loc) · 2.76 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<?php get_header();
// Delete prefix
add_filter( 'get_the_archive_title', function( $title ){
return preg_replace('~^[^:]+: ~', '', $title );
});
$author_page_author_email = get_the_author_meta('user_email');
$author_page_author_user_login = get_the_author_meta('user_login');
$avatar_img_author_page = get_avatar( $author_page_author_email, 160, '', $author_page_author_user_login, array(
'class' => 'author_page_avatar',
));
?>
<main class="funnycoon_main">
<div class="funnycoon_main_wrapper">
<div class="archive_wrapper">
<div class="archive_posts">
<div class="archive_header">
<div class="author_info_section">
<div class="author_info_avatar">
<?php echo $avatar_img_author_page; ?>
</div>
<div class="author_info_wrp">
<?php the_archive_title( '<h1 class="author_page_nickname">', '</h1>' ); ?>
<?php the_archive_description( '<div class="author_page_description">', '</div>' ); ?>
<div class="author_socials_list">
<?php echo get_socials_author_page(); ?>
</div>
</div>
</div>
</div>
<div class="archive_posts_wrp">
<span class="archive_author_title">Все материалы автора</span>
<?php
if ( have_posts() ) :
while ( have_posts() ) :
the_post();
get_template_part( 'template-parts/archive/archive-post-card');
endwhile;
endif;
?>
</div>
<?php
funnycoon_numeric_posts_nav();
?>
<div class="main_posts_adv_wrp">
<div class="main_posts_adv"></div>
</div>
</div>
<div class="archive_sidebar">
<div class="main_posts_sidebar_title_wrp">
<span class="main_posts_sidebar_title">Популярные материалы</span>
</div>
<div class="main_posts_sidebar_popular_posts">
<?php popular_posts_query(); ?>
<div class="main_posts_sidebar_adv_wrp">
<div class="main_posts_sidebar_adv">
</div>
</div>
</div>
</div>
</div>
</div>
</main>
<?php get_footer(); ?>