-
Notifications
You must be signed in to change notification settings - Fork 0
/
searchform.php
24 lines (22 loc) · 934 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
<?php
/**
* Template for displaying search forms in elakisto
* code taken from Twenty Seventeen
*
* @package WordPress
* @subpackage elakisto
* @since 1.0
* @version 1.0
*/
?>
<?php $unique_id = uniqid( 'search-form-' ); ?>
<form role="search" method="get" class="search-form" action="<?php echo esc_url( home_url( '/' ) ); ?>">
<label for="<?php echo esc_attr($unique_id); ?>">
<span class="screen-reader-text"><?php echo _x( 'Search for:', 'label', 'elakisto' ); ?></span>
</label>
<input type="search" id="<?php echo esc_attr($unique_id); ?>" class="search-field" placeholder="<?php echo esc_attr_x( 'What are you looking for?', 'placeholder', 'elakisto' ); ?>" value="<?php echo get_search_query(); ?>" name="s" />
<button type="submit" class="search-submit clear-button">
<span class="screen-reader-text"><?php echo esc_html__( 'Search', 'elakisto' ); ?></span>
<i class="icon-search"></i>
</button>
</form>