CoreFiles by mySites.guru
searchform.php21 lines, 948 bytes, from wordpress-4.8.21.zip
Raw History Compare with 4.8.20
md5
ccd8c9629d12332988a445cf9be8c1ba
sha1
da0298e413d9a19476c7b323bc53786b344ba8c2
sha256
c47f19424ae6efb4c21673510c9fc7cf8f207d5c19942171bf7621572ff96164
<?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 114 releases, WordPress 4.8-beta1 to 5.0.2. See them all, or every version of this file.