Wordpress/wp-content/themes/twentyten/searchform.php

20 lines
545 B
PHP

<?php
/**
* The Search Form
*
* Optional file that allows displaying a custom search form
* when the get_search_form() template tag is used.
*
* @package WordPress
* @subpackage Twenty Ten
* @since 3.0.0
*/
?>
<form id="searchform" name="searchform" method="get" action="<?php echo home_url(); ?>">
<div>
<label for="s"><?php _e( 'Search', 'twentyten' ); ?></label>
<input type="text" id="s" name="s" />
<input type="submit" id="searchsubmit" value="<?php esc_attr_e( 'Search', 'twentyten' ); ?>" />
</div>
</form>