-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathsearch.tpl
66 lines (65 loc) · 2.78 KB
/
search.tpl
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
{capture name=path}{l s='Search'}{/capture}
<h1
{if isset($instant_search) && $instant_search}id="instant_search_results"{/if}
class="page-heading {if !isset($instant_search) || (isset($instant_search) && !$instant_search)} product-listing{/if}">
{l s='Search'}
{if $nbProducts > 0}
<span class="lighter">
"{if isset($search_query) && $search_query}{$search_query|escape:'html':'UTF-8'}{elseif $search_tag}{$search_tag|escape:'html':'UTF-8'}{elseif $ref}{$ref|escape:'html':'UTF-8'}{/if}"
</span>
{/if}
{if isset($instant_search) && $instant_search}
<a href="#" class="js-close-instant-search pull-right">
{l s='Return to the previous page'}
</a>
{else}
<div class="pull-right">
<span class="heading-counter badge">
{if $nbProducts == 1}{l s='%d result has been found.' sprintf=$nbProducts|intval}{else}{l s='%d results have been found.' sprintf=$nbProducts|intval}{/if}
</span>
</div>
{/if}
</h1>
{hook h='displaySearchTop'}
{include file="$tpl_dir./errors.tpl"}
{if !$nbProducts}
<div class="alert alert-warning">
{if isset($search_query) && $search_query}
{l s='No results were found for your search'} "{if isset($search_query)}{$search_query|escape:'html':'UTF-8'}{/if}"
{elseif isset($search_tag) && $search_tag}
{l s='No results were found for your search'} "{$search_tag|escape:'html':'UTF-8'}"
{else}
{l s='Please enter a search keyword'}
{/if}
</div>
{else}
{if isset($instant_search) && $instant_search}
<div class="alert alert-info">
{if $nbProducts == 1}{l s='%d result has been found.' sprintf=$nbProducts|intval}{else}{l s='%d results have been found.' sprintf=$nbProducts|intval}{/if}
</div>
{/if}
<div class="content_sortPagiBar">
<div class="form-inline sortPagiBar clearfix{if isset($instant_search) && $instant_search} instant_search{/if}">
{include file="$tpl_dir./product-sort.tpl"}
{if !isset($instant_search) || (isset($instant_search) && !$instant_search)}
{include file="./nbr-product-page.tpl"}
{/if}
</div>
<div class="top-pagination-content form-inline clearfix">
{include file="./product-compare.tpl"}
{if !isset($instant_search) || (isset($instant_search) && !$instant_search)}
{include file="$tpl_dir./pagination.tpl" no_follow=1}
{/if}
</div>
</div>
{include file="$tpl_dir./product-list.tpl" products=$search_products}
<div class="content_sortPagiBar">
<div class="bottom-pagination-content form-inline clearfix">
{include file="./product-compare.tpl"}
{if !isset($instant_search) || (isset($instant_search) && !$instant_search)}
{include file="$tpl_dir./pagination.tpl" paginationId='bottom' no_follow=1}
{/if}
</div>
</div>
{/if}
{hook h='displaySearchBelow'}