-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.php
42 lines (37 loc) · 1.68 KB
/
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
33
34
35
36
37
38
39
40
41
42
<?php
/**
* The template for displaying search results pages
* @package web-log
* @version 1.0.0
*/
get_header(); ?>
<div id="content" class="site-content">
<div class="container">
<div class="row">
<div class="col-md-8">
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
<div class="web-log-post-list">
<?php if ( have_posts() ) :
/* Start the Loop */
while ( have_posts() ) : the_post();
get_template_part( 'template-parts/post/content');
endwhile; // End of the loop.
else : ?>
<article class="wrong-search-wrapper text-center post">
<p><?php esc_html_e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'web-log' ); ?></p>
<?php get_search_form(); ?>
</article>
<?php endif; ?>
</div>
<?php the_posts_pagination(); ?>
</main>
</div>
</div>
<div class="col-md-4">
<?php get_sidebar(); ?>
</div>
</div><!-- .row -->
</div>
</div>
<?php get_footer();