forked from hultsfredskommun/hultsfredskommun
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsearchform.php
32 lines (31 loc) · 1.28 KB
/
searchform.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
/**
* The template for displaying search forms in Twenty Eleven
*
* @package WordPress
* @subpackage Twenty_Eleven
* @since Twenty Eleven 1.0
*/
?>
<?php $options = get_option('hk_theme'); ?>
<?php
if ($options["gcse_ajax"] != "") {
if ($options["gcse_id"] != "") {
$hk_searchclass = "hk-gcse-ajax-searchbox";
}
else {
$hk_searchclass = "hk-ajax-searchbox";
}
$gcse_class = "gcse_ajax_search"; ?>
<div class="<?php echo $hk_searchclass; ?>">
<div class="gcse-searchbox"></div>
</div>
<?php } ?>
<form class="<?php echo ($options["gcse_id"] != "")?"gcse $gcse_class":"$gcse_class"; ?> form" method="get" id="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>">
<label for="s" class="assistive-text"><?php _e( 'Search', 'twentyeleven' ); ?></label>
<div class="input-wrapper"><input type="text" class="field" name="s" id="s" autocomplete="off" placeholder="<?php echo $options["search_watermark"]; ?>" value="<?php echo $_REQUEST["s"]; ?>" /></div>
<input type="submit" class="submit" id="searchsubmit" value="" />
<?php if ($options['relevanssi_multisite'] != "") { ?>
<input type="hidden" name="searchblogs" value="<?php echo $options['relevanssi_multisite']; ?>" />
<?php } ?>
</form>