view.tpl 3.28 KB
Newer Older
1
2
3
{if $microheaders}
  {include file="viewmicroheader.tpl"}
{else}
4
  {include file="header.tpl"}
Evonne Cheung's avatar
Evonne Cheung committed
5
6
  <h1 class="user-icon-name">
  <span class="usericon"><img src="{profile_icon_url user=$user maxwidth=60 maxheight=60}" alt="" /></span>
7
  {if $pageheadinghtml}
Evonne Cheung's avatar
Evonne Cheung committed
8
    {$pageheadinghtml|safe}
9
  {/if}
Evonne Cheung's avatar
Evonne Cheung committed
10
  </h1>
11
  {if $ownprofile}
Evonne Cheung's avatar
Evonne Cheung committed
12
  <div class="userviewrbuttons">
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
{if $relationship == 'pending'}
                    	<div class="message">
Evonne Cheung's avatar
Evonne Cheung committed
21
                            <label>{str tag='whymakemeyourfriend' section='group'}</label>: {$message}
22
23
24
25
                            <div>
                              {$acceptform|safe}
                              <a class="btn" id="approve_deny_friendrequest_deny" href="{$WWWROOT}user/denyrequest.php?id={$USERID}&returnto=view">{str tag=denyrequest section=group}</a>
                            </div>
Evonne Cheung's avatar
Evonne Cheung committed
26
27
                    	</div>
{/if}
Nigel McNie's avatar
Nigel McNie committed
28
                    <div id="userview">
Evonne Cheung's avatar
Evonne Cheung committed
29
                        <div class="user-icon">
30
                            {$institutions|safe}
Penny Leach's avatar
Penny Leach committed
31
{if $loginas}
Evonne Cheung's avatar
Evonne Cheung committed
32
							<a href="{$WWWROOT}admin/users/changeuser.php?id={$USERID}" class="btn-login">{$loginas}</a>
33
    {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
34
{/if}
Evonne Cheung's avatar
Evonne Cheung committed
35
{if $canmessage}
Evonne Cheung's avatar
Evonne Cheung committed
36
							<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
37
38
{/if}
{if $relationship == 'existingfriend'}
39
                            <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
40
{elseif $relationship == 'none' && $friendscontrol == 'auto'}
41
                            {$newfriendform|safe}
Nigel McNie's avatar
Nigel McNie committed
42
{elseif $relationship == 'none' && $friendscontrol == 'auth'}
Evonne Cheung's avatar
Evonne Cheung committed
43
                            <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
44
{/if}
Evonne Cheung's avatar
Evonne Cheung committed
45
                    </div>
Evonne Cheung's avatar
Evonne Cheung committed
46
{if $invitedlist}
Evonne Cheung's avatar
Evonne Cheung committed
47
						<span class="invitedtojoin"><label>{str tag=groupinvitesfrom section=group}</label> {$invitedlist}</span>
Nigel McNie's avatar
Nigel McNie committed
48
{/if}
Evonne Cheung's avatar
Evonne Cheung committed
49
{if $inviteform}
Evonne Cheung's avatar
Evonne Cheung committed
50
						<span class="addform">{$inviteform|safe}</span>
Nigel McNie's avatar
Nigel McNie committed
51
{/if}
Evonne Cheung's avatar
Evonne Cheung committed
52

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

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