Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.
function generate_search_box() {
global $config;
$output = '<form id="plogsearch" action="'.generate_url('search').'" method="get">
<div id="search-box">
<input type="text" id="searchterms" name="searchterms" />
<input class="submit" type="submit" value="'.plog_tr('Search').'" />
</div>';
if (!$config['use_mod_rewrite']) {
$output .= "\n\t\t\t\t\t" . '<input type="hidden" name="level" value="search" />';
if (!empty($config['query_args'])) {
$query = array();
$query_args = explode('&', $config['query_args']);
foreach ($query_args as $value) {
$query = explode('=', $value);
$output .= "\n\t\t\t\t\t" . '<input type="hidden" name="'.$query[0].'" value="'.$query[1].'" />';
}
}
}
$output .= "\n\t\t\t\t" . '</form>' . "\n";
return $output;
}
1 to 2 of 2