forked from AyeCode/supreme-directory
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
46 lines (38 loc) · 1.26 KB
/
index.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
<?php get_header();
do_action( 'dt_page_before_main_content' );
if ( is_home() && get_option( 'page_for_posts' ) ) {
$pfp_post = get_post( get_option( 'page_for_posts' ) );
get_template_part( 'content-featured-area' );
} else if ( is_search() ) { ?>
<header>
<div class="featured-area type-title">
<div class="header-wrap">
<?php do_action( 'sd_feature_area' ); ?>
</div>
</div>
</header>
<?php } ?>
<section class="<?php if(get_theme_mod('dt_container_full', DT_CONTAINER_FULL)){echo 'container-fluid';}else{ echo "container";}?> py-3">
<div class="content-box content-single <?php echo( is_search() ? 'content-search' : '' ); ?> 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' ),
'class' => 'w-100'
) );
?>
</div>
</section>
<?php get_footer(); ?>