modified : elastic search anchor added in search form
This commit is contained in:
parent
66bb858880
commit
b5a5c2572d
2 changed files with 13 additions and 0 deletions
|
@ -6033,6 +6033,18 @@
|
|||
}
|
||||
|
||||
|
||||
/**
|
||||
* This function is used to clean a string removing all special chars
|
||||
* @author Mohammad Shoaib
|
||||
* @param string
|
||||
* @return cleaned string
|
||||
*/
|
||||
function cleanString($string) {
|
||||
$string = str_replace("’", "'", $string);
|
||||
return preg_replace('/[^A-Za-z0-9 !@#$%^&*()_?<>|{}\[\].,+-;\/:"\'\-]/', "'", $string);
|
||||
}
|
||||
|
||||
|
||||
include( 'functions_db.php' );
|
||||
include( 'functions_filter.php' );
|
||||
include( 'functions_player.php' );
|
||||
|
|
1
upload/styles/cb_28/layout/header.html
Normal file → Executable file
1
upload/styles/cb_28/layout/header.html
Normal file → Executable file
|
@ -107,6 +107,7 @@
|
|||
<input type="text" class="form-control" name="query" placeholder="{lang code="search_keyword_feed"}" value="{'query'|get_form_val:true}" id="query">
|
||||
<input type="hidden" name="type" class="type" value="{if isset($smarty.get.type)}{$smarty.get.type}{elseif $toSearch}{$toSearch}{else}videos{/if}" id="type">
|
||||
<button tabindex="-1" type="submit" name="cbsearch" id="cbsearch" class="btn btn-default btn-search icon-search"></button>
|
||||
{ANCHOR place="elastic_mode_search"}
|
||||
</div>
|
||||
</form><!-- form Ends -->
|
||||
</div>
|
||||
|
|
Loading…
Add table
Reference in a new issue