This repository has been archived by the owner on Mar 4, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
zy: Improved usability and styling of search box. Props to issue owne…
…r (Issue #152).
- Loading branch information
Showing
3 changed files
with
12 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<form method="get" class="searchform clearfix" action="<?php echo home_url(); ?>/"> | ||
<input type="text" value="<?php if ('' == get_search_query()) { _e('Search...', 'arras'); } else { the_search_query(); } ?>" name="s" class="s" onfocus="this.value=''" /> | ||
<input type="submit" class="searchsubmit" value="<?php _e('Search', 'arras') ?>" title="<?php printf( __('Search %s', 'arras'), esc_html( get_bloginfo('name'), 1 ) ) ?>" /> | ||
</form> | ||
<input type="text" value="<?php echo ( '' == get_search_query() ) ? __( 'Search this site', 'arras' ) : the_search_query() ?>" name="s" class="s" onfocus="if ( this.value == '<?php _e( 'Search this site', 'arras' ) ?>' ) this.value = ''" onblur="if ( this.value == '' ) this.value = '<?php _e( 'Search this site', 'arras' ) ?>'" /> | ||
<input type="submit" class="searchsubmit" value="<?php _e( 'Search', 'arras' ) ?>" title="<?php printf( __( 'Search %s', 'arras' ), esc_html( get_bloginfo('name') ) ) ?>" /> | ||
</form> |