
­­­­­­­­­­­­­­­­­­
<!DOCTYPE html>
<html>
<?php
/**
 * Search form template
 */
$settings = $this->get_settings();
$search_placeholder  = ! empty( $settings['search_placeholder'] ) ? $settings['search_placeholder'] : esc_html__( 'Search this site', 'jet-blocks' );

$aria_label = esc_attr( $search_placeholder );

$search_submit_label = ! empty( $settings['search_submit_label'] ) ? $settings['search_submit_label'] : esc_html( 'submit search', 'jet-blocks' );
?>
<form role="search" method="get" class="jet-search__form" action="<?php echo esc_url( home_url( '/' ) ); ?>">
	<label class="jet-search__label">
		<span class="screen-reader-text"><?php echo esc_html( $aria_label ); ?></span>
		<input type="search" class="jet-search__field"  placeholder="<?php echo esc_attr( $settings['search_placeholder'] ); ?>" value="<?php echo get_search_query(); ?>" name="s" aria-label="<?php echo esc_attr( $aria_label ); ?>" />
	</label>
	<?php if ( 'true' ===  $settings['show_search_submit'] ) : ?>
	<button type="submit" class="jet-search__submit" aria-label="<?php echo esc_attr( $search_submit_label ); ?>"><?php
		$this->__icon( 'search_submit_icon', '<span class="jet-search__submit-icon jet-blocks-icon">%s</span>' );
		$this->__html( 'search_submit_label', '<div class="jet-search__submit-label">%s</div>' );
	?></button>
	<?php endif; ?>
	<?php if ( isset( $settings['is_product_search'] ) && 'true' === $settings['is_product_search'] ) : ?>
		<input type="hidden" name="post_type" value="product" />
	<?php endif; ?>
	<?php do_action( 'wpml_add_language_form_field' ); ?>
</form>