-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathsearch.php
69 lines (48 loc) · 1.48 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
58
59
60
61
62
63
64
65
66
67
68
69
<?php
/**
* The template for displaying search results pages.
*
*/
get_header(); ?>
<!-- Wrapper start -->
<div class="main">
<!-- Post single start -->
<?php
$shop_isle_header_image = get_header_image();
if( !empty($shop_isle_header_image) ):
echo '<section class="page-header-module module bg-dark" data-background="'.$shop_isle_header_image.'">';
else:
echo '<section class="page-header-module module bg-dark">';
endif;
?>
<div class="container">
<div class="row">
<div class="col-sm-6 col-sm-offset-3">
<h1 class="module-title font-alt"><?php printf( __( 'Search Results for: %s', 'shop-isle' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
</div>
</div>
</div><!-- .container -->
<?php
echo '</section>';
echo '<section class="module">';
?>
<div class="container">
<div class="row">
<!-- Content column start -->
<div class="col-sm-8">
<?php if ( have_posts() ) : ?>
<?php get_template_part( 'loop' ); ?>
<?php else : ?>
<?php get_template_part( 'content', 'none' ); ?>
<?php endif; ?>
</div><!-- Content column end -->
<!-- Sidebar column start -->
<div class="col-sm-4 col-md-3 col-md-offset-1 sidebar">
<?php do_action( 'shop_isle_sidebar' ); ?>
</div>
<!-- Sidebar column end -->
</div><!-- .row -->
</div>
</section>
<!-- Post single end -->
<?php get_footer(); ?>