-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathauthor.php
More file actions
57 lines (46 loc) · 1.52 KB
/
Copy pathauthor.php
File metadata and controls
57 lines (46 loc) · 1.52 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
53
54
55
56
57
<?php get_header();
$author = get_user_by( 'slug', get_query_var( 'author_name' ) );
$author_id = $author ? $author->ID : 0;
?>
<div class="s-container main-body">
<div id="primary" class="content-area <?php echo '-'.$GLOBALS['s_blog_layout']; ?>">
<main id="main" class="site-main">
<?php if ( have_posts() ) : ?>
<header class="entry-author -head">
<div class="pic">
<?php echo get_avatar( $author_id, apply_filters( 'author_bio_avatar_size', 100 ) ); ?>
</div>
<div class="info">
<?php the_archive_title( '<h1 class="page-title entry-title">', '</h1>' );?>
<?php the_archive_description( '<div class="taxonomy-description">', '</div>' ); ?>
</div>
</header>
<?php
echo '<div class="s-grid -m'.$GLOBALS['s_blog_columns_m'].' -d'.$GLOBALS['s_blog_columns_d'].'">';
while ( have_posts() ) : the_post();
get_template_part( 'template-parts/content', $GLOBALS['s_blog_template']);
endwhile;
echo '</div>';
seed_posts_navigation();
?>
<?php else : ?>
<?php get_template_part( 'template-parts/content', 'none' ); ?>
<?php endif; ?>
</main>
</div>
<?php
switch ($GLOBALS['s_blog_layout']) {
case 'rightbar':
get_sidebar('right');
break;
case 'leftbar':
get_sidebar('left');
break;
case 'full-width':
break;
default:
break;
}
?>
</div>
<?php get_footer(); ?>