-
Notifications
You must be signed in to change notification settings - Fork 14
/
author.php
41 lines (31 loc) · 984 Bytes
/
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
/**
* Author page template
*
* @package cfa-wp
*/
get_header(); ?>
<div class="layout-semibreve">
<div class="layout-minor">
<?php recent_catigories_by_author($author) ?>
</div>
<div class="layout-major">
<?php if ( have_posts() ) : ?>
<header class="page-header">
<h2 class="page-title"><?php printf( __( 'Posts by %s', '_s' ), '<span>' . get_the_author_meta('first_name', $author) . ' ' . get_the_author_meta('last_name', $author) . '</span>' ); ?></h2>
</header><!-- .page-header -->
<div class="author">
<?php echo get_avatar($author, 137) ?>
<p class="description">
<?php echo get_the_author_meta('description', $author) ?>
</p>
</div>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', get_post_format() );?>
<?php endwhile; ?>
<?php else : ?>
<?php get_template_part( 'content', 'none' ); ?>
<?php endif; ?>
</div>
</div>
<?php get_footer(); ?>