-
Notifications
You must be signed in to change notification settings - Fork 0
/
author.php
43 lines (39 loc) · 1.09 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
<?php
/**
* Author Archive Page
*
* Defines display of all posts by an individual author, as well as
* that author's bio and avatar if they are set.
*
* @since 0.7
*
* @package Grammatizator
*/
get_header();
?>
<main id="main" class="content-wrap cf" role="main" itemscope itemprop="mainContentOfPage" itemtype="http://schema.org/Blog">
<?php
$theauthor = ( get_query_var( 'author_name' ) ) ? get_user_by( 'slug', get_query_var( 'author_name' ) ) : get_userdata( get_query_var( 'author' ) );
/* translators: the author display name */
printf( __( '<h1 class="page-title">%s</h1>', 'bonestheme' ), // wpcs: XSS ok.
esc_html( $theauthor->display_name )
);
// Make sure author exists
if ( is_author( get_the_author_meta( $theauthor->ID ) ) ) :
?>
<div class="the-team-container">
<?php gramm_list_authors( 'include=' . $theauthor->ID . '&layout=byline&biolength=9999&avatarsize=180' ); ?>
</div>
<?php
endif;
if ( have_posts() ) :
while ( have_posts() ) :
the_post();
gramm_archive_content( 'medium' );
endwhile;
bones_page_navi();
endif;
?>
</main>
<?php
get_footer();