<commit_before>{* $Id$ *}

{if !( $searchStyle eq "menu" )}
	{title admpage="search" help="Search"}{tr}Search{/tr}{/title}
{/if}

{capture name=advanced_search_help}
	{include file='advanced_search_help.tpl'}	 
{/capture}

<div class="nohighlight">
	{if $searchStyle neq "menu" && $prefs.feature_search_show_object_filter eq 'y'}
		<div class="navbar">
			{tr}Search in:{/tr}
			{foreach item=name key=k from=$where_list}
				{button _auto_args='where,highlight' href="tiki-searchresults.php?where=$k"  _selected="'$where'=='$k'" _selected_class="highlight" _text="$name"}
			{/foreach}
		</div>
	{/if}

	{if $prefs.feature_search_show_search_box eq 'y' or  $searchStyle eq "menu"}
		<form action="tiki-searchresults.php" method="get" id="search-form" class="findtable">
		{if ($searchStyle eq "menu") and ($prefs.feature_multilingual eq "y")}	
			<input type="hidden" name="searchLang" value="{if !empty($pageLang)}{$pageLang}{else}{$prefs.language}{/if}" />
		{/if}
		
			<label class="findtitle">
				{tr}Search{/tr} <input id="highlight{$iSearch}" name="highlight" style="width:300px" type="text" accesskey="s" value="{$words|escape}" />
			</label>
			{if $prefs.search_autocomplete eq 'y'}
				{autocomplete element="#highlight$iSearch" type='pagename'}
			{/if}			
				{if !( $searchStyle eq "menu" )}<commit_msg>Revert r29362 "[MOD] for multilingual sites, perform the search (from the seachbar) in the language of either the site, page, or user default. Users can then change the language scope from the results page" pageLang should not longer be defined now that the site search bar no longer uses tiki-searchresults.tpl (ref: r32294) The default search behavior is not to restrict languages<commit_after>{* $Id$ *}

{if !( $searchStyle eq "menu" )}
	{title admpage="search" help="Search"}{tr}Search{/tr}{/title}
{/if}

{capture name=advanced_search_help}
	{include file='advanced_search_help.tpl'}	 
{/capture}

<div class="nohighlight">
	{if $searchStyle neq "menu" && $prefs.feature_search_show_object_filter eq 'y'}
		<div class="navbar">
			{tr}Search in:{/tr}
			{foreach item=name key=k from=$where_list}
				{button _auto_args='where,highlight' href="tiki-searchresults.php?where=$k"  _selected="'$where'=='$k'" _selected_class="highlight" _text="$name"}
			{/foreach}
		</div>
	{/if}

	{if $prefs.feature_search_show_search_box eq 'y' or  $searchStyle eq "menu"}
		<form action="tiki-searchresults.php" method="get" id="search-form" class="findtable">
			<label class="findtitle">
				{tr}Search{/tr} <input id="highlight{$iSearch}" name="highlight" style="width:300px" type="text" accesskey="s" value="{$words|escape}" />
			</label>
			{if $prefs.search_autocomplete eq 'y'}
				{autocomplete element="#highlight$iSearch" type='pagename'}
			{/if}			
				{if !( $searchStyle eq "menu" )}
{'fraction_non_alphanumeric': 0.1762192951228195, 'fraction_numerical': 0.005695977216091136, 'mean_word_length': 5.67458432304038, 'pattern_counts': {'":': 0, '<': 18, '<?xml version=': 0, '>': 18, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3082294', 'n_tokens_mistral': 1079, 'n_tokens_neox': 981, 'n_words': 228}