-
Notifications
You must be signed in to change notification settings - Fork 0
/
searchform.php
34 lines (34 loc) · 1.32 KB
/
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
27
28
29
30
31
32
33
34
<?php
/**
* The template for displaying the Search Form
*
* The area of the page that contains comments and the comment form.
*
* @package WP_Basic_Bootstrap
* @since WP_Basic_Bootstrap 1.0
*/
?>
<form role="search" method="get" id="searchform" class="searchform" action="<?php echo esc_url(home_url('/')); ?>">
<div class="form-group">
<div class="input-group">
<label class="sr-only" for="s"><?php _x('Search for:', 'label', 'basicbootstrap'); ?></label>
<div class="right-inner-addon">
<i class="sr-only fa fa-search"></i>
<input type="search" class="form-control" value="<?php
echo get_search_query();
?>" placeholder="<?php
esc_attr_e('Search', 'basicbootstrap');
?>" title="<?php
esc_attr_e('Type your search and press enter', 'basicbootstrap');
?>" name="s" id="s" />
</div>
<span class="input-group-btn">
<input class="btn btn-default" type="submit" id="searchsubmit" value="<?php
echo esc_attr_x('Search', 'submit button', 'basicbootstrap');
?>" title="<?php
esc_attr_e('Make your search', 'basicbootstrap');
?>" />
</span>
</div>
</div>
</form>