<commit_before>{* $Id$ *}
{if $userwatch ne $user}
	{title help="User Preferences"}{tr}User Preferences:{/tr} {$userwatch}{/title}
{else}
	{title help="User Preferences"}{tr}User Preferences{/tr}{/title}
{/if}
{if $userwatch eq $user or $userwatch eq ""}
	{include file='tiki-mytiki_bar.tpl'}
{/if}
{if $tiki_p_admin_users eq 'y'}
	<div class="t_navbar btn-group form-group">
		{assign var=thisuser value=$userinfo.login}
		{button href="tiki-assignuser.php?assign_user=$thisuser" _type="link" _text="{tr}Assign Group{/tr}"}
		{button href="tiki-user_information.php?view_user=$thisuser" _type="link" _text="{tr}User Information{/tr}"}
	</div>
{/if}
{if $tikifeedback}
	<div class="simplebox highlight">
		{section name=n loop=$tikifeedback}
			<div>{$tikifeedback[n].mes}</div>
		{/section}
	</div>
{/if}
{tabset name="mytiki_user_preference"}
	{if $prefs.feature_userPreferences eq 'y'}
		{tab name="{tr}Personal Information{/tr}"}
			<h2>{tr}Personal Information{/tr}</h2>
			<form role="form" action="tiki-user_preferences.php" method="post" class="form-horizontal">
				<input type="hidden" name="view_user" value="{$userwatch|escape}">
				<div class="form-group">
					<label class="control-label col-md-4" for="userIn">
						{tr}User{/tr}
					</label>
					<div class="col-md-8">
						<input class="form-control" disabled value="{$userinfo.login|escape}">
						<span class="help-block">
							{tr}Last login:{/tr} {$userinfo.lastLogin|tiki_long_datetime}
						</span>
					</div>
				</div>
				<div class="form-group">
					<label class="control-label col-md-4" for="realName">
						{tr}Real Name{/tr}
					</label>
					<div class="col-md-8">
						<input class="form-control" type="text" name="realName" value="{$user_prefs.realName|escape}"
						{if $prefs.auth_ldap_nameattr eq '' || $prefs.auth_method ne 'ldap'}{else}disabled{/if}>
					</div>
				</div>
				<div class="form-group">
					<label class="control-label col-md-4">
						{tr}Profile picture{/tr}
					</label>
					<div class="col-md-8">
						{$avatar}
						{if $prefs.user_use_gravatar eq 'y'}
							<a class="link" href="http://www.gravatar.com" target="_blank">{tr}Pick user profile picture{/tr}</a>
						{else}
							<a class="link" target="_blank" href="tiki-pick_avatar.php{if $userwatch ne $user}?view_user={$userwatch}{/if}">{tr}Pick user profile picture{/tr}</a>
						{/if}
					</div>
				</div>
				{if $prefs.feature_community_gender eq 'y'}
					<div class="form-group">
						<label class="control-label col-md-4" for="gender">
							{tr}Gender{/tr}
						</label>
						<div class="col-md-8">
							<label class="radio-inline">
								<input type="radio" name="gender" value="Male" {if $user_prefs.gender eq 'Male'}checked="checked"{/if}> {tr}Male{/tr}
							</label>
							<label class="radio-inline">
								<input type="radio" name="gender" value="Female" {if $user_prefs.gender eq 'Female'}checked="checked"{/if}> {tr}Female{/tr}
							</label>
							<label class="radio-inline">
								<input type="radio" name="gender" value="Hidden" {if $user_prefs.gender eq 'Hidden'}checked="checked"{/if}> {tr}Hidden{/tr}
							</label>
						</div>
					</div>
				{/if}
				<div class="form-group">
					<label class="control-label col-md-4" for="country">
						{tr}Country{/tr}
					</label>
					{*{if isset($user_prefs.country) && $user_prefs.country != "None" && $user_prefs.country != "Other"}*}
						{*{$userinfo.login|countryflag}*}
					{*{/if}*}
					<div class="col-md-8">
						<select name="country" id="country" class="form-control">
							<option value="Other" {if $user_prefs.country eq "Other"}selected="selected"{/if}>
								{tr}Other{/tr}
							</option>
							{foreach from=$flags item=flag key=fval}{strip}
								{if $fval ne "Other"}
									<option value="{$fval|escape}" {if $user_prefs.country eq $fval}selected="selected"{/if}>
										{$flag|stringfix}
									</option>
								{/if}
							{/strip}{/foreach}
						</select>
					</div>
				</div>
				<div class="form-group">
					<label class="control-label col-md-4" for="location">
						{tr}Location{/tr}
					</label>
					<div class="col-md-8 margin-bottom-lg" style="height: 250px;" data-geo-center="{defaultmapcenter}" data-target-field="location">
						<div class="map-container" style="height: 250px;" data-geo-center="{defaultmapcenter}" data-target-field="location"></div>
					</div>
					<input type="hidden" name="location" id="location" value="{$location|escape}">
				</div>
				<div class="form-group">
					<label class="control-label col-md-4" for="homePage">
						{tr}Homepage URL{/tr}
					</label>
					<div class="col-md-8">
						<input type="text" class="form-control" name="homePage" value="{$user_prefs.homePage|escape}">
					</div>
				</div>
				{if $prefs.feature_wiki eq 'y' and $prefs.feature_wiki_userpage eq 'y'}
					<div class="form-group">
						<label class="control-label col-md-4">
							{tr}Your Personal Wiki Page{/tr}
						</label>
						<div class="col-md-8">
							{if $userPageExists eq 'y'}
								<a class="link" href="tiki-index.php?page={$prefs.feature_wiki_userpage_prefix}{$userinfo.login}" title="View">
									{$prefs.feature_wiki_userpage_prefix}{$userinfo.login|escape}
								</a>
								(<a class="link" href="tiki-editpage.php?page={$prefs.feature_wiki_userpage_prefix}{$userinfo.login}">
									{tr}Edit{/tr}
								</a>)
							{else}
								{$prefs.feature_wiki_userpage_prefix}{$userinfo.login|escape}
								(<a class="link" href="tiki-editpage.php?page={$prefs.feature_wiki_userpage_prefix}{$userinfo.login}">
								{tr}Create{/tr}
							</a>)
							{/if}
						</div>
					</div>
				{/if}
				{if $prefs.userTracker eq 'y' && $usertrackerId}
					<div class="form-group">
						<div class="col-md-12">
							{if $tiki_p_admin eq 'y' and !empty($userwatch) and $userwatch neq $user}
								<label class="control-label">{tr}User's personal tracker information{/tr}</label>
								<div class="col-md-12">
									<a class="link" href="tiki-view_tracker_item.php?trackerId={$usertrackerId}&user={$userwatch|escape:url}&view=+user">
										{tr}View extra information{/tr}
									</a>
								</div>
							{else}
								<label class="control-label">{tr}Your personal tracker information{/tr}</label>
								<div class="col-md-12">
									<a class="link" href="tiki-view_tracker_item.php?view=+user">
										{tr}View extra information{/tr}
									</a>
								</div>
							{/if}
						</div>
					</div>
				{/if}
				{* Custom fields *}
				{section name=ir loop=$customfields}
					{if $customfields[ir].show}
						<label>{$customfields[ir].label}:
						<input type="{$customfields[ir].type}" name="{$customfields[ir].prefName}"
							value="{$customfields[ir].value}" size="{$customfields[ir].size}"></label>
					{/if}
				{/section}<commit_msg>[MRG] Automatic merge, branches/15.x 58291 to 58294<commit_after>{* $Id$ *}
{if $userwatch ne $user}
	{title help="User Preferences"}{tr}User Preferences:{/tr} {$userwatch}{/title}
{else}
	{title help="User Preferences"}{tr}User Preferences{/tr}{/title}
{/if}
{if $userwatch eq $user or $userwatch eq ""}
	{include file='tiki-mytiki_bar.tpl'}
{/if}
{if $tiki_p_admin_users eq 'y'}
	<div class="t_navbar btn-group form-group">
		{assign var=thisuser value=$userinfo.login}
		{button href="tiki-assignuser.php?assign_user=$thisuser" _type="link" _text="{tr}Assign Group{/tr}"}
		{button href="tiki-user_information.php?view_user=$thisuser" _type="link" _text="{tr}User Information{/tr}"}
	</div>
{/if}
{if $tikifeedback}
	<div class="simplebox highlight">
		{section name=n loop=$tikifeedback}
			<div>{$tikifeedback[n].mes}</div>
		{/section}
	</div>
{/if}
{tabset name="mytiki_user_preference"}
	{if $prefs.feature_userPreferences eq 'y'}
		{tab name="{tr}Personal Information{/tr}"}
			<h2>{tr}Personal Information{/tr}</h2>
			<form role="form" action="tiki-user_preferences.php" method="post" class="form-horizontal">
				<input type="hidden" name="view_user" value="{$userwatch|escape}">
				<div class="form-group">
					<label class="control-label col-md-4" for="userIn">
						{tr}User{/tr}
					</label>
					<div class="col-md-8">
						<input class="form-control" disabled value="{$userinfo.login|escape}">
						<span class="help-block">
							{tr}Last login:{/tr} {$userinfo.lastLogin|tiki_long_datetime}
						</span>
					</div>
				</div>
				<div class="form-group">
					<label class="control-label col-md-4" for="realName">
						{tr}Real Name{/tr}
					</label>
					<div class="col-md-8">
						<input class="form-control" type="text" name="realName" value="{$user_prefs.realName|escape}"
						{if $prefs.auth_ldap_nameattr eq '' || $prefs.auth_method ne 'ldap'}{else}disabled{/if}>
					</div>
				</div>
				<div class="form-group">
					<label class="control-label col-md-4">
						{tr}Profile picture{/tr}
					</label>
					<div class="col-md-8">
						{$avatar}
						{if $prefs.user_use_gravatar eq 'y'}
							<a class="link" href="http://www.gravatar.com" target="_blank">{tr}Pick user profile picture{/tr}</a>
						{else}
							<a class="link" target="_blank" href="tiki-pick_avatar.php{if $userwatch ne $user}?view_user={$userwatch}{/if}">{tr}Pick user profile picture{/tr}</a>
						{/if}
					</div>
				</div>
				{if $prefs.feature_community_gender eq 'y'}
					<div class="form-group">
						<label class="control-label col-md-4" for="gender">
							{tr}Gender{/tr}
						</label>
						<div class="col-md-8">
							<label class="radio-inline">
								<input type="radio" name="gender" value="Male" {if $user_prefs.gender eq 'Male'}checked="checked"{/if}> {tr}Male{/tr}
							</label>
							<label class="radio-inline">
								<input type="radio" name="gender" value="Female" {if $user_prefs.gender eq 'Female'}checked="checked"{/if}> {tr}Female{/tr}
							</label>
							<label class="radio-inline">
								<input type="radio" name="gender" value="Hidden" {if $user_prefs.gender eq 'Hidden'}checked="checked"{/if}> {tr}Hidden{/tr}
							</label>
						</div>
					</div>
				{/if}
				<div class="form-group">
					<label class="control-label col-md-4" for="country">
						{tr}Country{/tr}
					</label>
					{*{if isset($user_prefs.country) && $user_prefs.country != "None" && $user_prefs.country != "Other"}*}
						{*{$userinfo.login|countryflag}*}
					{*{/if}*}
					<div class="col-md-8">
						<select name="country" id="country" class="form-control">
							<option value="Other" {if $user_prefs.country eq "Other"}selected="selected"{/if}>
								{tr}Other{/tr}
							</option>
							{foreach from=$flags item=flag key=fval}{strip}
								{if $fval ne "Other"}
									<option value="{$fval|escape}" {if $user_prefs.country eq $fval}selected="selected"{/if}>
										{$flag|stringfix}
									</option>
								{/if}
							{/strip}{/foreach}
						</select>
					</div>
				</div>
				<div class="form-group">
					<label class="control-label col-md-4" for="location">
						{tr}Location{/tr}
					</label>
					<div class="col-md-8 margin-bottom-lg" style="height: 250px;" data-geo-center="{defaultmapcenter}" data-target-field="location">
						<div class="map-container" style="height: 250px;" data-geo-center="{defaultmapcenter}" data-target-field="location"></div>
					</div>
					<input type="hidden" name="location" id="location" value="{$location|escape}">
				</div>
				<div class="form-group">
					<label class="control-label col-md-4" for="homePage">
						{tr}Homepage URL{/tr}
					</label>
					<div class="col-md-8">
						<input type="text" class="form-control" name="homePage" value="{$user_prefs.homePage|escape}">
					</div>
				</div>
				{if $prefs.feature_wiki eq 'y' and $prefs.feature_wiki_userpage eq 'y'}
					<div class="form-group">
						<label class="control-label col-md-4">
							{tr}Your Personal Wiki Page{/tr}
						</label>
						<div class="col-md-8">
							{if $userPageExists eq 'y'}
								<a class="link" href="tiki-index.php?page={$prefs.feature_wiki_userpage_prefix}{$userinfo.login}" title="View">
									{$prefs.feature_wiki_userpage_prefix}{$userinfo.login|escape}
								</a>
								(<a class="link" href="tiki-editpage.php?page={$prefs.feature_wiki_userpage_prefix}{$userinfo.login}">
									{tr}Edit{/tr}
								</a>)
							{else}
								{$prefs.feature_wiki_userpage_prefix}{$userinfo.login|escape}
								(<a class="link" href="tiki-editpage.php?page={$prefs.feature_wiki_userpage_prefix}{$userinfo.login}">
								{tr}Create{/tr}
							</a>)
							{/if}
						</div>
					</div>
				{/if}
				{if $prefs.userTracker eq 'y' && $usertrackerId}
					<div class="form-group">
						{if $tiki_p_admin eq 'y' and !empty($userwatch) and $userwatch neq $user}
							<label class="control-label col-md-4">{tr}User's personal tracker information{/tr}</label>
							<div class="col-md-8">
								<a class="link" href="tiki-view_tracker_item.php?trackerId={$usertrackerId}&user={$userwatch|escape:url}&view=+user">
									{tr}View extra information{/tr}
								</a>
							</div>
						{else}
							<label class="control-label col-md-4">{tr}Your personal tracker information{/tr}</label>
							<div class="col-md-8">
								<a class="link" href="tiki-view_tracker_item.php?view=+user">
									{tr}View extra information{/tr}
								</a>
							</div>
						{/if}
					</div>
				{/if}
				{* Custom fields *}
				{section name=ir loop=$customfields}
					{if $customfields[ir].show}
						<label>{$customfields[ir].label}:
						<input type="{$customfields[ir].type}" name="{$customfields[ir].prefName}"
							value="{$customfields[ir].value}" size="{$customfields[ir].size}"></label>
					{/if}
				{/section}
{'fraction_non_alphanumeric': 0.19671772428884027, 'fraction_numerical': 0.005105762217359592, 'mean_word_length': 3.3554637865311308, 'pattern_counts': {'":': 0, '<': 221, '<?xml version=': 0, '>': 221, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '7302501', 'n_tokens_mistral': 6408, 'n_tokens_neox': 4877, 'n_words': 862}