Files
Testing/templates/profile-blocker.tpl
sean 0e8a8b3028
Some checks failed
deploy-testing / deploy (push) Has been cancelled
Initial testing snapshot
2026-11-17 16:15:01 -05:00

269 lines
5.8 KiB
Smarty

{include file='header.tpl'}
<div class='page_header' style="height:31px;"><span style="font-size:20pt; font-weight:bold;"> {$owner->user_displayname}</span>
{if $owner->user_info.verified==1}<img src="{$imagecdn}images/bwverification.png" style="width: 25px; margin-top: -15px;">{/if}</div>
<div class="col-sm-3 norightpadding">
{* BEGIN LEFT COLUMN *}
{* SHOW USER PHOTO *}
<table cellpadding='0' cellspacing='0' width='100%' style='margin-bottom: 10px;'>
<tr>
<td class='profile_photo'>
{assign var="profilepicture" value=$owner->user_photo("./images/nophoto.png")}
{if $album_id!=""}
<a href="/album.php?user={$owner->user_info.user_username}&album_id={$album_id}">{$owner->userprofiledot($profilepicture)}</a>
{else}
{$owner->userprofiledot($profilepicture)}
{/if}
</td>
</tr>
</table>
{if $user->user_info.user_id!=$owner->user_info.user_id}
<table class='profile_menu' cellpadding='0' cellspacing='0' width='100%'>
{* SHOW PHOTOS OF THIS PERSON *}
{if $total_photo_tags != 0}
<tr><td class='profile_menu1' nowrap='nowrap'><a href='profile_photos.php?user={$owner->user_info.user_username}'>{lang_sprintf id=1204 1=$owner->user_displayname_short 2=$total_photo_tags}</a></td></tr>
{assign var='showmenu' value='1'}
{/if}
{* SHOW BUTTONS IF LOGGED IN AND VIEWING SOMEONE ELSE *}
{if $owner->user_info.user_id != $user->user_info.user_id}
{* SHOW ADD OR REMOVE FRIEND MENU ITEM *}
{if $friendship_allowed != 0 && $user->user_exists != 0}
<tr><td class='profile_menu1' nowrap='nowrap'>
{* JAVASCRIPT FOR CHANGING FRIEND MENU OPTION *}
{literal}
<script type="text/javascript">
<!--
function friend_update(status, id) {
if(status == 'pending') {
if($('addfriend_'+id))
$('addfriend_'+id).style.display = 'none';
if($('confirmfriend_'+id))
$('confirmfriend_'+id).style.display = 'none';
if($('pendingfriend_'+id))
$('pendingfriend_'+id).style.display = 'block';
if($('removefriend_'+id))
$('removefriend_'+id).style.display = 'none';
} else if(status == 'remove') {
if($('addfriend_'+id))
$('addfriend_'+id).style.display = 'none';
if($('confirmfriend_'+id))
$('confirmfriend_'+id).style.display = 'none';
if($('pendingfriend_'+id))
$('pendingfriend_'+id).style.display = 'none';
if($('removefriend_'+id))
$('removefriend_'+id).style.display = 'block';
} else if(status == 'add') {
if($('addfriend_'+id))
$('addfriend_'+id).style.display = 'block';
if($('confirmfriend_'+id))
$('confirmfriend_'+id).style.display = 'none';
if($('pendingfriend_'+id))
$('pendingfriend_'+id).style.display = 'none';
if($('removefriend_'+id))
$('removefriend_'+id).style.display = 'none';
}
}
//-->
</script>
{/literal}
<div id='addfriend_{$owner->user_info.user_id}'{if $is_friend == TRUE || $is_friend_pending != 0} style='display: none;'{/if}>
<a data-toggle="modal" data-target="#myModal" href="user_friends_manage.php?user={$owner->user_info.user_username}">
{lang_print id=838}</a></div>
<div id='confirmfriend_{$owner->user_info.user_id}'{if $is_friend_pending != 1} style='display: none;'{/if}>
<a data-toggle="modal" data-target="#myModal" href="user_friends_manage.php?user={$owner->user_info.user_username}&confirm=1">{lang_print id=885}</a></div>
<div id='pendingfriend_{$owner->user_info.user_id}'{if $is_friend_pending != 2} style='display: none;'{/if} class='nolink'>{lang_print id=875}</div>
<div id='removefriend_{$owner->user_info.user_id}'{if $is_friend == FALSE || $is_friend_pending != 0} style='display: none;'{/if}>
<a data-toggle="modal" data-target="#myModal" href="user_friends_manage.php?task=remove&user={$owner->user_info.user_username}">{lang_print id=837}</a></div>
</td></tr>
{assign var='showmenu' value='1'}
{/if}
{* SHOW SEND MESSAGE MENU ITEM *}
{* SHOW REPORT THIS PERSON MENU ITEM *}
{if $user->user_exists != 0}
<tr><td class='profile_menu1' nowrap='nowrap'><a data-toggle="modal" data-target="#myModal" href="user_report.php?return_url={$url->url_current()|escape:url}">{lang_print id=840}</a></td></tr>
{assign var='showmenu' value='1'}
{/if}
{/if}
{if $owner->user_info.staff!=1}
{* SHOW BLOCK OR UNBLOCK THIS PERSON MENU ITEM *}
{if $user->level_info.level_profile_block != 0}
<tr><td class='profile_menu1' nowrap='nowrap'>
<div id='unblock'{if $user->user_blocked($owner->user_info.user_id) == FALSE} style='display: none;'{/if}><a data-toggle="modal" data-target="#myModal" href="user_friends_block.php?task=unblock&user={$owner->user_info.user_username}">{lang_print id=841}</a></div>
<div id='block'{if $user->user_blocked($owner->user_info.user_id) == TRUE} style='display: none;'{/if}><a data-toggle="modal" data-target="#myModal" href="user_friends_block.php?task=block&user={$owner->user_info.user_username}">{lang_print id=842}</a></div>
</td></tr>
{assign var='showmenu' value='1'}
{/if}
{/if}
{/if}
</table>
<br>
<br>
{* END LEFT COLUMN *}
</div>
<div class="col-sm-8 profile-right">
{lang_print id=a23}
</div>
{include file='footer.tpl'}