-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchive.php
44 lines (33 loc) · 963 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
<?php get_header(); ?>
<?php get_template_part( 'template-part', 'topnav' ); ?>
<?php get_template_part( 'template-part', 'head' ); ?>
<?php
if ( get_theme_mod( 'breadcrumbs-check', 1 ) != 0 ) {
eleganto_breadcrumb();
}
?>
<!-- start content container -->
<div class="row container rsrc-content">
<?php get_sidebar( 'left' ); ?>
<div class="col-md-<?php eleganto_main_content_width(); ?> rsrc-main">
<?php if ( have_posts() ) : ?>
<h1 class="page-title text-center">
<?php the_archive_title(); ?>
</h1>
<?php
while ( have_posts() ) : the_post();
get_template_part( 'content', get_post_format() );
endwhile;
?>
<div class="footer-pagination"><?php the_posts_pagination(); ?></div>
<?php
else :
get_template_part( 'content', 'none' );
endif;
?>
</div>
<?php get_sidebar( 'right' ); ?>
</div>
<!-- end content container -->
<?php get_template_part( 'template-part', 'footernav' ); ?>
<?php get_footer(); ?>