-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathauthor.php
46 lines (38 loc) · 1.15 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
<?php
/**
* Apocrypha Theme Author Archive Template
* Andrew Clayton
* Version 1.0.0
* 8-8-2013
*/
// Get the queried author
$user_id = get_query_var( 'author' );
$author = new Apoc_User( $user_id );
?>
<?php get_header(); ?>
<div id="content" role="main">
<?php apoc_breadcrumbs(); ?>
<header id="archive-header">
<h1 id="archive-title" class="double-border bottom"><?php printf( 'Articles By %s' , $author->fullname ); ?></h1>
<div id="archive-author-info">
<div class="reply-author user-block">
<?php echo $author->block; ?>
</div>
<div id="archive-author-bio" class="reply-content">
<?php echo $author->bio; ?>
</div>
</div>
</header>
<div id="posts">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php apoc_display_post(); ?>
<?php endwhile; else : ?>
<div class="warning">Sorry, no posts were found for this author.</div>
<?php endif; ?>
<nav class="pagination ajaxed" data-type="author" data-id="<?php echo $user_id; ?>">
<?php apoc_pagination(); ?>
</nav>
</div>
</div><!-- #content -->
<?php apoc_primary_sidebar(); ?>
<?php get_footer(); ?>