view.tpl 3.01 KB
Newer Older
1
2
3
{if $microheaders}
  {include file="viewmicroheader.tpl"}
{else}
4
5
6
7
8
9
10
  {include file="header.tpl"}
  <table class="user-icon-name"><tr>
  <td><img src="{profile_icon_url user=$user maxwidth=60 maxheight=60}" alt="" /></td>
  {if $pageheadinghtml}
    <td><h1>{$pageheadinghtml|safe}</h1></td>
  {/if}
  </tr></table>
11
12
  {if $ownprofile}
  <div class="rbuttons">
13
    <a title="{str tag=editthisview section=view}" href="{$WWWROOT}view/blocks.php?profile=1" class="btn">{str tag=editthisview section=view}</a>
14
15
  </div>
  {/if}
16
17
{/if}

18

Evonne Cheung's avatar
Evonne Cheung committed
19
20
21
22
23
24
{if $relationship == 'pending'}
                    	<div class="message">
                            {str tag='whymakemeyourfriend' section='group'} {$message}
                            {$requestform|safe}
                    	</div>
{/if}
Nigel McNie's avatar
Nigel McNie committed
25
                    <div id="userview">
Evonne Cheung's avatar
Evonne Cheung committed
26
                        <div class="user-icon">
27
                            {$institutions|safe}
Penny Leach's avatar
Penny Leach committed
28
{if $loginas}
Evonne Cheung's avatar
Evonne Cheung committed
29
							<a href="{$WWWROOT}admin/users/changeuser.php?id={$USERID}" class="btn-login">{$loginas}</a>
30
    {if $USER->get('admin')}<a href="{$WWWROOT}admin/users/edit.php?id={$USERID}" class="btn-edit">{str tag=accountsettings section=admin}</a>{/if}
Nigel McNie's avatar
Nigel McNie committed
31
{/if}
Evonne Cheung's avatar
Evonne Cheung committed
32
{if $canmessage}
Evonne Cheung's avatar
Evonne Cheung committed
33
							<a href="{$WWWROOT}user/sendmessage.php?id={$USERID}&amp;returnto=view" class="btn-message">{str tag='sendmessage' section='group'}</a>
Nigel McNie's avatar
Nigel McNie committed
34
35
{/if}
{if $relationship == 'existingfriend'}
36
                            <a href="{$WWWROOT}user/removefriend.php?id={$USERID}&amp;returnto=view" class="btn-del">{str tag='removefromfriendslist' section='group'}</a>
Nigel McNie's avatar
Nigel McNie committed
37
{elseif $relationship == 'none' && $friendscontrol == 'auto'}
38
                            {$newfriendform|safe}
Nigel McNie's avatar
Nigel McNie committed
39
{elseif $relationship == 'none' && $friendscontrol == 'auth'}
Evonne Cheung's avatar
Evonne Cheung committed
40
                            <a href="{$WWWROOT}user/requestfriendship.php?id={$USERID}&amp;returnto=view" class="btn-friend">{str tag='requestfriendship' section='group'}</a>
Nigel McNie's avatar
Nigel McNie committed
41
{/if}
Evonne Cheung's avatar
Evonne Cheung committed
42
                    </div>
Evonne Cheung's avatar
Evonne Cheung committed
43
{if $invitedlist}
Evonne Cheung's avatar
Evonne Cheung committed
44
						<span class="invitedtojoin"><label>{str tag=groupinvitesfrom section=group}</label> {$invitedlist}</span>
Nigel McNie's avatar
Nigel McNie committed
45
{/if}
Evonne Cheung's avatar
Evonne Cheung committed
46
{if $inviteform}
Evonne Cheung's avatar
Evonne Cheung committed
47
						<span class="addform">{$inviteform|safe}</span>
Nigel McNie's avatar
Nigel McNie committed
48
{/if}
Evonne Cheung's avatar
Evonne Cheung committed
49

Evonne Cheung's avatar
Evonne Cheung committed
50
{if $requestedlist}
Evonne Cheung's avatar
Evonne Cheung committed
51
						<span class="requestedmembership"><label>{str tag=requestedmembershipin section=group}</label> {$requestedlist}
Nigel McNie's avatar
Nigel McNie committed
52
{/if}
Evonne Cheung's avatar
Evonne Cheung committed
53
54
55
56
57
{if $addform}
						<span class="addform">{$addform|safe}</span>
{/if}

                        <div class="cb"></div>
Evonne Cheung's avatar
Evonne Cheung committed
58
59
60
61
                	</div>
                	<div id="view" class="cl">
                    	<div id="bottom-pane">
                    	    <div id="column-container">
62
63
64
65
66
                                {if $restrictedview}
                                    <strong>{str tag=profilenotshared section=view}</strong>
                                {else}
                                    {$viewcontent|safe}
                                {/if}
Evonne Cheung's avatar
Evonne Cheung committed
67
68
69
                        	    <div class="cb"></div>
                        	</div>
                    	</div>
70
                    </div>
71
{if $microheaders}{include file="microfooter.tpl"}{else}{include file="footer.tpl"}{/if}
72