<?php 
$keyword_field = houzez_option('keyword_field');
if( $keyword_field == 'prop_title' ) {
    $keyword_placeholder = houzez_option('srh_keyword', 'Enter Keyword...');

} else if( $keyword_field == 'prop_city_state_county' ) {
    $keyword_placeholder = houzez_option('srh_csa', 'Search City, State or Area');

} else if( $keyword_field == 'prop_address' ) {
    $keyword_placeholder = houzez_option('srh_address', 'Enter an address, town, street, zip or property ID');

} else {
    $keyword_placeholder = houzez_option('srh_keyword', 'Enter Keyword...');
}

$keyword_autocomplete = houzez_option('keyword_autocomplete');

$keyword = isset($_GET['keyword']) ? sanitize_text_field($_GET['keyword']) : ''; ?>
<div class="form-group">
	<div class="search-icon">
		<?php if( $keyword_autocomplete != 1 ) { ?>
		<input name="keyword" type="text" class="<?php houzez_ajax_search(); ?> houzez-keyword-autocomplete form-control" value="<?php echo esc_html($keyword); ?>" placeholder="<?php echo esc_attr($keyword_placeholder); ?>">
		<div id="auto_complete_ajax" class="auto-complete"></div>
		<?php } else { ?>

			<input name="keyword" type="text" class="houzez-keyword-autocomplete form-control" value="<?php echo esc_attr($keyword); ?>" placeholder="<?php echo esc_attr($keyword_placeholder); ?>">
			<div id="auto_complete_ajax" class="auto-complete"></div>
		<?php } ?>
	</div><!-- search-icon -->
</div><!-- form-group -->