2016-03-03 19:38:28 +00:00
|
|
|
<?php
|
|
|
|
/**
|
2018-11-18 20:45:52 +00:00
|
|
|
* The template for displaying search forms
|
2016-03-03 19:38:28 +00:00
|
|
|
*
|
|
|
|
* @package understrap
|
|
|
|
*/
|
2016-11-01 15:25:21 +00:00
|
|
|
|
2019-06-20 08:57:12 +00:00
|
|
|
// Exit if accessed directly.
|
|
|
|
defined( 'ABSPATH' ) || exit;
|
2016-11-21 18:47:05 +00:00
|
|
|
?>
|
2018-09-10 21:59:04 +00:00
|
|
|
|
2016-11-01 15:25:21 +00:00
|
|
|
<form method="get" id="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>" role="search">
|
2018-08-20 06:32:04 +00:00
|
|
|
<label class="sr-only" for="s"><?php esc_html_e( 'Search', 'understrap' ); ?></label>
|
2016-11-21 18:47:05 +00:00
|
|
|
<div class="input-group">
|
|
|
|
<input class="field form-control" id="s" name="s" type="text"
|
2017-11-29 09:56:38 +00:00
|
|
|
placeholder="<?php esc_attr_e( 'Search …', 'understrap' ); ?>" value="<?php the_search_query(); ?>">
|
2018-03-03 19:09:49 +00:00
|
|
|
<span class="input-group-append">
|
2016-11-21 18:47:05 +00:00
|
|
|
<input class="submit btn btn-primary" id="searchsubmit" name="submit" type="submit"
|
|
|
|
value="<?php esc_attr_e( 'Search', 'understrap' ); ?>">
|
2018-11-18 20:45:52 +00:00
|
|
|
</span>
|
2016-11-21 18:47:05 +00:00
|
|
|
</div>
|
2016-11-01 15:25:21 +00:00
|
|
|
</form>
|