mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/10943] displays searched query in search result
Search backend displays an additional normalized search query just above the ignored words. PHPBB3-10943
This commit is contained in:
parent
615f32cd71
commit
b98be2f235
3 changed files with 3 additions and 0 deletions
|
@ -81,6 +81,7 @@ $lang = array_merge($lang, array(
|
||||||
|
|
||||||
'SEARCHED_FOR' => 'Search term used',
|
'SEARCHED_FOR' => 'Search term used',
|
||||||
'SEARCHED_TOPIC' => 'Searched topic',
|
'SEARCHED_TOPIC' => 'Searched topic',
|
||||||
|
'SEARCHED_QUERY' => 'Searched query',
|
||||||
'SEARCH_ALL_TERMS' => 'Search for all terms or use query as entered',
|
'SEARCH_ALL_TERMS' => 'Search for all terms or use query as entered',
|
||||||
'SEARCH_ANY_TERMS' => 'Search for any terms',
|
'SEARCH_ANY_TERMS' => 'Search for any terms',
|
||||||
'SEARCH_AUTHOR' => 'Search for author',
|
'SEARCH_AUTHOR' => 'Search for author',
|
||||||
|
|
|
@ -600,6 +600,7 @@ if ($keywords || $author || $author_id || $search_id || $submit)
|
||||||
'SEARCH_TITLE' => $l_search_title,
|
'SEARCH_TITLE' => $l_search_title,
|
||||||
'SEARCH_MATCHES' => $l_search_matches,
|
'SEARCH_MATCHES' => $l_search_matches,
|
||||||
'SEARCH_WORDS' => $keywords,
|
'SEARCH_WORDS' => $keywords,
|
||||||
|
'SEARCHED_QUERY' => $search->search_query,
|
||||||
'IGNORED_WORDS' => (sizeof($search->common_words)) ? implode(' ', $search->common_words) : '',
|
'IGNORED_WORDS' => (sizeof($search->common_words)) ? implode(' ', $search->common_words) : '',
|
||||||
'PAGINATION' => generate_pagination($u_search, $total_match_count, $per_page, $start),
|
'PAGINATION' => generate_pagination($u_search, $total_match_count, $per_page, $start),
|
||||||
'PAGE_NUMBER' => on_page($total_match_count, $per_page, $start),
|
'PAGE_NUMBER' => on_page($total_match_count, $per_page, $start),
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
<!-- INCLUDE overall_header.html -->
|
<!-- INCLUDE overall_header.html -->
|
||||||
|
|
||||||
<h2><!-- IF SEARCH_TITLE -->{SEARCH_TITLE}<!-- ELSE -->{SEARCH_MATCHES}<!-- ENDIF --><!-- IF SEARCH_WORDS -->: <a href="{U_SEARCH_WORDS}">{SEARCH_WORDS}</a><!-- ENDIF --></h2>
|
<h2><!-- IF SEARCH_TITLE -->{SEARCH_TITLE}<!-- ELSE -->{SEARCH_MATCHES}<!-- ENDIF --><!-- IF SEARCH_WORDS -->: <a href="{U_SEARCH_WORDS}">{SEARCH_WORDS}</a><!-- ENDIF --></h2>
|
||||||
|
<!-- IF SEARCHED_QUERY --> <p>{L_SEARCHED_QUERY}: <strong>{SEARCHED_QUERY}</strong></p><!-- ENDIF -->
|
||||||
<!-- IF IGNORED_WORDS --> <p>{L_IGNORED_TERMS}: <strong>{IGNORED_WORDS}</strong></p><!-- ENDIF -->
|
<!-- IF IGNORED_WORDS --> <p>{L_IGNORED_TERMS}: <strong>{IGNORED_WORDS}</strong></p><!-- ENDIF -->
|
||||||
|
|
||||||
<!-- IF SEARCH_TOPIC -->
|
<!-- IF SEARCH_TOPIC -->
|
||||||
|
|
Loading…
Add table
Reference in a new issue