forked from understrap/understrap
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsearchform.php
More file actions
22 lines (20 loc) · 735 Bytes
/
searchform.php
File metadata and controls
22 lines (20 loc) · 735 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
/**
* The template for displaying search forms
*
* @package tinybit
*/
// Exit if accessed directly.
defined( 'ABSPATH' ) || exit;
?>
<form method="get" id="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>" role="search">
<label class="sr-only" for="s"><?php esc_html_e( 'Search', 'tinybit' ); ?></label>
<div class="input-group">
<input class="field form-control" id="s" name="s" type="text"
placeholder="<?php esc_attr_e( 'Search …', 'tinybit' ); ?>" value="<?php the_search_query(); ?>">
<span class="input-group-append">
<input class="submit btn btn-primary" id="searchsubmit" name="submit" type="submit"
value="<?php esc_attr_e( 'Search', 'tinybit' ); ?>">
</span>
</div>
</form>