forked from sdg32/maupassant
-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.php
32 lines (28 loc) · 1019 Bytes
/
search.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
<?php get_header(); ?>
<div class="col-8" id="main">
<div class="res-cons">
<?php if ( have_posts() ) : ?>
<header>
<h1 class="archive-title">
<?php printf( __( 'Search Results for: %s', 'maupassant' ), get_search_query() ); ?>
</h1>
</header>
<?php
while ( have_posts() ) :
the_post();
get_template_part( 'tpl-parts/content', get_post_format() );
endwhile;
the_posts_pagination( array(
'prev_text' => __( 'Previous', 'maupassant' ),
'next_text' => __( 'Next', 'maupassant' ),
'screen_reader_text' => ' ',
'type' => 'list',
) );
?>
<?php else : ?>
<?php get_template_part( 'tpl-parts/content', 'none' ); ?>
<?php endif; ?>
</div>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>