Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (24 sloc) 1.07 KB
<?php
/**
* Search Form Template
*
* The search form template displays the search form.
*
* @package Unique
* @subpackage Template
* @since 0.1.0
* @author Justin Tadlock <justin@justintadlock.com>
* @copyright Copyright (c) 2012, Justin Tadlock
* @link http://themeforest.net/user/greenshady
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*/
?>
<div class="search">
<form method="get" class="search-form" action="<?php echo trailingslashit( home_url() ); ?>">
<div>
<label class="screen-reader-text" for="s"><?php _e( 'Search', 'just-me' ); ?></label>
<input class="search-text" type="text" id="s" name="s" value="<?php if ( is_search() ) echo esc_attr( get_search_query() ); else esc_attr_e( 'Enter search terms...', 'unique' ); ?>" 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" value="<?php esc_attr_e( 'Search', 'unique' ); ?>" />
</div>
</form><!-- .search-form -->
</div><!-- .search -->
Something went wrong with that request. Please try again.