get_search_form from technosailor. fixes #7910

git-svn-id: https://develop.svn.wordpress.org/trunk@9234 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2008-10-17 20:39:56 +00:00
parent 202c2fc0be
commit 5413ecde13
8 changed files with 23 additions and 29 deletions
+16
View File
@@ -93,6 +93,22 @@ function get_sidebar( $name = null ) {
load_template( get_theme_root() . '/default/sidebar.php');
}
function get_search_form() {
do_action( 'get_search_form' );
if ( '' != locate_template(array('searchform.php'), true) )
return;
$form = '<form method="get" id="searchform" action="' . get_option('siteurl') . '/" >
<label class="hidden" for="s">' . __('Search for:') . '</label>
<div><input type="text" value="' . the_search_query() . '" name="s" id="s" />
<input type="submit" id="searchsubmit" value="Search" />
</div>
</form>';
echo apply_filters('get_search_form', $form);
}
/**
* Display the Log In/Out link.
*