<? if ($settings['category_filter'] || $settings['common_search']):?>
<div class="adc-search-form adc-responsive">
	<? if ($settings['category_filter']):?>
	<span class="category-wrapper">
		<select class="adc-category-filter">
			<option value="0">Categories</option>
			<? foreach($categories as $cat): ?>
				<option value="<?=$cat['id']?>" <?=$search['category'] == $cat['id']? 'selected="1"' : ''?>><?=$cat['title'] ?></option>
			<? endforeach;?>
		</select>
	</span>
	<? endif;?>
	<? if ($settings['common_search']):?>
	<span class="txt-search-wrapper adc-search-box">
		<input type="text" id="adc-search" class="txt-search" />
	</span>
	<? endif;?>
</div>
<? endif;?>