mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 12:48:26 +02:00
36
search.php
36
search.php
@@ -86,7 +86,19 @@ class search extends e_shortcode
|
|||||||
}
|
}
|
||||||
else
|
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");
|
require(THEME."search_template.php");
|
||||||
}
|
}
|
||||||
@@ -229,6 +241,14 @@ class search extends e_shortcode
|
|||||||
private function selectElement($parm)
|
private function selectElement($parm)
|
||||||
{
|
{
|
||||||
// standard search config
|
// 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)
|
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' >";
|
$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)
|
if ($this->search_prefs['selector'] == 2)
|
||||||
{
|
{
|
||||||
$dropdown .= "<option value='".$google_id."'>Google</option>"; //FIXME googleid
|
$dropdown .= "<option value='".$google_id."'>Google</option>";
|
||||||
}
|
}
|
||||||
else if
|
else if
|
||||||
($this->search_prefs['selector'] == 1) //FIXME PRE_CHECKBOXES and POST_CHECKBOXES
|
($this->search_prefs['selector'] == 1) //FIXME PRE_CHECKBOXES and POST_CHECKBOXES
|
||||||
@@ -352,6 +372,8 @@ class search extends e_shortcode
|
|||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$text = '';
|
||||||
|
|
||||||
|
|
||||||
if (isset($this->search_info[$parm]['advanced']))
|
if (isset($this->search_info[$parm]['advanced']))
|
||||||
{
|
{
|
||||||
@@ -713,7 +735,7 @@ class search extends e_shortcode
|
|||||||
|
|
||||||
function renderResults()
|
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();
|
$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
|
$temp1 = preg_replace('/[^\w_ +]/i','',$pparm_value); // Filter 'non-word' charcters in search term
|
||||||
if (($temp == $pparm_key) && !isset($core_parms[$pparm_key]))
|
if (($temp == $pparm_key) && !isset($core_parms[$pparm_key]))
|
||||||
{
|
{
|
||||||
$parms .= "&".$pparm_key."=".$temp1;
|
// $parms .= "&".$pparm_key."=".$temp1; //FIXME Unused
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ($results > $search_res)
|
if ($results > $search_res)
|
||||||
@@ -1254,7 +1276,11 @@ if(deftrue('BOOTSTRAP'))
|
|||||||
}
|
}
|
||||||
else
|
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");
|
require(THEME."search_template.php");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user