1{capture name=path}{l s='Search'}{/capture}
2
3<h1
4  {if isset($instant_search) && $instant_search}id="instant_search_results"{/if}
5  class="page-heading {if !isset($instant_search) || (isset($instant_search) && !$instant_search)} product-listing{/if}">
6  {l s='Search'}&nbsp;
7  {if $nbProducts > 0}
8    <span class="lighter">
9      "{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}"
10    </span>
11  {/if}
12  {if isset($instant_search) && $instant_search}
13    <a href="#" class="js-close-instant-search pull-right">
14      {l s='Return to the previous page'}
15    </a>
16  {else}
17    <div class="pull-right">
18      <span class="heading-counter badge">
19        {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}
20      </span>
21    </div>
22  {/if}
23</h1>
24{hook h='displaySearchTop'}
25{include file="$tpl_dir./errors.tpl"}
26{if !$nbProducts}
27  <div class="alert alert-warning">
28    {if isset($search_query) && $search_query}
29      {l s='No results were found for your search'}&nbsp;"{if isset($search_query)}{$search_query|escape:'html':'UTF-8'}{/if}"
30    {elseif isset($search_tag) && $search_tag}
31      {l s='No results were found for your search'}&nbsp;"{$search_tag|escape:'html':'UTF-8'}"
32    {else}
33      {l s='Please enter a search keyword'}
34    {/if}
35  </div>
36{else}
37  {if isset($instant_search) && $instant_search}
38    <div class="alert alert-info">
39      {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}
40    </div>
41  {/if}
42  <div class="content_sortPagiBar">
43    <div class="form-inline sortPagiBar clearfix{if isset($instant_search) && $instant_search} instant_search{/if}">
44      {include file="$tpl_dir./product-sort.tpl"}
45      {if !isset($instant_search) || (isset($instant_search) && !$instant_search)}
46        {include file="./nbr-product-page.tpl"}
47      {/if}
48    </div>
49    <div class="top-pagination-content form-inline clearfix">
50      {include file="./product-compare.tpl"}
51      {if !isset($instant_search) || (isset($instant_search) && !$instant_search)}
52        {include file="$tpl_dir./pagination.tpl" no_follow=1}
53      {/if}
54    </div>
55  </div>
56  {include file="$tpl_dir./product-list.tpl" products=$search_products}
57  <div class="content_sortPagiBar">
58    <div class="bottom-pagination-content form-inline clearfix">
59      {include file="./product-compare.tpl"}
60      {if !isset($instant_search) || (isset($instant_search) && !$instant_search)}
61        {include file="$tpl_dir./pagination.tpl" paginationId='bottom' no_follow=1}
62      {/if}
63    </div>
64  </div>
65{/if}
66{hook h='displaySearchBelow'}