mirror of
https://github.com/openvk/openvk
synced 2024-12-23 17:12:01 +03:00
bec9079e36
* Перенос ветки blacklist (#900) * Blacklist * Config * upd * Added restrictions in the users.get method * ok * Update en.strings * ok 2.0 --------- Co-authored-by: Vladimir Barinov <veselcraft@icloud.com> * Create 00038-blacklist.sql * typo xd * Blacklists: Make it barely work (xd) * БЛЯЯЯЯЯЯЯЯТЬ * remove all * account.ban, account.unban, account.getBanned * rewrite ui * add link * add ignore button to blacklisted users * fields blacklisted_by_me, blacklisted * ad ability to blacklist when you ar blacklisted --------- Co-authored-by: n1rwana <me@n1rwana.xyz> Co-authored-by: Vladimir Barinov <veselcraft@icloud.com> Co-authored-by: n1rwana <aydashkin@vk.com>
74 lines
No EOL
3.7 KiB
XML
74 lines
No EOL
3.7 KiB
XML
{extends "../@layout.xml"}
|
|
{block title}{$user->getCanonicalName()}{/block}
|
|
|
|
{block header}
|
|
{$user->getCanonicalName()}
|
|
<img n:if="$user->isVerified()"
|
|
class="name-checkmark"
|
|
src="/assets/packages/static/openvk/img/checkmark.png"
|
|
/>
|
|
{/block}
|
|
|
|
{block content}
|
|
<div class="left_small_block">
|
|
<div>
|
|
<img src="{$user->getAvatarUrl('normal')}"
|
|
alt="{$user->getCanonicalName()}"
|
|
style="width: 100%; image-rendering: -webkit-optimize-contrast;" />
|
|
</div>
|
|
<div id="profile_links" n:if="isset($thisUser)">
|
|
<a style="width: 194px;" n:if="$user->getPrivacyPermission('messages.write', $thisUser)" href="/im?sel={$user->getId()}" class="profile_link" rel='nofollow'>{_send_message}</a>
|
|
{var $subStatus = $user->getSubscriptionStatus($thisUser)}
|
|
{if $subStatus === 0}
|
|
<form action="/setSub/user" method="post" class="profile_link_form" id="addToFriends">
|
|
<input type="hidden" name="act" value="add" />
|
|
<input type="hidden" name="id" value="{$user->getId()}" />
|
|
<input type="hidden" name="hash" value="{$csrfToken}" />
|
|
<input type="submit" class="profile_link" value="{_friends_add}" style="width: 194px;" />
|
|
</form>
|
|
{elseif $subStatus === 1}
|
|
<form action="/setSub/user" method="post" class="profile_link_form" id="addToFriends">
|
|
<input type="hidden" name="act" value="add" />
|
|
<input type="hidden" name="id" value="{$user->getId()}" />
|
|
<input type="hidden" name="hash" value="{$csrfToken}" />
|
|
<input type="submit" class="profile_link" value="{_friends_accept}" style="width: 194px;" />
|
|
</form>
|
|
{elseif $subStatus === 2}
|
|
<form action="/setSub/user" method="post" class="profile_link_form" id="addToFriends">
|
|
<input type="hidden" name="act" value="rem" />
|
|
<input type="hidden" name="id" value="{$user->getId()}" />
|
|
<input type="hidden" name="hash" value="{$csrfToken}" />
|
|
<input type="submit" class="profile_link" value="{_friends_reject}" style="width: 194px;" />
|
|
</form>
|
|
{/if}
|
|
<a id="_bl_toggler" data-name="{$user->getMorphedName('genitive', false)}" data-val="1" data-id="{$user->getRealId()}" class="profile_link" style="display:block;width:96%;">{_bl_add}</a>
|
|
<a class="profile_link" style="display:block;width:96%;" href="javascript:reportUser({$user->getId()})">{_report}</a>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="right_big_block">
|
|
<div class="page_info">
|
|
<div class="accountInfo clearFix">
|
|
<div class="profileName">
|
|
<h2>{$user->getFullName()}</h2>
|
|
<div class="page_status" style="color: #AAA;">{_closed_page}</div>
|
|
</div>
|
|
</div>
|
|
<div class="msg msg_yellow" style="width: 93%;margin-top: 10px;">
|
|
{var $m = $user->isFemale() ? "f" : "m"}
|
|
{tr("limited_access_to_page_$m", $user->getFirstName())}
|
|
|
|
{if isset($thisUser)}
|
|
{if $subStatus != 2}
|
|
<br /><br />
|
|
{_you_can_add}
|
|
<a href="javascript:addToFriends.submit()">{tr("add_to_friends_$m")}</a>
|
|
{/if}
|
|
{else}
|
|
<br /><br />
|
|
{tr("register_to_access_page_$m")}
|
|
{/if}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{/block} |