This repository has been archived on 2020-05-08. You can view files and clone it, but cannot push or open issues or pull requests.
understrap/searchform.php

24 lines
758 B
PHP
Raw Permalink Normal View History

<?php
/**
2018-11-18 20:45:52 +00:00
* The template for displaying search forms
*
* @package understrap
*/
2018-09-10 21:59:04 +00:00
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
2016-11-21 18:47:05 +00:00
?>
2018-09-10 21:59:04 +00:00
<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', '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"
placeholder="<?php esc_attr_e( 'Search &hellip;', 'understrap' ); ?>" value="<?php the_search_query(); ?>">
<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>
</form>