CoreFiles by mySites.guru
modal-search.php34 lines, 1,022 bytes, from wordpress-6.0.zip
Raw History Compare with 5.9.21
md5
368676901086a4d675c8284dad4557f3
sha1
85fed97f5668673dd8f16df496246fc61924b829
sha256
afc6345e8d87af5992ed1e824bc85773ef9f8332f2bb9e6d2f0649068d6f4ae1
<?php
/**
 * Displays the search icon and modal
 *
 * @package WordPress
 * @subpackage Twenty_Twenty
 * @since Twenty Twenty 1.0
 */

?>
<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', 'twentytwenty' ); ?>">

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

		<div class="section-inner">

			<?php
			get_search_form(
				array(
					'aria_label' => __( 'Search for:', 'twentytwenty' ),
				)
			);
			?>

			<button class="toggle search-untoggle close-search-toggle fill-children-current-color" 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 _e( 'Close search', 'twentytwenty' ); ?></span>
				<?php twentytwenty_the_theme_svg( 'cross' ); ?>
			</button><!-- .search-toggle -->

		</div><!-- .section-inner -->

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

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

The same content is in 34 releases, WordPress 6.0-beta1 to 6.1-RC1. See them all, or every version of this file.