ExtSearch/src/Application/views/blocks/page/search/d3_inc_ext_search.tpl

50 lines
2.9 KiB
Smarty

[{d3modcfgcheck modid="d3_extsearch"}][{/d3modcfgcheck}]
[{if $mod_d3_extsearch}]
[{block name="d3extsearch_filters"}]
[{if $oModCfg_d3_extsearch->isThemeIdMappedTo('mobile')}]
[{include file="d3_inc_ext_search_mobile.tpl"}]
[{elseif $oModCfg_d3_extsearch->isThemeIdMappedTo('wave')}]
[{** to move the filters across the article boxes, remove the capture tags and the sidebar class definition**}]
[{capture append="oxidBlock_sidebar"}]
[{include file="d3_search_filters_wave.tpl" sidebar_class="d3sidebar" themename=$oModCfg_d3_extsearch->getMappedThemeId()}]
[{/capture}]
[{include file="d3_search_contents_wave.tpl" themename=$oModCfg_d3_extsearch->getMappedThemeId()}]
[{elseif $oModCfg_d3_extsearch->isThemeIdMappedTo('flow')}]
[{** to move the filters across the article boxes, remove the capture tags and the sidebar class definition**}]
[{capture append="oxidBlock_sidebar"}]
[{include file="d3_search_filters_flow.tpl" sidebar_class="d3sidebar" themename=$oModCfg_d3_extsearch->getMappedThemeId()}]
[{/capture}]
[{include file="d3_search_contents_flow.tpl" themename=$oModCfg_d3_extsearch->getMappedThemeId()}]
[{else}]
[{include file="d3_inc_ext_search_azure.tpl"}]
[{/if}]
[{if $oView->getArticleList()|@count == 0 && $blD3HasSelectedFilters}]
<div class="d3searchdeselectform">
<form action="[{$oViewConf->getSelfActionLink()}]" method="post" id="d3searchfilterform">
[{$oViewConf->getHiddenSid()}]
<input type="hidden" name="cl" value="[{$oViewConf->getActiveClassName()}]">
<input type="hidden" name="fnc" value="">
[{foreach from=$oView->getNavigationParams() key="keyname" item="value"}]
[{if $keyname != 'searchcnid' && $keyname != 'searchvendor' && $keyname != 'searchmanufacturer'}]
<input type="hidden" name="[{$keyname|htmlentities}]" value="[{$value|htmlentities}]">
[{/if}]
[{/foreach}]
<input type="hidden" name="isextsearch" value="search">
[{oxmultilang ident="D3_EXTSEARCH_EXT_NOARTDESELECT"}]
[{block name="d3_inc_ext_search__filter_clear"}]
<div class="fullitem clearFilter">
<button type="submit" class="submitButton largeButton" onclick="document.getElementById('d3searchfilterform').isextsearch.value = false; document.getElementById('d3searchfilterform').fnc.value = 'd3ClearFilter'; d3_extsearch_popup.popup.load();">[{oxmultilang ident="D3_EXTSEARCH_EXT_CLEARFILTER"}]</button>
</div>
[{/block}]
</form>
</div>
[{/if}]
[{/block}]
[{/if}]
[{$smarty.block.parent}]