diff options
| author | Max | 2018-10-15 23:46:42 +0200 |
|---|---|---|
| committer | Max | 2018-10-15 23:46:42 +0200 |
| commit | 00c9709fd9763542e848f6278db8ba26af5c9886 (patch) | |
| tree | 92cb1c1ee4c467118e1e5a4c7e233d3feac6efa8 /searchform.php | |
| download | fuselkoenig_de-00c9709fd9763542e848f6278db8ba26af5c9886.tar.gz | |
Initial commit.
Diffstat (limited to 'searchform.php')
| -rw-r--r-- | searchform.php | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/searchform.php b/searchform.php new file mode 100644 index 0000000..d4e3435 --- /dev/null +++ b/searchform.php @@ -0,0 +1,22 @@ +<?php +/** + * The template for displaying search forms in Underscores.me + * + * @package understrap + */ + +if ( ! defined( 'ABSPATH' ) ) { + exit; // Exit if accessed directly. +} +?> + +<form class="form-inline my-2 my-lg-0 float-none float-sm-right" 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> + <div class="input-group"> + <input class="field form-control" id="s" name="s" type="text" + placeholder="<?php esc_attr_e( 'Den Blog durchsuchen…', 'understrap' ); ?>" value="<?php the_search_query(); ?>"> + <span class="input-group-append"> + <button class="btn btn-dark my-2 my-sm-0" id="searchsubmit" name="submit" type="submit"><i class="material-icons">search</i></button> + </span> + </div> +</form> |
