forked from EddieRingle/wicketpixie
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsearchform.php
33 lines (32 loc) · 1.33 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
33
<?php
/**
* WicketPixie v2.0
* (c) 2006-2009 Eddie Ringle,
* Chris J. Davis,
* Dave Bates
* Provided by Chris Pirillo
*
* Licensed under the New BSD License.
*/
if(get_option('wicketpixie_adsense_search_enabled') != 'true') { ?>
<form id="search" method="get" action="<?php bloginfo('home'); ?>/">
<div>
<input type="text" name="s" id="s" value="" size="35" />
<input name="search" type="image" src="<?php bloginfo('template_directory'); ?>/images/search-button.gif" alt="Search" id="search-submit" />
</div>
</form>
<?php
} elseif(get_option('wicketpixie_adsense_search_enabled') == 'true' && get_option('wicketpixie_adsense_search_pubid') != "") {
$search_page = get_bloginfo('home') . '/search/';
?>
<form id="search" action="<?php echo $search_page; ?>">
<div>
<input type="hidden" name="cx" value="<?php echo get_option('wicketpixie_adsense_search_pubid'); ?>" />
<input type="hidden" name="cof" value="FORID:10" />
<input type="hidden" name="ie" value="ISO-8859-1" />
<input type="text" id="s" name="q" size="35" />
<input type="image" src="<?php bloginfo('template_directory'); ?>/images/search-button.gif" alt="Search" name="sa" id="search-submit" />
</div>
</form>
<script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=search&lang=en"></script>
<?php } ?>