-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.php
70 lines (69 loc) · 3.03 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
70
<?php
if(osc_count_items() == 0 || stripos($_SERVER['REQUEST_URI'], 'search')) {
osc_add_hook('header','market_nofollow_construct');
} else {
osc_add_hook('header','market_follow_construct');
}
market_add_body_class('search');
?>
<?php osc_current_web_theme_path('header.php') ; ?>
<section id="search" class="pt-4 pb-4 gray-bg">
<div class="container">
<div class="filter text-right">
<?php if(osc_is_admin_user_logged_in()) { ?>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input type="checkbox" class="form-check-input" value=""> Plugins
</label>
</div>
<div class="form-check form-check-inline disabled">
<label class="form-check-label">
<input type="checkbox" class="form-check-input" value="" disabled> Themes
</label>
</div>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input type="checkbox" class="form-check-input" value=""> Free
</label>
</div>
<div class="form-check form-check-inline disabled">
<label class="form-check-label">
<input type="checkbox" class="form-check-input" value="" disabled> Paid
</label>
</div>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input type="checkbox" class="form-check-input" value=""> Latest
</label>
</div>
<div class="form-check form-check-inline disabled">
<label class="form-check-label">
<input type="checkbox" class="form-check-input" value="" disabled> Downloads
</label>
</div>
<?php } ?>
</div>
</div>
</section>
<section id="search-data" class="mt-4">
<div class="container">
<div class="row">
<?php osc_current_web_theme_path('search-sidebar.php'); ?>
<div class="col-md-9">
<h1><?php echo search_title(); ?></h1>
<?php if(osc_count_items() == 0) { ?>
<p class="empty" ><?php printf(__('There are no results matching "%s"', 'market'), osc_search_pattern()) ; ?></p>
<?php } else { ?>
<?php if(osc_count_items() > 0) { ?>
<?php View::newInstance()->_exportVariableToView("listType", 'items'); ?>
<?php osc_current_web_theme_path('loop.php'); ?>
<div class="paginate">
<?php // echo osc_search_pagination(); ?>
</div>
<?php } ?>
<?php } ?>
</div>
</div>
</div>
</section>
<?php osc_current_web_theme_path('footer.php'); ?>