-
Notifications
You must be signed in to change notification settings - Fork 1
/
search.php
57 lines (35 loc) · 1.01 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
49
50
51
52
53
54
55
56
57
<?php
get_header();
//
// HERO
//
// include ( locate_template ( 'template/hero/hero.php' ) );
?>
<?php
if ( have_posts() ) :
?>
<section id="search-intro" class="fw-section fw-page-section">
<div class="fw-container container-fluid">
<div class="row">
<div class="col-10 offset-1 text-center">
<h4>Your search for <em class="search-term"><?php echo get_search_query(); ?></em> returned <span class="search-count"><?php echo $wp_query->post_count; ?></span> result<?php if ( $wp_query->post_count > 1 || $wp_query->post_count == 0 ) echo 's'; ?>.</h4>
</div>
</div>
</div>
</section>
<section id="search-results" class="fw-section fw-page-section">
<div class="fw-container container-fluid">
<?php
$i = 1;
while ( have_posts() ) : the_post();
if ( locate_template ( 'template/search-result.php' ) != '' ) {
include ( locate_template ( 'template/search-result.php' ) );
}
endwhile;
?>
</div>
</section>
<?php
endif;
get_footer();
?>