-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsearch.php
More file actions
44 lines (43 loc) · 1.17 KB
/
search.php
File metadata and controls
44 lines (43 loc) · 1.17 KB
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
<?php get_header(); ?>
<section id="content" role="main">
<?php if ( have_posts() ) : ?>
<header class="header">
</header>
<?php $postCount = 0; ?>
<?php while ( have_posts() ) : the_post();
$postCount++;
?>
<?php endwhile; ?>
<?php if ($postCount > 0){
$searchWord = get_search_query(); ?>
<div class="fullContainer galleryContainer">
<div class="fixedContainerBox">
<div class="fixedContainer">
<div class="galleryWrapper">
<div class="galleryBoxContainer js-isotope" data-isotope-options='{ "columnWidth": 280, "gutter":20, "itemSelector": ".galleryImageContainer" }'>
</div>
</div>
</div>
</div>
<script>
searchWord('<?php echo $searchWord; ?>');
</script>
<?php } ?>
<?php else :
$searchWord = get_search_query();
?>
<div class="fullContainer">
<div class="fixedContainerBox">
<div class="fixedContainer">
<div class="searchText">
<h1>Sorry, we couldn’t find any results for that search. Please try again or <a href="<?php echo get_page_link(382); ?>">browse our inventory</a>.</h1>
</div>
</div>
</div>
<script>
searchWord('<?php echo $searchWord; ?>');
</script>
<?php endif; ?>
</section>
<?php get_sidebar(); ?>
<?php get_footer(); ?>