summaryrefslogtreecommitdiff
path: root/modules/mod_user_profile.tpl
blob: 17b26f757c65b1e93e19fd4aa08c29c98914b720 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{if $userInfo.is_private neq 'true' || $gBitUser->mUserId eq $userInfo.user_id}
{strip}
{bitmodule}
<div style="text-align:center;">

	{if $userInfo.portrait_url}
	    <img src="{$userInfo.portrait_url}" class="userportrait img-responsive" title="{tr}Portrait{/tr}" alt="{tr}Portrait{/tr}" />
	{elseif $userInfo.avatar_url}
		<img src="{$userInfo.avatar_url}" class="userportrait img-responsive" title="{tr}Avatar{/tr}" alt="{tr}Avatar{/tr}"/>
	{else}
	    {biticon ipackage="users" iname="silhouette" iexplain="" class="userportrait"}
	{/if}

	<div class="floaticon">
		{if $gQueryUserId && $gBitSystem->isPackageActive( 'messages' ) && $gBitUser->hasPermission( 'p_messages_send' ) && $userPrefs.messages_allow_messages eq 'y'}
			&nbsp;<a href="{$smarty.const.MESSAGES_PKG_URL}compose.php?to={$userInfo.login}">{biticon ipackage="icons" iname="internet-mail" iexplain="Send user a personal message"}</a>
		{/if}
		{if $gBitUser->hasPermission('p_users_edit_user_homepage')}
			<a href="{$smarty.const.USERS_PKG_URL}preferences.php?view_user={$userInfo.user_id}">{biticon ipackage="icons" iname="accessories-text-editor" iexplain="Edit your preferences"}</a>
		{/if}
	</div>

	<h2> {displayname hash=$userInfo} </h2>
</div>

	{if $gBitUser->hasPermission( 'p_users_admin' )}
		 <div>{$userInfo.email|default:'No Email'} ({$userInfo.user_id})</div>
	{/if}

{if $userInfo.publicEmail}
	{$userInfo.publicEmail}
{/if}

	<div>{tr}Joined{/tr}: {$userInfo.registration_date|bit_short_date}</div>
	<div>{tr}Last visit{/tr}: {$userInfo.last_login|bit_short_date}</div>

	{if $userPrefs.flag}{biticon iforce=icon ipackage=users ipath="flags/" iname=$userPrefs.flag iexplain=$userPrefs.users_country width=32 height=24}{/if} {assign var=langcode value=$userPrefs.bitlanguage|default:$gBitSystem->getConfig('bitlanguage','en')}{$gBitLanguage->mLanguageList.$langcode.native_name}
{/bitmodule}
{/strip}
{/if}