<?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 = basho_unique_id( 'search-form-' );

$aria_label = ! empty( $args['label'] ) ? 'aria-label="' . esc_attr( $args['label'] ) . '"' : '';
?>
<form class="search-form uk-width-1-1" 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:', 'basho' ); ?></span>
		<input class="uk-input uk-form-large" type="search" id="<?php echo esc_attr( $unique_id ); ?>" placeholder="<?php esc_attr_e( 'Search&hellip;', 'basho' ); ?>" value="<?php echo get_search_query(); ?>" name="s">
        <span class="uk-text-meta"><?php esc_html_e( 'Press Enter / Return to start your search.', 'basho' ); ?></span>
    </label>
	<br>
	<input type="submit" class="search-submit uk-button uk-button-link" value="<?php esc_attr_e( 'Search', 'basho' ); ?>">
</form>
