<? if ($settings['category_filter'] || $settings['common_search']):?>
<div class="adc-search-form adc-responsive" data-sticky-offset="<?=get_option("adc_details_sticky_offset")?>">
	<? 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']?>"><?=$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;?>