-
Notifications
You must be signed in to change notification settings - Fork 74
Expand file tree
/
Copy pathsearchform.php
More file actions
29 lines (28 loc) · 1.05 KB
/
searchform.php
File metadata and controls
29 lines (28 loc) · 1.05 KB
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
<?php
/**
* Search Form Template
*
* @file searchform.php
* @package Responsive
* @author CyberChimps
* @copyright 2020 CyberChimps
* @license license.txt
* @version Release: 1.0
* @filesource wp-content/themes/responsive/searchform.php
* @link http://codex.wordpress.org/Function_Reference/get_search_form
* @since available since Release 1.0
*/
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
$search_screen = get_theme_mod( 'search_style', 'search' );
?>
<form method="get" id="searchform" class="search-form" action="<?php echo esc_url( home_url( '/' ) ); ?>">
<label class="screen-reader-text" for="s"><?php esc_html_e( 'Search for:', 'responsive' ); ?></label>
<div class="res-search-wrapper">
<input type="search" class="field" name="s" id="s" placeholder="<?php esc_attr_e( 'Search here …', 'responsive' ); ?>" />
<button type="submit" class="search-submit" value="Search"> <span class="res-search-icon icon-search"></span></button>
</div>
</form>
<?php