<?php

$search_post_type =  rad_get_option("search_post_type");

if (!$search_post_type) { // set on product when update theme 
    $search_post_type = "product";
}
?>
<form role="search" method="get" class="searchform" action="<?php echo esc_url(home_url("/"));?>">
	<input type="text" placeholder="&nbsp;<?php echo esc_attr_x( "Type what are you looking for", "submit button", "aventa" ); ?>" value="<?php echo get_search_query(); ?>" name="s" class="search-input" autocomplete="off" />
	<span class="preloader"></span>
	<span class="result-count"><span></span> <?php esc_html_e( "items", "aventa" ); ?></span>
	<span class="reset-search underline-style init-show"><?php esc_html_e( "Reset", "aventa" ); ?></span>
	<span class="go-to-search underline-style init-show"><?php esc_html_e( "Go to search page", "aventa" ); ?></span>
    <span class="results sc"></span>
    <input type="hidden" name="post_type" value="<?php echo esc_attr($search_post_type);?>">
    <input type="hidden" name="cat" value="">
</form>
