readd searchform

This commit is contained in:
Michel Roux 2024-03-01 14:25:08 +01:00
parent 44aa649a4f
commit 820d6a4ce5
1 changed files with 13 additions and 0 deletions

13
searchform.php Normal file
View File

@ -0,0 +1,13 @@
<?php
/**
* The template for displaying search forms in superhero
*
* @package Superhero
* @since Superhero 1.0
*/
?>
<form method="get" id="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>" role="search">
<label for="s" class="assistive-text"><?php _e( 'Search', 'superhero' ); ?></label>
<input type="text" class="field" name="s" value="<?php echo esc_attr( get_search_query() ); ?>" id="s" placeholder="<?php esc_attr_e( 'Search &hellip;', 'superhero' ); ?>" />
<input type="submit" class="submit" name="submit" id="searchsubmit" value="Go!" />
</form>