<?php
/**
 * The template for displaying the search form
 *
 * @package WordPress
 * @subpackage Edition
 * @since Edition 1.0
 */
global $tw_options;

// Set search placeholder default
$placeholder = __("Search", 'themewich') . '...';

// Get placeholder text option
if ( isset( $tw_options['search-text'] ) ) {
	$placeholder = $tw_options['search-text'];
} ?>

<!--Searchbox-->
<div class="search-form search">
	<form role="search" method="get" name="SearchForm" class="search-form" action="<?php echo home_url( '/' ); ?>">
		<label>
			<input type="search" class="search-field" placeholder="<?php echo esc_attr( $placeholder ); ?>" value="<?php echo esc_attr( get_search_query() ); ?>" name="s" title="<?php echo esc_attr( $placeholder ); ?>" />
		</label>
	</form>
	<i class="fa fa-search searchbutton"></i>
</div>
<!--Searchbox-->