<?php
/**
 * The Search Form Template
 *
 * @package Dotspice
 * @version 1.3.0
 */
?>

<form role="search" method="get" class="search-form" action="<?php echo site_url(); ?>/">
	<label class="screen-reader-text"><?php esc_html_e( 'Search', 'dotspice' ); ?>:</label>
	<input type="search" class="form-control" placeholder="<?php esc_html_e( 'Search...', 'dotspice' ); ?>" value="" name="s">
	<button type="submit" class="search-submit"><?php
		$search_icon = dotspice_get_theme_option( 'header_button_search_posts' );

		if ( ! empty( $search_icon['icon'] ) ) {
			echo dotspice_get_svg_icon( esc_attr( $search_icon['icon'] ) );
		}
	?></button>
</form>