-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathauthor.php
52 lines (43 loc) · 1.17 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
<?php
/**
* Apocrypha Theme Author Archive Template
* Andrew Clayton
* Version 2.0
* 9-20-2014
*/
// Get the requested author
$author = new Apoc_User( get_query_var( 'author' ) , 'reply' );
?>
<?php get_header(); ?>
<div id="content" role="main">
<?php apoc_breadcrumbs(); ?>
<header id="archive-header" class="instructions">
<h3 class="double-border"><?php printf( 'Articles By %s' , $author->fullname ); ?></h3>
<div class="reply-body">
<div class="reply-author">
<?php echo $author->block; ?>
</div>
<div class="reply-content">
<?php echo $author->bio; ?>
</div>
</div>
</header>
<div id="posts">
<?php // Posts found for author
if ( have_posts() ) :
while ( have_posts() ) : the_post();
apoc_single_post();
endwhile; ?>
<?php // No posts found for author
else : ?>
<div class="warning">Sorry, no posts were found for this author.</div>
<?php endif; ?>
</div>
<nav class="pagination">
<div class="pagination-links">
<?php echo paginate_links( array('prev_text' => '←', 'next_text' => '→') ); ?>
</div>
</nav>
</div>
<?php apoc_primary_sidebar(); ?>
<?php get_footer(); ?>