forked from AyeCode/supreme-directory
-
Notifications
You must be signed in to change notification settings - Fork 0
/
archive.php
30 lines (25 loc) · 1.01 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
<?php get_header(); ?>
<?php get_template_part('content-featured-area');?>
<section class="<?php if(get_theme_mod('dt_container_full', DT_CONTAINER_FULL)){echo 'container-fluid';}else{ echo "container";}?> py-3">
<div class="row">
<?php if (!have_posts()) : ?>
<div class="alert-error">
<p><?php _e('Sorry, no results were found.', 'supreme-directory'); ?></p>
</div>
<?php get_search_form(); ?>
<?php endif; ?>
<?php
while (have_posts()) : the_post();
// Include the page content template.
get_template_part('content-blog');
// End the loop.
endwhile;
// Previous/next page navigation.
the_posts_pagination(array(
'prev_text' => __('Previous', 'supreme-directory'),
'next_text' => __('Next', 'supreme-directory'),
));
?>
</div>
</section>
<?php get_footer(); ?>