-
Notifications
You must be signed in to change notification settings - Fork 41
/
author.php
executable file
·41 lines (33 loc) · 1.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
<?php get_header(); ?>
<div id="container">
<div id="content">
<?php
if ( have_posts() ) the_post();
do_action( 'sb_before_content' );
if ( have_posts() ) rewind_posts();
?>
<div id="entry-author-info">
<?php sb_page_title(); ?>
<?php if ( get_the_author_meta( 'description' ) ) : ?>
<div id="author-avatar">
<?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'sb_author_page_gravitar_size', 120 ) ); ?>
</div><!-- #author-avatar -->
<div id="author-description">
<?php the_author_meta( 'description' ); ?>
</div><!-- #author-description -->
<?php endif; ?>
</div><!-- #entry-author-info -->
<?php
// Provide a hook for placing content before author posts
do_action( 'sb_author_before_posts' );
// Grab the author's posts
while ( have_posts() ) : the_post();
get_template_part( 'loop', 'author' );
endwhile;
// Standard "after content" hook
do_action( 'sb_after_content' );
?>
</div><!-- #content -->
</div><!-- #container -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>