-
Notifications
You must be signed in to change notification settings - Fork 3
/
author.php
61 lines (50 loc) · 1.27 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
<?php
/**
* The template for displaying Author Archive pages.
*
* Used to display archive-type pages for posts by an author.
*
* Learn more: http://codex.wordpress.org/Template_Hierarchy
*
* @package MIT_Libraries_Parent
* @since 1.2.1
*/
get_header();
$sidebar_class = '';
if ( is_active_sidebar( 'sidebar-1' ) ) {
$sidebar_class = 'has-sidebar';
}
?>
<div id="stage" class="inner" role="main">
<div id="content" class="content <?php echo esc_attr( $sidebar_class ); ?>">
<div class="content-main main-content">
<?php if ( have_posts() ) : ?>
<?php
/*
* Queue the first post, that way we know
* what author we're dealing with (if that is the case).
*
* We reset this later so we can run the loop
* properly with a call to rewind_posts().
*/
the_post();
?>
<header class="archive-header">
<h1 class="archive-title">
Author Archives:
<span class="vcard">
<?php the_author(); ?>
</span>
</h1>
</header><!-- .archive-header -->
<?php endif; ?>
<?php
/* We removed the loop because we don't use this display template. */
?>
</div>
<?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>
<?php get_sidebar(); ?>
<?php endif; ?>
</div>
</div>
<?php get_footer(); ?>