deplorableword / redprint

A default WordPress template which is focused on speed and simplicity.

This URL has Read+Write access

James Braithwaite (author)
Tue Jun 30 09:25:56 -0700 2009
redprint / searchform.php
100644 16 lines (13 sloc) 0.343 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?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); ?>"/>
</div>
</form>
</div>