-
Notifications
You must be signed in to change notification settings - Fork 0
/
searchform.php
executable file
·23 lines (20 loc) · 1.09 KB
/
searchform.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
/**
* Search Form Template
*
* The search form template displays the search form.
*
* @package Hybrid
* @subpackage Template
*/
global $search_num;
++$search_num;
?>
<div id="search<?php if ( $search_num ) echo "-{$search_num}"; ?>" class="search">
<form method="get" class="search-form" id="search-form<?php if ( $search_num ) echo "-{$search_num}"; ?>" action="<?php echo trailingslashit( home_url() ); ?>">
<div>
<input class="search-text" type="text" name="s" id="search-text<?php if ( $search_num) echo "-{$search_num}"; ?>" value="<?php if ( is_search() ) echo esc_attr( get_search_query() ); else esc_attr_e( 'Search this site...', hybrid_get_textdomain() ); ?>" onfocus="if(this.value==this.defaultValue)this.value='';" onblur="if(this.value=='')this.value=this.defaultValue;" />
<input class="search-submit button" name="submit" type="submit" id="search-submit<?php if ( $search_num ) echo "-{$search_num}"; ?>" value="<?php esc_attr_e( 'Search', hybrid_get_textdomain() ); ?>" />
</div>
</form><!-- .search-form -->
</div><!-- .search -->