CoreFiles by mySites.guru
searchform.php20 lines, 947 bytes, from wordpress-4.7.21.zip
Raw History Compare with 4.7.20
md5
e906da709a2da9c3623997e85333133c
sha1
41469281747432a761cf7671f1d5abead145c4de
sha256
800647cc6538fcf28a46da8339d915024fba9228519c73de8a3545fd6f1b44e3
<?php
/**
 * Template for displaying search forms in Twenty Seventeen
 *
 * @package WordPress
 * @subpackage Twenty_Seventeen
 * @since 1.0
 * @version 1.0
 */
?>

<?php $unique_id = esc_attr( uniqid( 'search-form-' ) ); ?>

<form role="search" method="get" class="search-form" action="<?php echo esc_url( home_url( '/' ) ); ?>">
	<label for="<?php echo $unique_id; ?>">
		<span class="screen-reader-text"><?php echo _x( 'Search for:', 'label', 'twentyseventeen' ); ?></span>
	</label>
	<input type="search" id="<?php echo $unique_id; ?>" class="search-field" placeholder="<?php echo esc_attr_x( 'Search &hellip;', 'placeholder', 'twentyseventeen' ); ?>" value="<?php echo get_search_query(); ?>" name="s" />
	<button type="submit" class="search-submit"><?php echo twentyseventeen_get_svg( array( 'icon' => 'search' ) ); ?><span class="screen-reader-text"><?php echo _x( 'Search', 'submit button', 'twentyseventeen' ); ?></span></button>
</form>

The same content is in 51 releases, WordPress 4.7-beta1 to 4.7.40. See them all, or every version of this file.