-
Notifications
You must be signed in to change notification settings - Fork 0
/
searchform.php
20 lines (18 loc) · 895 Bytes
/
searchform.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php
/**
* Template for displaying search form
* -----------------------------------
* @package gyaan
* @since 1.0.0
*/
?>
<?php $id = esc_attr( uniqid( 'gyaan-search-field-' ) ); ?>
<form role="search" method="get" class="search-form gyaan-search-form form-inline needs-validation" action="<?php echo esc_url( home_url( '/' ) ); ?>" novalidate>
<div class="input-group">
<label class="screen-reader-text" for="<?php echo $id; ?>"><?php echo _x( 'Search for:', 'label', 'gyaan' ); ?></label>
<input type="search" id="<?php echo $id; ?>" class="search-field form-control" placeholder="<?php echo esc_attr_x( 'Search', 'placeholder', 'gyaan' ); ?>" value="<?php echo get_search_query(); ?>" name="s" required />
<div class="input-group-append">
<button type="submit" class="search-submit btn btn-primary"><span class="oi oi-magnifying-glass"></span></button>
</div>
</div>
</form>