<?php
/**
 * Search Form Template for Blog Over
 *
 * This template provides a WordPress-compliant search form 
 * that can be used with get_search_form().
 *
 * @package Blog_Over
 */

if (!defined('ABSPATH')) {
    exit;
}
?>
<form role="search" method="get" class="blog-over-search-form search-form"
    action="<?php echo esc_url(home_url('/')); ?>">
    <label class="screen-reader-text" for="blog-over-search-input">
        <?php esc_html_e('Search for:', 'blog-over'); ?>
    </label>
    <input type="search" id="blog-over-search-input" class="blog-over-search-input search-field"
        placeholder="<?php esc_attr_e('Search...', 'blog-over'); ?>" value="<?php echo esc_attr(get_search_query()); ?>"
        name="s" autocomplete="off">
    <button type="submit" class="blog-over-search-submit search-submit"
        aria-label="<?php esc_attr_e('Submit search', 'blog-over'); ?>">
        <i class="fas fa-search" aria-hidden="true"></i>
        <span class="screen-reader-text">
            <?php esc_html_e('Search', 'blog-over'); ?>
        </span>
    </button>
</form>