/
search.php
35 lines (30 loc) · 956 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
33
34
35
<?php
/**
* The template for displaying post archives
*
* @package Layers
* @since Layers 1.0.0
*/
get_header();
get_template_part( 'partials/header' , 'page-title' ); ?>
<div class="container content-main archive clearfix">
<div class="grid">
<?php get_sidebar( 'left' ); ?>
<?php if( have_posts() ) : ?>
<div <?php layers_center_column_class(); ?>>
<?php while( have_posts() ) : the_post(); ?>
<?php get_template_part( 'partials/content' , 'list' ); ?>
<?php endwhile; // while has_post(); ?>
<?php the_posts_pagination(); ?>
</div>
<?php else : ?>
<div class="story">
<h3><?php _e( 'No Posts Found', 'layerswp' ); ?></h3>
<p><?php _e( 'There are no posts which match your query, please try a different search term.', 'layerswp' ); ?></p>
<?php echo get_search_form(); ?>
</div>
<?php endif; // if has_post() ?>
<?php get_sidebar( 'right' ); ?>
</div><!-- /row -->
</div>
<?php get_footer();