-
Notifications
You must be signed in to change notification settings - Fork 0
/
author.php
48 lines (36 loc) · 1.21 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
<?php
/**
* Author template.
*
* @package P3
*/
?>
<?php get_header(); ?>
<div class="sleeve_main">
<?php if ( p3_user_can_post() && !is_archive() ) : ?>
<?php locate_template( array( 'post-form.php' ), true ); ?>
<?php endif; ?>
<div id="main">
<?php if ( have_posts() ) : ?>
<h2>
<?php printf( _x( 'Updates from %s', 'Author name', 'p3' ), p3_get_archive_author() ); ?>
<span class="controls">
<a href="#" id="togglecomments"> <?php _e( 'Toggle Comment Threads', 'p3' ); ?></a> | <a href="#directions" id="directions-keyboard"><?php _e( 'Keyboard Shortcuts', 'p3' ); ?></a>
</span>
</h2>
<ul id="postlist">
<?php while ( have_posts() ) : the_post(); ?>
<?php p3_load_entry(); ?>
<?php endwhile; ?>
</ul>
<?php else : ?>
<h2><?php _e( 'Not Found', 'p3' ); ?></h2>
<p><?php _e( 'Apologies, looks like this author does not have any posts.', 'p3' ); ?></p>
<?php endif; // end have_posts() ?>
<div class="navigation">
<p class="nav-older"><?php next_posts_link( __( '← Older posts', 'p3' ) ); ?></p>
<p class="nav-newer"><?php previous_posts_link( __( 'Newer posts →', 'p3' ) ); ?></p>
</div>
</div> <!-- main -->
</div> <!-- sleeve -->
<?php get_footer(); ?>