forked from smashingmagazine/old-wordpress-install
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsearchform.php
19 lines (18 loc) · 811 Bytes
/
searchform.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
/**
* Display the search form.
*
* @package Smashing Magazine
*/
$counter = smash_get_counter( 'search' );
?>
<section class="mise sf clearfix" role="search">
<form id="search_<?php echo $counter; ?>" method="get" action="<?php echo esc_url( home_url( '/search-results/' ) ); ?>" target="_top">
<label class="sl" for="searching_<?php echo $counter; ?>">Search on Smashing Magazine</label>
<input id="searching_<?php echo $counter; ?>" name="q" type="text" placeholder="e.g. JavaScript" />
<button class="search_submit" type="submit">Search</button>
<input type="hidden" name="cx" value="<?php echo SMASH_SEARCH_CX; ?>">
<input type="hidden" name="cof" value="<?php echo SMASH_SEARCH_COF; ?>">
<input type="hidden" name="ie" value="<?php bloginfo( 'charset' ); ?>">
</form>
</section>