-
Notifications
You must be signed in to change notification settings - Fork 14
/
author.php
62 lines (44 loc) · 2.13 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
<?php
/**
* The template for displaying author archive pages
*
* @package Reactor
* @subpackge Templates
* @since 1.0.0
*/
?>
<?php get_header(); ?>
<div id="primary" class="site-content">
<?php reactor_content_before(); ?>
<div id="content" role="main">
<div class="row">
<div class="<?php reactor_columns(); ?>">
<?php reactor_inner_content_before(); ?>
<?php if ( have_posts() ) : the_post(); ?>
<header class="archive-header">
<h1 class="archive-title"><?php printf( __('Author: %s', 'reactor'), get_the_author() ); ?></h1>
</header><!-- .archive-header -->
<?php rewind_posts(); ?>
<?php // If a user has filled out their description, show a bio on their entries.
if ( get_the_author_meta('description') ) : ?>
<div class="author-info">
<div class="author-avatar">
<?php echo get_avatar( get_the_author_meta('user_email'), apply_filters('reactor_author_bio_avatar_size', 60) ); ?>
</div><!-- .author-avatar -->
<div class="author-description">
<h2><?php printf( __('About %s', 'reactor'), get_the_author() ); ?></h2>
<p><?php the_author_meta('description'); ?></p>
</div><!-- .author-description -->
</div><!-- .author-info -->
<?php endif; ?>
<?php endif; // end have_posts() check ?>
<?php // get the loop
get_template_part('loops/loop', 'index'); ?>
<?php reactor_inner_content_after(); ?>
</div><!-- .columns -->
<?php get_sidebar(); ?>
</div><!-- .row -->
</div><!-- #content -->
<?php reactor_content_after(); ?>
</div><!-- #primary -->
<?php get_footer(); ?>