This repository has been archived by the owner on Mar 4, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 52
/
author.php
executable file
·45 lines (35 loc) · 1.64 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
<?php get_header(); ?>
<div id="content" class="section" role="main">
<?php ar2_above_content() ?>
<article id="post-0" class="article author-archive">
<?php the_post(); // Get author information ?>
<header class="entry-header">
<h1 class="entry-title"><?php printf( __( 'About Author: %s', 'ar2' ), '<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>
</header>
<div class="about-author clearfix">
<div class="author-avatar">
<a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ) ?>"><?php echo get_avatar( get_the_author_meta( 'ID' ), 48 ) ?></a>
</div>
<div class="author-meta">
<?php
if ( get_the_author_meta( 'description' ) == '' )
_e( 'No information is provided by the author.', 'ar2' );
else
the_author_meta( 'description' );
?>
</div>
</div>
</article>
<h2 class="module-title"><?php printf( __( 'Posts by %s', 'ar2' ), '<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
ar2_render_posts( null, array (
'type' => ar2_get_theme_option( 'archive_display' ),
'query_args' => array ( 'author' => get_the_author_meta( 'ID' ) ),
), true );
?>
</div><!-- #archive-posts -->
<?php ar2_below_content() ?>
</div><!-- #content -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>