|
Procedural File: Search.php
Source Location: Program_Root/Misc/Search.php
Classes:
Page Details:
Splits a search into an array of individual terms. Properly handles quoted strings as well, keeping them as a single literal term.
get_searchengine_keywords [line 84]
array get_searchengine_keywords(
string $referer)
|
|
Check if the previous request was a search engine results page. If so, then parse the search keywords.
Tags:
Parameters
| string |
$referer |
Referer URL |
saf_misc_search_content_filter [line 134]
string saf_misc_search_content_filter(
string $body)
|
|
If you would like search terms to be automatically highlighted in your web pages, add 'filter 1 = "body: saf.Misc.Search"' to the modes.php file in your template set, under the appropriate output mode.
Parameters
search_bar [line 72]
string search_bar(
string $query, [string $url = '/index/sitellite-search-action'])
|
|
Returns a bar that displays "Highlighting Search Terms: a, b, c <Search Again>".
Parameters
| string |
$query |
|
| string |
$url |
|
search_highlight [line 42]
string search_highlight(
string $string, array $queries)
|
|
Highlights all of the query terms in the specified string, wrapping them in <span class="highlighted"></span> tags. Source: http://www.ilovejackdaniels.com/php/google-style-keyword-highlighting/
Parameters
| string |
$string |
|
| array |
$queries |
|
search_split_query [line 11]
void search_split_query(
mixed $query)
|
|
|
|