Permalink
Switch branches/tags
Nothing to show
Find file
0b607bf Aug 11, 2011
19 lines (16 sloc) 515 Bytes
<?php if (!is_search()) {
// Default search text
$search_text = "Search";
} else { $search_text = "$s"; }
?>
<div id="search">
<form method="get" id="searchform" action="<?php bloginfo('url'); ?>/">
<div>
<input type="text" name="s" id="s"
value="<?php echo wp_specialchars($search_text, 1); ?>"
onFocus="clearInput('s', '<?php echo wp_specialchars($search_text, 1); ?>')"
onBlur="clearInput('s', '<?php echo wp_specialchars($search_text, 1); ?>')"
/>
</div>
</form>
</div>