24 lines
932 B
Smarty
24 lines
932 B
Smarty
{capture name=path}{l s='Search'}{/capture}
|
|
{include file=$tpl_dir./breadcrumb.tpl}
|
|
|
|
<h2>{l s='Search'} {if $nbProducts > 0}"{if $query}{$query|escape:'htmlall':'UTF-8'}{elseif $tag}{$tag|escape:'htmlall':'UTF-8'}{elseif $ref}{$ref|escape:'htmlall':'UTF-8'}{/if}"{/if}</h2>
|
|
|
|
{include file=$tpl_dir./errors.tpl}
|
|
|
|
{if !$nbProducts}
|
|
<p class="warning">
|
|
{if $query}
|
|
{l s='No results found for your search'} "{$query|escape:'htmlall':'UTF-8'}"
|
|
{elseif $tag}
|
|
{l s='No results found for your search'} "{$tag|escape:'htmlall':'UTF-8'}"
|
|
{else}
|
|
{l s='Please type a search keyword'}
|
|
{/if}
|
|
</p>
|
|
{else}
|
|
<h3><span class="big">{$nbProducts|intval}</span> {if $nbProducts == 1}{l s='result has been found.'}{else}{l s='results have been found.'}{/if}</h3>
|
|
{include file=$tpl_dir./product-sort.tpl}
|
|
{include file=$tpl_dir./product-list.tpl products=$products}
|
|
{include file=$tpl_dir./pagination.tpl}
|
|
{/if}
|