forked from ramiy/astra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
searchform.php
26 lines (25 loc) · 940 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
24
25
26
<?php
/**
* Search Form for Astra theme.
*
* @package Astra
* @author Brainstorm Force
* @copyright Copyright (c) 2020, Brainstorm Force
* @link https://www.brainstormforce.com
* @since Astra 3.3.0
*/
?>
<form role="search" method="get" class="search-form" action="<?php echo esc_url( home_url( '/' ) ); ?>">
<label>
<span class="screen-reader-text"><?php echo esc_html__( 'Search for:', 'astra' ); ?></span>
<input type="search" class="search-field" placeholder="<?php echo esc_html( astra_default_strings( 'string-search-input-placeholder', false ) ); ?>" value="" name="s">
<?php if ( Astra_Icons::is_svg_icons() ) { ?>
<button class="search-submit">
<span hidden><?php echo esc_html__( 'Search', 'astra' ); ?></span>
<i><?php Astra_Icons::get_icons( 'search', true ); ?></i>
</button>
<?php } ?>
</label>
<input type="submit" class="search-submit" value="Search">
</form>
<?php