-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsearchform.php
More file actions
22 lines (20 loc) · 853 Bytes
/
searchform.php
File metadata and controls
22 lines (20 loc) · 853 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
/**
* Search form template
*
* @package MinimalCode
*/
?>
<form role="search" method="get" class="search-form" action="<?php echo esc_url(home_url('/')); ?>">
<label>
<span class="screen-reader-text"><?php _e('Search for:', 'minimalcode'); ?></span>
<input type="search" class="search-field" placeholder="<?php echo esc_attr_x('Search...', 'placeholder', 'minimalcode'); ?>" value="<?php echo get_search_query(); ?>" name="s" />
</label>
<button type="submit" class="search-submit">
<span class="screen-reader-text"><?php _e('Search', 'minimalcode'); ?></span>
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<circle cx="11" cy="11" r="8"></circle>
<path d="m21 21-4.35-4.35"></path>
</svg>
</button>
</form>