forked from imranhsayed/aquila
-
Notifications
You must be signed in to change notification settings - Fork 0
/
author.php
49 lines (43 loc) · 1017 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
42
43
44
45
46
47
48
<?php
/**
* Author Archive Page template file.
*
* @package Aquila
*/
get_header();
$author = get_queried_object();
?>
<div id="primary">
<main id="main" class="site-main my-5" role="main">
<div class="container">
<?php get_template_part( 'template-parts/author/header' ); ?>
<div class="site-content">
<?php
if ( ! empty( get_the_author() ) ) {
printf(
'<h3 class="font-size-xl h3 pb-4">%1$s %2$s</h3>',
__( 'Articles written by ', 'aquila' ),
get_the_author()
);
}
?>
<div class="row">
<?php
if ( have_posts() ) :
while ( have_posts() ) : the_post();
get_template_part( 'template-parts/content', '', [ 'container_classes' => 'col-lg-4 col-md-6 col-sm-12 pb-4' ] );
endwhile;
else :
get_template_part( 'template-parts/content-none' );
endif;
?>
</div>
<div>
<?php aquila_pagination(); ?>
</div>
</div>
</div>
</main>
</div>
<?php
get_footer();