forked from Codeinwp/FlatX
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchive.php
37 lines (34 loc) · 1.29 KB
/
archive.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
<?php get_header(); ?>
<?php the_archive_title( '<h1 class="page-title">', '</h1>' ); ?>
<?php the_archive_description( '<div class="taxonomy-description">', '</div>' ); ?>
<?php if ( is_author() && get_the_author_meta( 'description' ) ) : ?>
<div class="author-info">
<div class="author-avatar">
<?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'flat_author_bio_avatar_size', 80 ) ); ?>
</div>
<div class="author-description">
<h4><?php printf( __( 'About %s', 'flat' ), get_the_author() ); ?></h4>
<p><?php the_author_meta( 'description' ); ?></p>
</div>
</div>
<?php endif; ?>
<?php flat_hook_archive_before(); ?>
<div id="content" class="site-content" role="main">
<?php flat_hook_archive_top(); ?>
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', get_post_format() ); ?>
<?php endwhile; ?>
<?php the_posts_pagination(
array(
'prev_text' => __( '<i class="fa fa-chevron-left"></i>', 'flat' ),
'next_text' => __( '<i class="fa fa-chevron-right"></i>', 'flat' ),
)
); ?>
<?php else : ?>
<?php get_template_part( 'content', 'none' ); ?>
<?php endif; ?>
<?php flat_hook_archive_bottom(); ?>
</div>
<?php flat_hook_archive_after(); ?>
<?php get_footer(); ?>