-
Notifications
You must be signed in to change notification settings - Fork 0
/
archive.php
49 lines (36 loc) · 935 Bytes
/
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
38
39
40
41
42
43
44
45
46
47
48
49
<?php
/**
* The template for displaying archive pages.
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package Magaz
*/
get_header(); ?>
<div class='wrapper'>
<div class='row'>
<div class='column large-12'>
<?php get_template_part( 'template-parts/page-header', 'archive' ); ?>
</div>
</div>
<?php if ( have_posts() ) : ?>
<div class='row'>
<div class='post-list'>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'template-parts/post-card' ); ?>
<?php endwhile; ?>
</div>
</div>
<div class='row'>
<?php get_template_part( 'template-parts/the-posts-navigation' ); ?>
</div>
<?php else: ?>
<div class='row'>
<div class='column large-12'>
<?php get_template_part( 'template-parts/no-results' ); ?>
</div>
</div>
<?php endif; ?>
</div><!-- wrapper -->
<?php
get_footer();