<div id="search" class="popup">
  <div class="custom-search">
    <div class="search-form">
	<?php 
	$display_search_advanced  = ot_get_option('display_search_advanced', false);
	if ($display_search_advanced  == 'on'):	
		custom_search_form(array(
					'echo'=>1,
						'archive_show'=>1,
						'cat_show'=>1,
						'tag_show'=>1,
						'author_show'=>1,
						'label_show'=>1,
		));
	else:
		get_search_form();
	endif;
	?>
    </div>
  </div>
  <?php
  	$display_search_advanced  = ot_get_option('display_search_advanced', false);
	  if ($display_search_advanced  == 'off'):	
  ?>
	<div class="row cat_search_box">
		<div class="col-6 col-lg-3">
			<a href="<?php echo ot_get_option('search_advanced_link_1'); ?>" class="box-search-a">
				<img class="icon-resize" src="<?php echo ot_get_option('search_advanced_img_1'); ?>">
			</a>
		</div>
		<div class="col-6 col-lg-3">
			<a href="<?php echo ot_get_option('search_advanced_link_2'); ?>" class="box-search-a">
				<img class="icon-resize" src="<?php echo ot_get_option('search_advanced_img_2'); ?>">
			</a>
		</div>
		<div class="col-6 col-lg-3">
			<a href="<?php echo ot_get_option('search_advanced_link_3'); ?>" class="box-search-a">
				<img class="icon-resize" src="<?php echo ot_get_option('search_advanced_img_3'); ?>">
			</a>
		</div>
		<div class="col-6 col-lg-3">
			<a href="<?php echo ot_get_option('search_advanced_link_4'); ?>" class="box-search-a">
				<img class="icon-resize" src="<?php echo ot_get_option('search_advanced_img_4'); ?>">
			</a>
		</div>
	</div>
	<?php endif; ?>
  </div>
<a href="#" class="close-popup"></a>
