<?php
/**
 * Template for displaying search forms in Draly
 *
 * @package    WordPress
 * @subpackage Draly
 * @since      1.0
 * @version    1.0
 */
?>

<?php $unique_id = esc_attr( uniqid( 'search-form-' ) ); ?>

<form method="get" class="search-form" action="<?php echo esc_url( home_url( '/' ) ); ?>">
    <input type="search" id="<?php echo esc_attr( $unique_id ); ?>" class="search-field"
           placeholder="<?php echo esc_attr_x( 'Your search here&hellip;', 'placeholder', 'draly-dropshipping-starter' ); ?>"
           value="<?php echo esc_attr( get_search_query() ); ?>" name="s"/>
    <button type="submit" class="search-submit"><?php echo esc_html__( 'Search', 'draly-dropshipping-starter' ); ?></button>
</form>