mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-16 14:50:29 +00:00
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:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user