mirror of
https://github.com/e107inc/e107.git
synced 2025-04-19 20:21:51 +02:00
parent
c94655a5e9
commit
41d873a9ba
38
search.php
38
search.php
@ -86,7 +86,19 @@ class search extends e_shortcode
|
||||
}
|
||||
else
|
||||
{
|
||||
if (file_exists(THEME."search_template.php"))
|
||||
$SEARCH_TOP_TABLE = '';
|
||||
$SEARCH_BOT_TABLE = '';
|
||||
$SEARCH_CATS = '';
|
||||
$SEARCH_TYPE = '';
|
||||
$SEARCH_ADV = '';
|
||||
$SEARCH_ENHANCED = '';
|
||||
$SEARCH_ADV_COMBO = '';
|
||||
|
||||
if (file_exists(THEME."templates/search_template.php"))
|
||||
{
|
||||
require(THEME."templates/search_template.php");
|
||||
}
|
||||
elseif (file_exists(THEME."search_template.php"))
|
||||
{
|
||||
require(THEME."search_template.php");
|
||||
}
|
||||
@ -229,6 +241,14 @@ class search extends e_shortcode
|
||||
private function selectElement($parm)
|
||||
{
|
||||
// standard search config
|
||||
$dropdown = '';
|
||||
$PRE_CHECKBOXES = '';
|
||||
$POST_CHECKBOXES = '';
|
||||
|
||||
$search_count = count($this->search_info);
|
||||
$google_id = $search_count + 1;
|
||||
|
||||
|
||||
if ($this->search_prefs['selector'] == 2)
|
||||
{
|
||||
$dropdown = "<select name='t' id='t' class='tbox form-control e-ajax' data-src='".e_SELF."' data-target='search-advanced' >";
|
||||
@ -274,7 +294,7 @@ class search extends e_shortcode
|
||||
{
|
||||
if ($this->search_prefs['selector'] == 2)
|
||||
{
|
||||
$dropdown .= "<option value='".$google_id."'>Google</option>"; //FIXME googleid
|
||||
$dropdown .= "<option value='".$google_id."'>Google</option>";
|
||||
}
|
||||
else if
|
||||
($this->search_prefs['selector'] == 1) //FIXME PRE_CHECKBOXES and POST_CHECKBOXES
|
||||
@ -351,7 +371,9 @@ class search extends e_shortcode
|
||||
{
|
||||
return '';
|
||||
}
|
||||
|
||||
|
||||
$text = '';
|
||||
|
||||
|
||||
if (isset($this->search_info[$parm]['advanced']))
|
||||
{
|
||||
@ -713,7 +735,7 @@ class search extends e_shortcode
|
||||
|
||||
function renderResults()
|
||||
{
|
||||
global $query, $search_prefs, $pre_title, $search_chars, $search_res, $result_flag;
|
||||
global $query, $search_prefs, $pre_title, $search_chars, $search_res, $result_flag, $advanced_caption;
|
||||
|
||||
$ns = e107::getRender();
|
||||
|
||||
@ -803,7 +825,7 @@ class search extends e_shortcode
|
||||
$temp1 = preg_replace('/[^\w_ +]/i','',$pparm_value); // Filter 'non-word' charcters in search term
|
||||
if (($temp == $pparm_key) && !isset($core_parms[$pparm_key]))
|
||||
{
|
||||
$parms .= "&".$pparm_key."=".$temp1;
|
||||
// $parms .= "&".$pparm_key."=".$temp1; //FIXME Unused
|
||||
}
|
||||
}
|
||||
if ($results > $search_res)
|
||||
@ -1254,7 +1276,11 @@ if(deftrue('BOOTSTRAP'))
|
||||
}
|
||||
else
|
||||
{
|
||||
if (file_exists(THEME."search_template.php"))
|
||||
if (file_exists(THEME."templates/search_template.php"))
|
||||
{
|
||||
require(THEME."templates/search_template.php");
|
||||
}
|
||||
elseif (file_exists(THEME."search_template.php"))
|
||||
{
|
||||
require(THEME."search_template.php");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user