summaryrefslogtreecommitdiff
path: root/modules/mod_user_profile.tpl
blob: 365dd423415d7f623775e3b107b3940c01f53734 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{strip}
	{bitmodule title="$moduleTitle"}
		<h2 style="text-align:center;">
			{displayname hash=$userInfo}
			{if $gQueryUserId and $gBitSystem->isPackageActive( 'messages' ) and $gBitUser->hasPermission( 'p_messages_send' ) and $userPrefs.messages_allow_messages eq 'y'}
				&nbsp;<a href="{$smarty.const.MESSAGES_PKG_URL}compose.php?to={$userInfo.login}">{biticon ipackage="icons" iname="mail-forward" iexplain="Send user a personal message" iforce="icon"}</a>
			{/if}
		</h2>
		<p style="text-align:center;">
			{if $userInfo.avatar_url}
				<img src="{$userInfo.avatar_url}" class="thumb" title="{tr}Avatar{/tr}" alt="{tr}Avatar{/tr}"/>
			{else}
				{biticon ipackage="icons" iname="user-offline" iclass="thumb" iexplain="no user avatar uploaded" iforce="icon"}
			{/if}
			<br />
			{tr}Last login{/tr}: {$userInfo.last_login|bit_short_date}
		</p>
	{/bitmodule}
{/strip}