{if $ownprofile} {str tag=editthisview section=view} {/if} {if $loginas} {if $USER->get('admin')} {str tag=accountsettings section=admin} {/if} {/if} {if $canmessage} {str tag='sendmessage' section='group'} {/if} {if $relationship == 'existingfriend'} {str tag='removefromfriendslist' section='group'} {elseif $relationship == 'none' && $friendscontrol == 'auto'} {$newfriendform|safe} {elseif $relationship == 'none' && $friendscontrol == 'auth'} {str tag='requestfriendship' section='group'} {/if}