[{assign var="oCurrency" value=$oFunctions->getActCurrency()}]
[{if $init == "true"}]
<script type="text/javascript" src="[{$basePath}]/SITModuleFramework/lib/javascript/jquery.ui.touch-punch.min.js"></script>
<div id="sitFullsearchFilterMain">
[{/if}]
<div class="sitPowersearchFilter">
    [{if $priceFilterArray}]
    <div class="sitPowersearchFilterGroupPrice">
    	<strong>[{oxmultilang ident="PRICE_FILTER"}]</strong>
        <div id="sitPowersearchPrice"> 
			<ul>
           		<li>
					<label id="sitPowersearchPriceSliderAmount"></label>
					<div id="sitPowersearchPriceSlider"></div>
					<input id="sitPowersearchPriceSliderFilter" type="slider" name="price" value="[{$priceFilterArray.setting}]" style="display: none;">
            		<input type="hidden" id="sitPowersearchPriceSliderCurrency" value="[{$oCurrency->name}]">
				</li>
        	</ul>
        	<script type="text/javascript">
				ps_sliderMinPrice = [{$priceFilterArray.min_price}];
				ps_sliderMaxPrice = [{$priceFilterArray.max_price}];  				
			</script>
        </div> 
    </div>
    [{/if}]

    [{assign var="filtersInfoArray" value=$filterArray["filtersInfo"]}]
    [{assign var="filtersAvailableArray" value=$filterArray["filtersAvailable"]}]     
    [{assign var="filtersSelectedArray" value=$filterArray["filtersSelected"]}]
	[{if $filtersAvailableArray }]
    <div class="sitPowersearchFilterGroupSelection">
        [{foreach from=$filtersAvailableArray key="filterKey" item="filterValues"}]
            <div class="sitPowersearchFilterGroupSelectionEntry">
                <strong>[{$filtersInfoArray[$filterKey].title}]</strong>
                <select name="[{$filterKey}]" id="[{$filterKey}]">
                    <option value="">-</option>
                    
                    [{foreach from=$filterValues key="filterValueKey" item="currentFilterValue"}]
                        <option value="[{$currentFilterValue}]" [{if $filtersSelectedArray[$filterKey].value == $currentFilterValue}]selected[{/if}]>[{$currentFilterValue}]</option>
                    [{/foreach}]
                </select>
            </div>                
        [{/foreach}]
    </div>
   [{/if}]
</div>
[{if $init == "true"}]</div>[{/if}]
[{if $init == "true"}]
<div class="sitPowersearchFilter">
	<div class="sitPowersearchFilterGroupEnhanced">
        [{assign var="filterText" value=""}]
        [{foreach from=$filtersSelectedArray key="filterKey" item="filterValues"}]
            [{if $filterKey == "sitFullsearchFilterText"}]
                [{assign var="filterText" value=$filterValues.value}]
            [{/if}]
        [{/foreach}]
        <strong>[{oxmultilang ident="SEARCH_IN_RESULTS"}]</strong> 
        <input type="text" id="sitFullsearchFilterText" name="sitFullsearchFilterText" value="[{$filterText}]">
		<span id="sitFullsearchFilterTextReset"></span>
    </div>
</div>
[{/if}]