-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate-catalog-v2.php
44 lines (32 loc) · 1.34 KB
/
template-catalog-v2.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
<div id="helpers">
<div class="wrap">
<div class="ajax-search">
<div class="ajax-search-relative">
<input type="text" name="productSearch" id="productSearch" value="" placeholder="<?php _e('Search for a Product','ocart'); ?>" />
<ul class="ajax-search-results">
<!-- ajax search results appear here -->
</ul>
</div>
</div>
<!-- switch to grid -->
<?php if (ocart_get_option('show_sliderbtn')) { ?>
<a id="switchToSlider" href="<?php echo home_url(); ?>#slider"><?php _e('Switch to Slider View','ocart'); ?></a>
<?php } ?>
<!-- done -->
</div>
</div>
<div id="index">
<div class="wrap">
<!-- categories, options -->
<div class="filter">
<?php ocart_show_grid_filters() ?>
</div>
<div class="catalog">
<?php $posts = get_posts( array( 'post_type' => 'product', 'numberposts' => -1 ) ); ?>
<div class="catalog_title"><ins><?php _e('All Products','ocart'); ?></ins><span><?php if (count($posts) == 1) { printf(__('<span class="totalprod"><span id="products_count">%s</span> Product Found</span>','ocart'), count($posts)); } else { printf(__('<span class="totalprod"><span id="products_count">%s</span> Products Found</span>','ocart'), count($posts)); } ?></span></div>
<ul class="catalog_list">
<!-- data -->
</ul><div class="clear"></div>
</div><div class="clear"></div>
</div>
</div>