Skip to content

Commit

Permalink
Use search text field type in the search form.
Browse files Browse the repository at this point in the history
  • Loading branch information
beastaugh committed Apr 12, 2010
1 parent 832cd16 commit 0174e9e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Expand Up @@ -13,6 +13,7 @@

#### Tweaks

* Use HTML5 `search` text field type in the search form
* Use HTML5 `email` and `url` text field types in the comment form
* `loop.php` file moved into `app/templates/` directory
* The `tarski_assets` filter is now deprecated
Expand Down
10 changes: 5 additions & 5 deletions searchform.php
@@ -1,8 +1,8 @@
<?php $labelText = __('Search this site', 'tarski'); ?>
<div class="searchbox">
<form method="get" id="searchform" action="<?php bloginfo('url'); ?>"><fieldset>
<label for="s" id="searchlabel"><?php echo $labelText ?></label>
<input type="text" placeholder="<?php echo $labelText ?>" value="<?php the_search_query(); ?>" name="s" id="s">
<input type="submit" id="searchsubmit" value="<?php _e('Search','tarski'); ?>">
</fieldset></form>
<form method="get" id="searchform" action="<?php bloginfo('url'); ?>"><fieldset>
<label for="s" id="searchlabel"><?php echo $labelText ?></label>
<input type="search" results="5" placeholder="<?php echo $labelText ?>" value="<?php the_search_query(); ?>" name="s" id="s">
<input type="submit" id="searchsubmit" value="<?php _e('Search','tarski'); ?>">
</fieldset></form>
</div>

0 comments on commit 0174e9e

Please sign in to comment.