forked from microweber-templates/bootstrap4
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsearch.php
More file actions
57 lines (48 loc) · 2 KB
/
search.php
File metadata and controls
57 lines (48 loc) · 2 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
45
46
47
48
49
50
51
52
53
54
55
56
57
<?php include template_dir() . "header.php"; ?>
<?php
$keywords = '';
if (isset($_GET['keywords'])) {
$keywords = htmlspecialchars($_GET['keywords']);
}
$searchType = '';
if (isset($_GET['search-type'])) {
$searchType = htmlspecialchars($_GET['search-type']);
}
?>
<section class="iq-breadcrumb overview-block-pt text-center iq-bg iq-bg-fixed iq-over-blue-90" style="background-image: url(<?php print template_url(); ?>assets/images/bg.jpg);">
<div class="container">
<div class="row">
<div class="col-sm-12">
<div class="heading-title white iq-breadcrumb-title iq-mtb-100">
<h1 class="title iq-tw-7"><?php _e('Search results for'); ?>: <span><?php print $keywords; ?></span></h1>
</div>
<module type="breadcrumb"/>
</div>
</div>
</div>
</section>
<section>
<div class="container">
<div class="m-t-70">
<?php if ($searchType == 'shop' OR $searchType == ''): ?>
<h4><em><?php _e('Results found mentioning'); ?></em> “<?php print $keywords; ?>” <?php _lang("in Shop", "templates/qtheme"); ?></h4>
<br /><br />
<div class="row">
<module type="shop/products" limit="18" keyword="<?php print $keywords; ?>" description-length="70"/>
</div>
<br/>
<br/>
<hr/>
<br /><br />
<?php endif; ?>
<div class="clearfix"></div>
<?php if ($searchType == 'blog' OR $searchType == ''): ?>
<h4><em><?php _e('Results found mentioning'); ?></em> “<?php print $keywords; ?>” <?php _lang("in Blog", "templates/qtheme"); ?></h4>
<br/>
<br/>
<module type="posts" limit="18" keyword="<?php print $keywords; ?>" description-length="70"/>
<?php endif; ?>
</div>
</div>
</section>
<?php include template_dir() . "footer.php"; ?>