forked from elmastudio/aino-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsearchform.php
23 lines (21 loc) · 908 Bytes
/
searchform.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
/**
* Displays the search form
*
* @package Aino
*/
?>
<div class="searchform-wrap">
<form role="search" method="get" class="search-form" action="<?php echo esc_url( home_url( '/' ) ); ?>">
<label>
<span class="screen-reader-text"><?php echo esc_attr_x( 'Search', 'label', 'aino' ); ?></span>
</label>
<?php // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
<span class="search-icon"><?php echo aino_get_svg( array( 'icon' => 'baseline-search-24px' ) ); ?></span>
<input type="search" class="search-field"
placeholder="<?php echo esc_attr_x( 'Search…', 'placeholder', 'aino' ); ?>"
value="<?php echo get_search_query(); ?>" name="s"
title="<?php echo esc_attr_x( 'Search for:', 'label', 'aino' ); ?>" />
<button type="submit" class="search-submit"><span><?php echo esc_html_e( 'Search', 'aino' ); ?></span></button>
</form>
</div>