<?php 

extract( $args );
extract( $instance );
$title = apply_filters('widget_title', $instance['title']);

if ( $title ) {
    echo ($before_title)  .trim( $title ) . $after_title;
}

?>
<div class="widget-newletter  style1">

    <form action="<?php echo esc_url( home_url( '/' ) ); ?>" method="get">
		
	  	<div class="input-group">
	  		<input type="text" placeholder="<?php echo esc_attr(esc_html__( 'Search', 'yozi' )); ?>" name="s" class="apus-search form-control"/>
			<span class="input-group-btn">
				<button type="submit" class="btn"><i class="fa fa-long-arrow-right"></i></button>
			</span>
	  	</div>
		<?php if ( isset($post_type) && $post_type ): ?>
			<input type="hidden" name="post_type" value="<?php echo esc_attr($post_type); ?>" class="post_type" />
		<?php endif; ?>
	</form>

</div>