<?php
/**
 * Displays the search icon and modal
 *
 * @package United Blog
 */

?>
<div class="search-modal cover-modal header-footer-group" data-modal-target-string=".search-modal" role="dialog" aria-modal="true" aria-label="<?php esc_attr_e( 'Search', 'united-blog' ); ?>">

	<div class="search-modal-inner modal-inner">

		<div class="wrapper">
            <div class="search-modal-panel">
                <h2><?php esc_html_e('What are You Looking For?', 'united-blog'); ?></h2>

                <div class="search-modal-form">
                    <?php
                    get_search_form(
                        array(
                            'aria_label' => __('Search for:', 'united-blog'),
                        )
                    );
                    ?>
                </div>
                <button class="toggle close-search-toggle" data-toggle-target=".search-modal"
                        data-toggle-body-class="showing-search-modal" data-set-focus=".search-modal .search-field">
				<span class="screen-reader-text">
					<?php
                    /* translators: Hidden accessibility text. */
                    _e('Close search', 'united-blog');
                    ?>
				</span>
                    <?php united_blog_the_theme_svg('cross'); ?>
                </button><!-- .search-toggle -->
            </div>
		</div>

	</div><!-- .search-modal-inner -->

</div><!-- .menu-modal -->
