-
Notifications
You must be signed in to change notification settings - Fork 3
/
search.php
48 lines (40 loc) · 1.21 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
43
44
45
46
47
48
<?php
/**
* The template for displaying search results pages
*/
get_header();
?>
<div class="wrapper">
<div class="wrapper-padded">
<div class="wrapper-padded-more-650">
<div class="content-styled plain-page">
<h1 class="allupper"><?php _e( 'You searched:', 'paperplane-photography-theme' );?> <?php echo get_search_query(); ?></h1>
</div>
</div>
</div>
</div>
<?php if ( have_posts() ) : ?>
<div class="wrapper">
<div class="wrapper-padded">
<div class="wrapper-padded-more-650">
<div class="news-grid grid-infinite">
<?php
while (have_posts()) : the_post();
include( locate_template ( 'template-parts/grid/search-result.php' ) );
endwhile; wp_reset_postdata();
?>
</div>
</div>
</div>
</div>
<?php include( locate_template ( 'template-parts/grid/infinite-message.php' ) ); ?>
<?php else : ?>
<div class="wrapper">
<div class="wrapper-padded">
<div class="wrapper-padded-more-650">
<h4 class="allupper"><?php _e( 'No results for:', 'paperplane-photography-theme' );?> <?php echo get_search_query(); ?></h4>
</div>
</div>
</div>
<?php endif; ?>
<?php get_footer(); ?>