<?php
/**
 * The searchform.php template.
 */

/*
 * Generate a unique ID for each form and a string containing an aria-label if
 * one was passed to get_search_form() in the args array.
 */
$unique_id = eisai_unique_id( 'search-form-' );

$aria_label = ! empty( $args['label'] ) ? 'aria-label="' . esc_attr( $args['label'] ) . '"' : '';
?>
<form class="search-form" role="search" <?php echo $aria_label; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Escaped above. ?> method="get" action="<?php echo esc_url( home_url( '/' ) ); ?>">
	<label for="<?php echo esc_attr( $unique_id ); ?>">
		<span class="screen-reader-text"><?php esc_html_e( 'Search for:', 'eisai' ); ?></span>
		<input class="uk-input uk-form-large uk-margin-bottom" type="search" id="<?php echo esc_attr( $unique_id ); ?>" placeholder="<?php esc_attr_e( 'Search&hellip;', 'eisai' ); ?>" value="<?php echo get_search_query(); ?>" name="s">
        <span class="uk-text-meta"><?php esc_html_e( 'Press Enter / Return to start your search.', 'eisai' ); ?></span>
    </label>
	<br>
	<input type="submit" class="search-submit uk-button uk-button-link" value="<?php esc_attr_e( 'Search', 'eisai' ); ?>">
</form>
