forked from iCaspar/arras
/
author.php
42 lines (32 loc) · 1.91 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
<?php get_header(); ?>
<div id="content" class="<?php echo arras_layout_columns( 'content' ); ?>">
<?php arras_above_content() ?>
<div class="author-content">
<?php the_post(); // Get author information ?>
<h1 class="author-title"><?php printf( __('About Author: %s', 'arras'), '<span class="vcard"><a class="url fn n" href="' . get_author_posts_url( get_the_author_meta( 'ID' ) ) . '" title="' . esc_attr(get_the_author()) . '" rel="me">' . get_the_author_meta('display_name') . '</a></span>' ); ?></h1>
<div class="author-entry-content group">
<a href="<?php echo get_author_posts_url(get_the_author_meta('ID')) ?>"><?php echo get_avatar(get_the_author_meta('ID'), 96) ?></a>
<dl>
<?php if (get_the_author_meta('user_url')) : ?>
<dt><?php _e('Website', 'arras') ?></dt>
<dd><a href="<?php the_author_meta('user_url') ?>"><?php the_author_meta('user_url') ?></a></dd>
<?php endif ?>
<?php if (get_the_author_meta('description')) : ?>
<dt><?php _e('Description', 'arras') ?></dt>
<dd><?php the_author_meta('description') ?></dd>
<?php endif ?>
</dl>
</div>
<h2 class="author-posts-title"><?php printf( __('Posts by %s', 'arras'), '<span class="vcard"><a class="url fn n" href="' . get_author_posts_url( get_the_author_meta( 'ID' ) ) . '" title="' . esc_attr(get_the_author()) . '" rel="me">' . get_the_author_meta('display_name') . '</a></span>' ); ?></h2>
<div id="archive-posts">
<?php arras_render_posts( 'author=' . get_the_author_meta('ID') . '&paged=' . $paged, arras_get_option( 'default_tapestry' ) ) ?>
</div>
<div class="navigation group">
<div class="floatleft"><?php next_posts_link( __('« Older Entries', 'arras') ) ?></div>
<div class="floatright"><?php previous_posts_link( __('Newer Entries »', 'arras') ) ?></div>
</div>
</div>
<?php arras_below_content() ?>
</div><!-- #content -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>