mirror of
https://github.com/openvk/openvk
synced 2024-12-23 00:51:03 +03:00
Fewer PHP User Deprecated errors
This commit is contained in:
parent
ac845cc4d1
commit
c1d7b49dda
57 changed files with 153 additions and 165 deletions
|
@ -4,7 +4,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="container_gray">
|
<div class="container_gray">
|
||||||
{var data = is_array($iterator) ? $iterator : iterator_to_array($iterator)}
|
{var $data = is_array($iterator) ? $iterator : iterator_to_array($iterator)}
|
||||||
|
|
||||||
{if sizeof($data) > 0}
|
{if sizeof($data) > 0}
|
||||||
<div class="content" n:foreach="$data as $dat">
|
<div class="content" n:foreach="$data as $dat">
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
{block wrap}
|
{block wrap}
|
||||||
<div class="ovk-lw-container">
|
<div class="ovk-lw-container">
|
||||||
<div class="ovk-lw--list">
|
<div class="ovk-lw--list">
|
||||||
{var data = is_array($iterator) ? $iterator : iterator_to_array($iterator)}
|
{var $data = is_array($iterator) ? $iterator : iterator_to_array($iterator)}
|
||||||
|
|
||||||
{if sizeof($data) > 0}
|
{if sizeof($data) > 0}
|
||||||
<table n:foreach="$data as $dat" border="0" style="font-size:11px;" class="post">
|
<table n:foreach="$data as $dat" border="0" style="font-size:11px;" class="post">
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
{var instance_name = OPENVK_ROOT_CONF['openvk']['appearance']['name']}
|
{var $instance_name = OPENVK_ROOT_CONF['openvk']['appearance']['name']}
|
||||||
|
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{var instance_name = OPENVK_ROOT_CONF['openvk']['appearance']['name']}
|
{var $instance_name = OPENVK_ROOT_CONF['openvk']['appearance']['name']}
|
||||||
{if !isset($parentModule) || substr($parentModule, 0, 21) === 'libchandler:absolute.'}
|
{if !isset($parentModule) || substr($parentModule, 0, 21) === 'libchandler:absolute.'}
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
@ -169,9 +169,9 @@
|
||||||
</a>
|
</a>
|
||||||
<a href="/settings" class="link">{_my_settings}</a>
|
<a href="/settings" class="link">{_my_settings}</a>
|
||||||
|
|
||||||
{var canAccessAdminPanel = $thisUser->getChandlerUser()->can("access")->model("admin")->whichBelongsTo(NULL)}
|
{var $canAccessAdminPanel = $thisUser->getChandlerUser()->can("access")->model("admin")->whichBelongsTo(NULL)}
|
||||||
{var canAccessHelpdesk = $thisUser->getChandlerUser()->can("write")->model('openvk\Web\Models\Entities\TicketReply')->whichBelongsTo(0)}
|
{var $canAccessHelpdesk = $thisUser->getChandlerUser()->can("write")->model('openvk\Web\Models\Entities\TicketReply')->whichBelongsTo(0)}
|
||||||
{var menuLinksAvaiable = sizeof(OPENVK_ROOT_CONF['openvk']['preferences']['menu']['links']) > 0 && $thisUser->getLeftMenuItemStatus('links')}
|
{var $menuLinksAvaiable = sizeof(OPENVK_ROOT_CONF['openvk']['preferences']['menu']['links']) > 0 && $thisUser->getLeftMenuItemStatus('links')}
|
||||||
<div n:if="$canAccessAdminPanel || $canAccessHelpdesk || $menuLinksAvaiable" class="menu_divider"></div>
|
<div n:if="$canAccessAdminPanel || $canAccessHelpdesk || $menuLinksAvaiable" class="menu_divider"></div>
|
||||||
<a href="/admin" class="link" n:if="$canAccessAdminPanel" title="Админ-панель [Alt+Shift+A]" accesskey="a">Админ-панель</a>
|
<a href="/admin" class="link" n:if="$canAccessAdminPanel" title="Админ-панель [Alt+Shift+A]" accesskey="a">Админ-панель</a>
|
||||||
<a href="/support/tickets" class="link" n:if="$canAccessHelpdesk">Helpdesk
|
<a href="/support/tickets" class="link" n:if="$canAccessHelpdesk">Helpdesk
|
||||||
|
@ -259,7 +259,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="page_footer">
|
<div class="page_footer">
|
||||||
{var dbVersion = \Chandler\Database\DatabaseConnection::i()->getConnection()->getPdo()->getAttribute(\PDO::ATTR_SERVER_VERSION)}
|
{var $dbVersion = \Chandler\Database\DatabaseConnection::i()->getConnection()->getPdo()->getAttribute(\PDO::ATTR_SERVER_VERSION)}
|
||||||
|
|
||||||
<div class="navigation_footer">
|
<div class="navigation_footer">
|
||||||
<a href="/about" class="link">{_footer_about_instance}</a>
|
<a href="/about" class="link">{_footer_about_instance}</a>
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
{include specpage, x => $dat}
|
{include specpage, x => $dat}
|
||||||
{else}
|
{else}
|
||||||
<div class="container_gray">
|
<div class="container_gray">
|
||||||
{var data = is_array($iterator) ? $iterator : iterator_to_array($iterator)}
|
{var $data = is_array($iterator) ? $iterator : iterator_to_array($iterator)}
|
||||||
|
|
||||||
{if sizeof($data) > 0}
|
{if sizeof($data) > 0}
|
||||||
<div class="content" n:foreach="$data as $dat">
|
<div class="content" n:foreach="$data as $dat">
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<head>
|
<head>
|
||||||
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
|
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
|
||||||
<style>
|
<style>
|
||||||
{var css = file_get_contents(OPENVK_ROOT . "/Web/static/js/node_modules/@atlassian/aui/dist/aui/aui-prototyping.css")}
|
{var $css = file_get_contents(OPENVK_ROOT . "/Web/static/js/node_modules/@atlassian/aui/dist/aui/aui-prototyping.css")}
|
||||||
{str_replace("fonts/", "/assets/packages/static/openvk/js/node_modules/@atlassian/aui/dist/aui/fonts/", $css)|noescape}
|
{str_replace("fonts/", "/assets/packages/static/openvk/js/node_modules/@atlassian/aui/dist/aui/fonts/", $css)|noescape}
|
||||||
</style>
|
</style>
|
||||||
<title>{include title} - Админ-панель {=OPENVK_ROOT_CONF['openvk']['appearance']['name']}</title>
|
<title>{include title} - Админ-панель {=OPENVK_ROOT_CONF['openvk']['appearance']['name']}</title>
|
||||||
|
@ -131,7 +131,7 @@
|
||||||
</div>
|
</div>
|
||||||
<section class="aui-page-panel-content">
|
<section class="aui-page-panel-content">
|
||||||
{ifset $flashMessage}
|
{ifset $flashMessage}
|
||||||
{var type = ["err" => "error", "warn" => "warning", "info" => "basic", "succ" => "success"][$flashMessage->type]}
|
{var $type = ["err" => "error", "warn" => "warning", "info" => "basic", "succ" => "success"][$flashMessage->type]}
|
||||||
<div class="aui-message aui-message-{$type}" style="margin-bottom: 15px;">
|
<div class="aui-message aui-message-{$type}" style="margin-bottom: 15px;">
|
||||||
<p class="title">
|
<p class="title">
|
||||||
<strong>{$flashMessage->title}</strong>
|
<strong>{$flashMessage->title}</strong>
|
||||||
|
|
|
@ -11,9 +11,9 @@
|
||||||
|
|
||||||
{block content}
|
{block content}
|
||||||
|
|
||||||
{var isMain = $mode === 'main'}
|
{var $isMain = $mode === 'main'}
|
||||||
{var isBan = $mode === 'ban'}
|
{var $isBan = $mode === 'ban'}
|
||||||
{var isFollowers = $mode === 'followers'}
|
{var $isFollowers = $mode === 'followers'}
|
||||||
|
|
||||||
{if $isMain}
|
{if $isMain}
|
||||||
|
|
||||||
|
@ -134,7 +134,7 @@
|
||||||
|
|
||||||
<!-- This followers block -->
|
<!-- This followers block -->
|
||||||
|
|
||||||
{var followers = iterator_to_array($followers)}
|
{var $followers = iterator_to_array($followers)}
|
||||||
|
|
||||||
<div class="aui-tabs horizontal-tabs">
|
<div class="aui-tabs horizontal-tabs">
|
||||||
<nav class="aui-navgroup aui-navgroup-horizontal">
|
<nav class="aui-navgroup aui-navgroup-horizontal">
|
||||||
|
@ -177,7 +177,7 @@
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<div align="right">
|
<div align="right">
|
||||||
{var isLast = ((20 * (($_GET['p'] ?? 1) - 1)) + $amount) < $count}
|
{var $isLast = ((20 * (($_GET['p'] ?? 1) - 1)) + $amount) < $count}
|
||||||
|
|
||||||
<a n:if="($_GET['p'] ?? 1) > 1" class="aui-button" href="?p={($_GET['p'] ?? 1) - 1}">
|
<a n:if="($_GET['p'] ?? 1) > 1" class="aui-button" href="?p={($_GET['p'] ?? 1) - 1}">
|
||||||
⭁ туда
|
⭁ туда
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{extends "@layout.xml"}
|
{extends "@layout.xml"}
|
||||||
{var search = true}
|
{var $search = true}
|
||||||
|
|
||||||
{block title}
|
{block title}
|
||||||
Группы
|
Группы
|
||||||
|
@ -12,8 +12,8 @@
|
||||||
{block searchTitle}Поиск бутылок{/block}
|
{block searchTitle}Поиск бутылок{/block}
|
||||||
|
|
||||||
{block content}
|
{block content}
|
||||||
{var clubs = iterator_to_array($clubs)}
|
{var $clubs = iterator_to_array($clubs)}
|
||||||
{var amount = sizeof($clubs)}
|
{var $amount = sizeof($clubs)}
|
||||||
|
|
||||||
<table class="aui aui-table-list">
|
<table class="aui aui-table-list">
|
||||||
<thead>
|
<thead>
|
||||||
|
@ -39,7 +39,7 @@
|
||||||
<a href="{$club->getURL()}">{$club->getCanonicalName()}</a>
|
<a href="{$club->getURL()}">{$club->getCanonicalName()}</a>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{var user = $club->getOwner()}
|
{var $user = $club->getOwner()}
|
||||||
|
|
||||||
<span class="aui-avatar aui-avatar-xsmall">
|
<span class="aui-avatar aui-avatar-xsmall">
|
||||||
<span class="aui-avatar-inner">
|
<span class="aui-avatar-inner">
|
||||||
|
@ -61,7 +61,7 @@
|
||||||
</table>
|
</table>
|
||||||
<br/>
|
<br/>
|
||||||
<div align="right">
|
<div align="right">
|
||||||
{var isLast = ((10 * (($_GET['p'] ?? 1) - 1)) + $amount) < $count}
|
{var $isLast = ((10 * (($_GET['p'] ?? 1) - 1)) + $amount) < $count}
|
||||||
|
|
||||||
<a n:if="($_GET['p'] ?? 1) > 1" class="aui-button" href="?p={($_GET['p'] ?? 1) - 1}">
|
<a n:if="($_GET['p'] ?? 1) > 1" class="aui-button" href="?p={($_GET['p'] ?? 1) - 1}">
|
||||||
⭁ туда
|
⭁ туда
|
||||||
|
|
|
@ -45,7 +45,7 @@
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
<div align="right">
|
<div align="right">
|
||||||
{var isLast = ((20 * (($_GET['p'] ?? 1) - 1)) + sizeof($categories)) < $count}
|
{var $isLast = ((20 * (($_GET['p'] ?? 1) - 1)) + sizeof($categories)) < $count}
|
||||||
<a n:if="($_GET['p'] ?? 1) > 1" class="aui-button" href="?act={$act}&p={($_GET['p'] ?? 1) - 1}">
|
<a n:if="($_GET['p'] ?? 1) > 1" class="aui-button" href="?act={$act}&p={($_GET['p'] ?? 1) - 1}">
|
||||||
⭁ туда
|
⭁ туда
|
||||||
</a>
|
</a>
|
||||||
|
|
|
@ -71,7 +71,7 @@
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
<div align="right">
|
<div align="right">
|
||||||
{var isLast = ((20 * (($_GET['p'] ?? 1) - 1)) + sizeof($gifts)) < $count}
|
{var $isLast = ((20 * (($_GET['p'] ?? 1) - 1)) + sizeof($gifts)) < $count}
|
||||||
<a n:if="($_GET['p'] ?? 1) > 1" class="aui-button" href="?p={($_GET['p'] ?? 1) - 1}">
|
<a n:if="($_GET['p'] ?? 1) > 1" class="aui-button" href="?p={($_GET['p'] ?? 1) - 1}">
|
||||||
⭁ туда
|
⭁ туда
|
||||||
</a>
|
</a>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{extends "@layout.xml"}
|
{extends "@layout.xml"}
|
||||||
{var search = true}
|
{var $search = true}
|
||||||
|
|
||||||
{block title}
|
{block title}
|
||||||
Пользователи
|
Пользователи
|
||||||
|
@ -12,8 +12,8 @@
|
||||||
{block searchTitle}Поиск пиздюков{/block}
|
{block searchTitle}Поиск пиздюков{/block}
|
||||||
|
|
||||||
{block content}
|
{block content}
|
||||||
{var users = iterator_to_array($users)}
|
{var $users = iterator_to_array($users)}
|
||||||
{var amount = sizeof($users)}
|
{var $amount = sizeof($users)}
|
||||||
|
|
||||||
<table class="aui aui-table-list">
|
<table class="aui aui-table-list">
|
||||||
<thead>
|
<thead>
|
||||||
|
@ -60,7 +60,7 @@
|
||||||
</table>
|
</table>
|
||||||
<br/>
|
<br/>
|
||||||
<div align="right">
|
<div align="right">
|
||||||
{var isLast = ((20 * (($_GET['p'] ?? 1) - 1)) + $amount) < $count}
|
{var $isLast = ((20 * (($_GET['p'] ?? 1) - 1)) + $amount) < $count}
|
||||||
|
|
||||||
<a n:if="($_GET['p'] ?? 1) > 1" class="aui-button" href="?p={($_GET['p'] ?? 1) - 1}">
|
<a n:if="($_GET['p'] ?? 1) > 1" class="aui-button" href="?p={($_GET['p'] ?? 1) - 1}">
|
||||||
⭁ туда
|
⭁ туда
|
||||||
|
|
|
@ -50,7 +50,7 @@
|
||||||
<br/>
|
<br/>
|
||||||
|
|
||||||
<div align="right">
|
<div align="right">
|
||||||
{var isLast = ((20 * (($_GET['p'] ?? 1) - 1)) + sizeof($vouchers)) < $count}
|
{var $isLast = ((20 * (($_GET['p'] ?? 1) - 1)) + sizeof($vouchers)) < $count}
|
||||||
<a n:if="($_GET['p'] ?? 1) > 1" class="aui-button" href="?p={($_GET['p'] ?? 1) - 1}">
|
<a n:if="($_GET['p'] ?? 1) > 1" class="aui-button" href="?p={($_GET['p'] ?? 1) - 1}">
|
||||||
⭁ туда
|
⭁ туда
|
||||||
</a>
|
</a>
|
||||||
|
|
|
@ -47,7 +47,7 @@
|
||||||
<span>{_"gender"}: </span>
|
<span>{_"gender"}: </span>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{var femalePreferred = OPENVK_ROOT_CONF["openvk"]["preferences"]["femaleGenderPriority"]}
|
{var $femalePreferred = OPENVK_ROOT_CONF["openvk"]["preferences"]["femaleGenderPriority"]}
|
||||||
<select name="sex" required>
|
<select name="sex" required>
|
||||||
<option n:attr="selected => !$femalePreferred" value="male">{_"male"}</option>
|
<option n:attr="selected => !$femalePreferred" value="male">{_"male"}</option>
|
||||||
<option n:attr="selected => $femalePreferred" value="female">{_"female"}</option>
|
<option n:attr="selected => $femalePreferred" value="female">{_"female"}</option>
|
||||||
|
|
|
@ -92,7 +92,7 @@
|
||||||
<span class="nobold">{_group_administrators_list}: </span>
|
<span class="nobold">{_group_administrators_list}: </span>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{var areAllAdminsHidden = $club->getManagersCount(true) == 0}
|
{var $areAllAdminsHidden = $club->getManagersCount(true) == 0}
|
||||||
<input type="radio" name="administrators_list_display" value="0" n:attr="checked => $club->getAdministratorsListDisplay() == 0, disabled => $areAllAdminsHidden" /> {_group_display_only_creator}<br>
|
<input type="radio" name="administrators_list_display" value="0" n:attr="checked => $club->getAdministratorsListDisplay() == 0, disabled => $areAllAdminsHidden" /> {_group_display_only_creator}<br>
|
||||||
<input type="radio" name="administrators_list_display" value="1" n:attr="checked => $club->getAdministratorsListDisplay() == 1, disabled => $areAllAdminsHidden" /> {_group_display_all_administrators}<br>
|
<input type="radio" name="administrators_list_display" value="1" n:attr="checked => $club->getAdministratorsListDisplay() == 1, disabled => $areAllAdminsHidden" /> {_group_display_all_administrators}<br>
|
||||||
<input type="radio" name="administrators_list_display" value="2" n:attr="checked => $club->getAdministratorsListDisplay() == 2" /> {_group_dont_display_administrators_list}<br>
|
<input type="radio" name="administrators_list_display" value="2" n:attr="checked => $club->getAdministratorsListDisplay() == 2" /> {_group_dont_display_administrators_list}<br>
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
{extends "../@listView.xml"}
|
{extends "../@listView.xml"}
|
||||||
{var $Manager = openvk\Web\Models\Entities\Manager::class}
|
{var $Manager = openvk\Web\Models\Entities\Manager::class}
|
||||||
{var iterator = $onlyShowManagers ? $managers : $followers}
|
{var $iterator = $onlyShowManagers ? $managers : $followers}
|
||||||
{var count = $paginatorConf->count}
|
{var $count = $paginatorConf->count}
|
||||||
{var page = $paginatorConf->page}
|
{var $page = $paginatorConf->page}
|
||||||
{var perPage = 6}
|
{var $perPage = 6}
|
||||||
|
|
||||||
{block title}{_followers} {$club->getCanonicalName()}{/block}
|
{block title}{_followers} {$club->getCanonicalName()}{/block}
|
||||||
|
|
||||||
|
@ -49,8 +49,8 @@
|
||||||
{/block}
|
{/block}
|
||||||
|
|
||||||
{block description}
|
{block description}
|
||||||
{var user = $x instanceof $Manager ? $x->getUser() : $x}
|
{var $user = $x instanceof $Manager ? $x->getUser() : $x}
|
||||||
{var manager = $x instanceof $Manager ? $x : $club->getManager($user, !$club->canBeModifiedBy($thisUser))}
|
{var $manager = $x instanceof $Manager ? $x : $club->getManager($user, !$club->canBeModifiedBy($thisUser))}
|
||||||
<table>
|
<table>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -106,8 +106,8 @@
|
||||||
{/block}
|
{/block}
|
||||||
|
|
||||||
{block actions}
|
{block actions}
|
||||||
{var user = $x instanceof $Manager ? $x->getUser() : $x}
|
{var $user = $x instanceof $Manager ? $x->getUser() : $x}
|
||||||
{var manager = $x instanceof $Manager ? $x : $club->getManager($user, !$club->canBeModifiedBy($thisUser))}
|
{var $manager = $x instanceof $Manager ? $x : $club->getManager($user, !$club->canBeModifiedBy($thisUser))}
|
||||||
{if $club->canBeModifiedBy($thisUser ?? NULL)}
|
{if $club->canBeModifiedBy($thisUser ?? NULL)}
|
||||||
<a class="profile_link" href="/club{$club->getId()}/setAdmin?user={$user->getId()}&hash={rawurlencode($csrfToken)}" n:if="$club->getOwner()->getId() !== $user->getId()">
|
<a class="profile_link" href="/club{$club->getId()}/setAdmin?user={$user->getId()}&hash={rawurlencode($csrfToken)}" n:if="$club->getOwner()->getId() !== $user->getId()">
|
||||||
{if $manager}
|
{if $manager}
|
||||||
|
|
|
@ -43,7 +43,7 @@
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
<div n:if="$club->getFollowersCount() > 0">
|
<div n:if="$club->getFollowersCount() > 0">
|
||||||
{var followersCount = $club->getFollowersCount()}
|
{var $followersCount = $club->getFollowersCount()}
|
||||||
|
|
||||||
<div class="content_title_expanded" onclick="hidePanel(this, {$followersCount});">
|
<div class="content_title_expanded" onclick="hidePanel(this, {$followersCount});">
|
||||||
{_participants}
|
{_participants}
|
||||||
|
@ -93,8 +93,8 @@
|
||||||
{presenter "openvk!Wall->wallEmbedded", -$club->getId()}
|
{presenter "openvk!Wall->wallEmbedded", -$club->getId()}
|
||||||
</div>
|
</div>
|
||||||
<div class="right_small_block">
|
<div class="right_small_block">
|
||||||
{var avatarPhoto = $club->getAvatarPhoto()}
|
{var $avatarPhoto = $club->getAvatarPhoto()}
|
||||||
{var avatarLink = ((is_null($avatarPhoto) ? FALSE : $avatarPhoto->isAnonymous()) ? "/photo" . ("s/" . base_convert((string) $avatarPhoto->getId(), 10, 32)) : $club->getAvatarLink())}
|
{var $avatarLink = ((is_null($avatarPhoto) ? FALSE : $avatarPhoto->isAnonymous()) ? "/photo" . ("s/" . base_convert((string) $avatarPhoto->getId(), 10, 32)) : $club->getAvatarLink())}
|
||||||
<a href="{$avatarLink|nocheck}">
|
<a href="{$avatarLink|nocheck}">
|
||||||
<img src="{$club->getAvatarUrl('normal')}" style="width: 100%; image-rendering: -webkit-optimize-contrast;" />
|
<img src="{$club->getAvatarUrl('normal')}" style="width: 100%; image-rendering: -webkit-optimize-contrast;" />
|
||||||
</a>
|
</a>
|
||||||
|
@ -134,7 +134,7 @@
|
||||||
{_"creator"}
|
{_"creator"}
|
||||||
</div>
|
</div>
|
||||||
<div class="avatar-list-item" style="padding: 8px;">
|
<div class="avatar-list-item" style="padding: 8px;">
|
||||||
{var author = $club->getOwner()}
|
{var $author = $club->getOwner()}
|
||||||
<div class="avatar">
|
<div class="avatar">
|
||||||
<a href="{$author->getURL()}">
|
<a href="{$author->getURL()}">
|
||||||
<img class="ava" src="{$author->getAvatarUrl()}" />
|
<img class="ava" src="{$author->getAvatarUrl()}" />
|
||||||
|
@ -151,7 +151,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div n:if="$club->getAdministratorsListDisplay() == 1">
|
<div n:if="$club->getAdministratorsListDisplay() == 1">
|
||||||
{var managersCount = $club->getManagersCount(true)}
|
{var $managersCount = $club->getManagersCount(true)}
|
||||||
|
|
||||||
<div class="content_title_expanded" onclick="hidePanel(this, {$managersCount});">
|
<div class="content_title_expanded" onclick="hidePanel(this, {$managersCount});">
|
||||||
{_"administrators"}
|
{_"administrators"}
|
||||||
|
@ -165,7 +165,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="avatar-list">
|
<div class="avatar-list">
|
||||||
<div class="avatar-list-item" n:if="!$club->isOwnerHidden()">
|
<div class="avatar-list-item" n:if="!$club->isOwnerHidden()">
|
||||||
{var author = $club->getOwner()}
|
{var $author = $club->getOwner()}
|
||||||
<div class="avatar">
|
<div class="avatar">
|
||||||
<a href="{$author->getURL()}">
|
<a href="{$author->getURL()}">
|
||||||
<img class="ava" src="{$author->getAvatarUrl()}" />
|
<img class="ava" src="{$author->getAvatarUrl()}" />
|
||||||
|
@ -177,7 +177,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="avatar-list-item" n:foreach="$club->getManagers(1, true) as $manager">
|
<div class="avatar-list-item" n:foreach="$club->getManagers(1, true) as $manager">
|
||||||
{var user = $manager->getUser()}
|
{var $user = $manager->getUser()}
|
||||||
<div class="avatar">
|
<div class="avatar">
|
||||||
<a href="{$user->getURL()}">
|
<a href="{$user->getURL()}">
|
||||||
<img height="32" class="ava" src="{$user->getAvatarUrl()}" />
|
<img height="32" class="ava" src="{$user->getAvatarUrl()}" />
|
||||||
|
@ -205,7 +205,7 @@
|
||||||
<div style="padding: 5px;">
|
<div style="padding: 5px;">
|
||||||
<div class="ovk-album" style="display: inline-block;" n:foreach="$albums as $album">
|
<div class="ovk-album" style="display: inline-block;" n:foreach="$albums as $album">
|
||||||
<div style="text-align: center;float: left;height: 54pt;width: 100px;">
|
<div style="text-align: center;float: left;height: 54pt;width: 100px;">
|
||||||
{var cover = $album->getCoverPhoto()}
|
{var $cover = $album->getCoverPhoto()}
|
||||||
|
|
||||||
<img
|
<img
|
||||||
src="{is_null($cover)?'/assets/packages/static/openvk/img/camera_200.png':$cover->getURL()}"
|
src="{is_null($cover)?'/assets/packages/static/openvk/img/camera_200.png':$cover->getURL()}"
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
<a href="/im">{_my_messages}</a> »
|
<a href="/im">{_my_messages}</a> »
|
||||||
<a href="{$correspondent->getURL()}">{$correspondent->getCanonicalName()}</a>
|
<a href="{$correspondent->getURL()}">{$correspondent->getCanonicalName()}</a>
|
||||||
<div n:if="($online = $correspondent->getOnline()->timestamp()) + 2505600 > time()" style="float: right;">
|
<div n:if="($online = $correspondent->getOnline()->timestamp()) + 2505600 > time()" style="float: right;">
|
||||||
{var diff = date_diff(date_create(), date_create('@' . $online))}
|
{var $diff = date_diff(date_create(), date_create('@' . $online))}
|
||||||
{if 5 >= $diff->i}
|
{if 5 >= $diff->i}
|
||||||
<span><b>{_online}</b></span>
|
<span><b>{_online}</b></span>
|
||||||
{else}
|
{else}
|
||||||
|
|
|
@ -21,8 +21,8 @@
|
||||||
<div n:foreach="$corresps as $coresp"
|
<div n:foreach="$corresps as $coresp"
|
||||||
class="crp-entry"
|
class="crp-entry"
|
||||||
onmousedown="window.location.href = {$coresp->getURL()};" >
|
onmousedown="window.location.href = {$coresp->getURL()};" >
|
||||||
{var recipient = $coresp->getCorrespondents()[1]}
|
{var $recipient = $coresp->getCorrespondents()[1]}
|
||||||
{var lastMsg = $coresp->getPreviewMessage()}
|
{var $lastMsg = $coresp->getPreviewMessage()}
|
||||||
|
|
||||||
<div class="crp-entry--image">
|
<div class="crp-entry--image">
|
||||||
<img src="{$recipient->getAvatarURL('miniscule')}"
|
<img src="{$recipient->getAvatarURL('miniscule')}"
|
||||||
|
@ -33,7 +33,7 @@
|
||||||
<span>{$lastMsg->getSendTime()->format("%e %B %G" . tr("time_at_sp") . "%X")}</span>
|
<span>{$lastMsg->getSendTime()->format("%e %B %G" . tr("time_at_sp") . "%X")}</span>
|
||||||
</div>
|
</div>
|
||||||
<div n:class="crp-entry--message, $lastMsg->getUnreadState() ? unread">
|
<div n:class="crp-entry--message, $lastMsg->getUnreadState() ? unread">
|
||||||
{var _author = $lastMsg->getSender()}
|
{var $_author = $lastMsg->getSender()}
|
||||||
|
|
||||||
<div class="crp-entry--message---av" n:if="$_author->getId() === $thisUser->getId()">
|
<div class="crp-entry--message---av" n:if="$_author->getId() === $thisUser->getId()">
|
||||||
<img src="{$_author->getAvatarURL('miniscule')}"
|
<img src="{$_author->getAvatarURL('miniscule')}"
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
{block title}{_edit_note}{/block}
|
{block title}{_edit_note}{/block}
|
||||||
|
|
||||||
{block header}
|
{block header}
|
||||||
{var author = $note->getOwner()}
|
{var $author = $note->getOwner()}
|
||||||
<a href="{$author->getURL()}">{$author->getCanonicalName()}</a>
|
<a href="{$author->getURL()}">{$author->getCanonicalName()}</a>
|
||||||
»
|
»
|
||||||
<a href="/notes{$author->getId()}">{_notes}</a>
|
<a href="/notes{$author->getId()}">{_notes}</a>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{extends "../@listView.xml"}
|
{extends "../@listView.xml"}
|
||||||
{var iterator = iterator_to_array($notes)}
|
{var $iterator = iterator_to_array($notes)}
|
||||||
{var page = $paginatorConf->page}
|
{var $page = $paginatorConf->page}
|
||||||
|
|
||||||
{block title}{_notes}{/block}
|
{block title}{_notes}{/block}
|
||||||
|
|
||||||
|
@ -62,7 +62,7 @@
|
||||||
|
|
||||||
<div class="container_gray" style="background: white; border-top: none;">
|
<div class="container_gray" style="background: white; border-top: none;">
|
||||||
|
|
||||||
{var data = is_array($iterator) ? $iterator : iterator_to_array($iterator)}
|
{var $data = is_array($iterator) ? $iterator : iterator_to_array($iterator)}
|
||||||
{if sizeof($data) > 0}
|
{if sizeof($data) > 0}
|
||||||
|
|
||||||
<div n:foreach="$data as $dat">
|
<div n:foreach="$data as $dat">
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
{block title}{$note->getName()}{/block}
|
{block title}{$note->getName()}{/block}
|
||||||
|
|
||||||
{block header}
|
{block header}
|
||||||
{var author = $note->getOwner()}
|
{var $author = $note->getOwner()}
|
||||||
<a href="{$author->getURL()}">{$author->getCanonicalName()}</a>
|
<a href="{$author->getURL()}">{$author->getCanonicalName()}</a>
|
||||||
»
|
»
|
||||||
<a href="/notes{$author->getId()}">{_notes}</a>
|
<a href="/notes{$author->getId()}">{_notes}</a>
|
||||||
|
@ -12,7 +12,7 @@
|
||||||
{/block}
|
{/block}
|
||||||
|
|
||||||
{block content}
|
{block content}
|
||||||
{var author = $note->getOwner()}
|
{var $author = $note->getOwner()}
|
||||||
<style>
|
<style>
|
||||||
#userContent img {
|
#userContent img {
|
||||||
max-width: 245pt;
|
max-width: 245pt;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{extends "../@listView.xml"}
|
{extends "../@listView.xml"}
|
||||||
{var sorting = false}
|
{var $sorting = false}
|
||||||
|
|
||||||
{block title}
|
{block title}
|
||||||
{_feedback}
|
{_feedback}
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
{block title}Альбом {$album->getName()}{/block}
|
{block title}Альбом {$album->getName()}{/block}
|
||||||
|
|
||||||
{block header}
|
{block header}
|
||||||
{var isClub = ($album->getOwner() instanceof openvk\Web\Models\Entities\Club)}
|
{var $isClub = ($album->getOwner() instanceof openvk\Web\Models\Entities\Club)}
|
||||||
|
|
||||||
<a href="{$album->getOwner()->getURL()}">
|
<a href="{$album->getOwner()->getURL()}">
|
||||||
{$album->getOwner()->getCanonicalName()}
|
{$album->getOwner()->getCanonicalName()}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{extends "../@listView.xml"}
|
{extends "../@listView.xml"}
|
||||||
{var iterator = iterator_to_array($albums)}
|
{var $iterator = iterator_to_array($albums)}
|
||||||
{var page = $paginatorConf->page}
|
{var $page = $paginatorConf->page}
|
||||||
|
|
||||||
{block title}{_"albums"} {$owner->getCanonicalName()}{/block}
|
{block title}{_"albums"} {$owner->getCanonicalName()}{/block}
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@
|
||||||
|
|
||||||
<span n:if="$canEdit" style="float: right;">
|
<span n:if="$canEdit" style="float: right;">
|
||||||
|
|
|
|
||||||
{var isClub = ($owner instanceof \openvk\Web\Models\Entities\Club)}
|
{var $isClub = ($owner instanceof \openvk\Web\Models\Entities\Club)}
|
||||||
<a href="/albums/create{$isClub ? '?gpid=' . $owner->getId() : ''}">{_create_album}</a>
|
<a href="/albums/create{$isClub ? '?gpid=' . $owner->getId() : ''}">{_create_album}</a>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -44,8 +44,8 @@
|
||||||
{/block}
|
{/block}
|
||||||
|
|
||||||
{block preview}
|
{block preview}
|
||||||
{var cover = $x->getCoverPhoto()}
|
{var $cover = $x->getCoverPhoto()}
|
||||||
{var preview = is_null($cover) ? "/assets/packages/static/openvk/img/camera_200.png" : $cover->getURLBySizeId("normal")}
|
{var $preview = is_null($cover) ? "/assets/packages/static/openvk/img/camera_200.png" : $cover->getURLBySizeId("normal")}
|
||||||
|
|
||||||
<a href="/album{$x->getPrettyId()}">
|
<a href="/album{$x->getPrettyId()}">
|
||||||
<img src="{$preview}" alt="{$x->getName()}" style="height: 130px; width: 170px; object-fit: cover" />
|
<img src="{$preview}" alt="{$x->getName()}" style="height: 130px; width: 170px; object-fit: cover" />
|
||||||
|
|
|
@ -70,7 +70,7 @@
|
||||||
{if $thisUser->getChandlerUser()->can("write")->model('openvk\Web\Models\Entities\TicketReply')->whichBelongsTo(0)}
|
{if $thisUser->getChandlerUser()->can("write")->model('openvk\Web\Models\Entities\TicketReply')->whichBelongsTo(0)}
|
||||||
<a href="{$comment->getUser()->getURL()}">
|
<a href="{$comment->getUser()->getURL()}">
|
||||||
<span class="nobold">
|
<span class="nobold">
|
||||||
{var lastName = $comment->getUser()->getLastName()}
|
{var $lastName = $comment->getUser()->getLastName()}
|
||||||
{if empty(trim($lastName))}
|
{if empty(trim($lastName))}
|
||||||
({$comment->getUser()->getFirstName()})
|
({$comment->getUser()->getFirstName()})
|
||||||
{else}
|
{else}
|
||||||
|
|
|
@ -6,9 +6,9 @@
|
||||||
{/block}
|
{/block}
|
||||||
|
|
||||||
{block content}
|
{block content}
|
||||||
{var isMain = $mode === 'faq'}
|
{var $isMain = $mode === 'faq'}
|
||||||
{var isNew = $mode === 'new'}
|
{var $isNew = $mode === 'new'}
|
||||||
{var isList = $mode === 'list'}
|
{var $isList = $mode === 'list'}
|
||||||
|
|
||||||
{if $thisUser}
|
{if $thisUser}
|
||||||
<div class="tabs">
|
<div class="tabs">
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
{/block}
|
{/block}
|
||||||
|
|
||||||
{block description}
|
{block description}
|
||||||
{var author = $x->getUser()}
|
{var $author = $x->getUser()}
|
||||||
|
|
||||||
{ovk_proc_strtr($x->getContext(), 50)}<br/>
|
{ovk_proc_strtr($x->getContext(), 50)}<br/>
|
||||||
<span class="nobold">{_author}: </span> <a href="{$author->getURL()}">{$author->getCanonicalName()}</a>
|
<span class="nobold">{_author}: </span> <a href="{$author->getURL()}">{$author->getCanonicalName()}</a>
|
||||||
|
|
|
@ -109,7 +109,7 @@
|
||||||
|
|
||||||
{if $comment->getUType() === 1}
|
{if $comment->getUType() === 1}
|
||||||
<div class="post-menu">
|
<div class="post-menu">
|
||||||
{var isLikedByUser = $comment->isLikedByUser()}
|
{var $isLikedByUser = $comment->isLikedByUser()}
|
||||||
<strong id="markText-{$comment->getId()}">
|
<strong id="markText-{$comment->getId()}">
|
||||||
{if !is_null($isLikedByUser)}
|
{if !is_null($isLikedByUser)}
|
||||||
{if $comment->isLikedByUser()}
|
{if $comment->isLikedByUser()}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{extends "../@listView.xml"}
|
{extends "../@listView.xml"}
|
||||||
{var iterator = iterator_to_array($topics)}
|
{var $iterator = iterator_to_array($topics)}
|
||||||
{var page = $paginatorConf->page}
|
{var $page = $paginatorConf->page}
|
||||||
|
|
||||||
{block title}{_discussions} {$club->getCanonicalName()}{/block}
|
{block title}{_discussions} {$club->getCanonicalName()}{/block}
|
||||||
|
|
||||||
|
@ -46,7 +46,7 @@
|
||||||
<div style="float: left;">
|
<div style="float: left;">
|
||||||
{tr("messages", $x->getCommentsCount())}
|
{tr("messages", $x->getCommentsCount())}
|
||||||
</div>
|
</div>
|
||||||
{var lastComment = $x->getLastComment()}
|
{var $lastComment = $x->getLastComment()}
|
||||||
<div n:if="$lastComment" class="avatar-list-item" style="float: right;">
|
<div n:if="$lastComment" class="avatar-list-item" style="float: right;">
|
||||||
<div class="avatar">
|
<div class="avatar">
|
||||||
<a href="{$lastComment->getOwner()->getURL()}">
|
<a href="{$lastComment->getOwner()->getURL()}">
|
||||||
|
|
|
@ -7,10 +7,10 @@
|
||||||
|
|
||||||
{block content}
|
{block content}
|
||||||
|
|
||||||
{var isMain = $mode === 'main'}
|
{var $isMain = $mode === 'main'}
|
||||||
{var isContacts = $mode === 'contacts'}
|
{var $isContacts = $mode === 'contacts'}
|
||||||
{var isInterests = $mode === 'interests'}
|
{var $isInterests = $mode === 'interests'}
|
||||||
{var isAvatar = $mode === 'avatar'}
|
{var $isAvatar = $mode === 'avatar'}
|
||||||
<div n:if="$user->hasPendingNumberChange()" class="msg">
|
<div n:if="$user->hasPendingNumberChange()" class="msg">
|
||||||
<b>Подтверждение номера телефона</b><br/>
|
<b>Подтверждение номера телефона</b><br/>
|
||||||
Введите код для подтверждения смены номера: <a href="/edit/verify_phone">ввести код</a>.
|
Введите код для подтверждения смены номера: <a href="/edit/verify_phone">ввести код</a>.
|
||||||
|
|
|
@ -1,17 +1,17 @@
|
||||||
{extends "../@listView.xml"}
|
{extends "../@listView.xml"}
|
||||||
{var perPage = 6} {* Why 6? Check User::_abstractRelationGenerator *}
|
{var $perPage = 6} {* Why 6? Check User::_abstractRelationGenerator *}
|
||||||
|
|
||||||
{var act = $_GET["act"] ?? "friends"}
|
{var $act = $_GET["act"] ?? "friends"}
|
||||||
|
|
||||||
{if $act == "incoming"}
|
{if $act == "incoming"}
|
||||||
{var iterator = iterator_to_array($user->getFollowers($page))}
|
{var $iterator = iterator_to_array($user->getFollowers($page))}
|
||||||
{var count = $user->getFollowersCount()}
|
{var $count = $user->getFollowersCount()}
|
||||||
{elseif $act == "outcoming"}
|
{elseif $act == "outcoming"}
|
||||||
{var iterator = iterator_to_array($user->getSubscriptions($page))}
|
{var $iterator = iterator_to_array($user->getSubscriptions($page))}
|
||||||
{var count = $user->getSubscriptionsCount()}
|
{var $count = $user->getSubscriptionsCount()}
|
||||||
{else}
|
{else}
|
||||||
{var iterator = iterator_to_array($user->getFriends($page))}
|
{var $iterator = iterator_to_array($user->getFriends($page))}
|
||||||
{var count = $user->getFriendsCount()}
|
{var $count = $user->getFriendsCount()}
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{block title}
|
{block title}
|
||||||
|
@ -113,7 +113,7 @@
|
||||||
|
|
||||||
{block actions}
|
{block actions}
|
||||||
{if $x->getId() !== $thisUser->getId()}
|
{if $x->getId() !== $thisUser->getId()}
|
||||||
{var subStatus = $x->getSubscriptionStatus($thisUser)}
|
{var $subStatus = $x->getSubscriptionStatus($thisUser)}
|
||||||
{if $subStatus === 0}
|
{if $subStatus === 0}
|
||||||
<form action="/setSub/user" method="post" class="profile_link_form">
|
<form action="/setSub/user" method="post" class="profile_link_form">
|
||||||
<input type="hidden" name="act" value="add" />
|
<input type="hidden" name="act" value="add" />
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{extends "../@listView.xml"}
|
{extends "../@listView.xml"}
|
||||||
{var iterator = $user->getClubs($page, $admin)}
|
{var $iterator = $user->getClubs($page, $admin)}
|
||||||
{var count = $user->getClubCount($admin)}
|
{var $count = $user->getClubCount($admin)}
|
||||||
|
|
||||||
{block title}
|
{block title}
|
||||||
{_groups}
|
{_groups}
|
||||||
|
@ -73,7 +73,7 @@
|
||||||
{/block}
|
{/block}
|
||||||
|
|
||||||
{block actions}
|
{block actions}
|
||||||
{var clubPinned = $thisUser->isClubPinned($x)}
|
{var $clubPinned = $thisUser->isClubPinned($x)}
|
||||||
{if $x->canBeModifiedBy($thisUser ?? NULL)}
|
{if $x->canBeModifiedBy($thisUser ?? NULL)}
|
||||||
<div class="navigation" style="width: 140px;">
|
<div class="navigation" style="width: 140px;">
|
||||||
<a class="link" href="{$x->getURL()}">
|
<a class="link" href="{$x->getURL()}">
|
||||||
|
|
|
@ -7,11 +7,11 @@
|
||||||
|
|
||||||
{block content}
|
{block content}
|
||||||
|
|
||||||
{var isMain = $mode === 'main'}
|
{var $isMain = $mode === 'main'}
|
||||||
{var isPrivacy = $mode === 'privacy'}
|
{var $isPrivacy = $mode === 'privacy'}
|
||||||
{var isFinance = $mode === 'finance'}
|
{var $isFinance = $mode === 'finance'}
|
||||||
{var isFinanceTU = $mode === 'finance.top-up'}
|
{var $isFinanceTU = $mode === 'finance.top-up'}
|
||||||
{var isInterface = $mode === 'interface'}
|
{var $isInterface = $mode === 'interface'}
|
||||||
|
|
||||||
<div class="tabs">
|
<div class="tabs">
|
||||||
<div n:attr="id => ($isMain ? 'activetabs' : 'ki')" class="tab">
|
<div n:attr="id => ($isMain ? 'activetabs' : 'ki')" class="tab">
|
||||||
|
|
|
@ -107,7 +107,7 @@
|
||||||
<a n:if="OPENVK_ROOT_CONF['openvk']['preferences']['commerce'] && $user->getGiftCount() == 0" href="/gifts?act=pick&user={$user->getId()}" class="profile_link">{_send_gift}</a>
|
<a n:if="OPENVK_ROOT_CONF['openvk']['preferences']['commerce'] && $user->getGiftCount() == 0" href="/gifts?act=pick&user={$user->getId()}" class="profile_link">{_send_gift}</a>
|
||||||
<a n:if="$user->getPrivacyPermission('messages.write', $thisUser)" href="/im?sel={$user->getId()}" class="profile_link">{_"send_message"}</a>
|
<a n:if="$user->getPrivacyPermission('messages.write', $thisUser)" href="/im?sel={$user->getId()}" class="profile_link">{_"send_message"}</a>
|
||||||
|
|
||||||
{var subStatus = $user->getSubscriptionStatus($thisUser)}
|
{var $subStatus = $user->getSubscriptionStatus($thisUser)}
|
||||||
{if $subStatus === 0}
|
{if $subStatus === 0}
|
||||||
<form action="/setSub/user" method="post" class="profile_link_form">
|
<form action="/setSub/user" method="post" class="profile_link_form">
|
||||||
<input type="hidden" name="act" value="add" />
|
<input type="hidden" name="act" value="add" />
|
||||||
|
@ -141,7 +141,7 @@
|
||||||
<a n:if="$user->getFollowersCount() > 0" href="/friends{$user->getId()}?act=incoming" class="profile_link">{tr("followers", $user->getFollowersCount())}</a>
|
<a n:if="$user->getFollowersCount() > 0" href="/friends{$user->getId()}?act=incoming" class="profile_link">{tr("followers", $user->getFollowersCount())}</a>
|
||||||
</div>
|
</div>
|
||||||
<div n:if="isset($thisUser) && !$thisUser->prefersNotToSeeRating()" class="profile-hints">
|
<div n:if="isset($thisUser) && !$thisUser->prefersNotToSeeRating()" class="profile-hints">
|
||||||
{var completeness = $user->getProfileCompletenessReport()}
|
{var $completeness = $user->getProfileCompletenessReport()}
|
||||||
|
|
||||||
<div n:class="completeness-gauge, $completeness->total >= 100 ? completeness-gauge-gold">
|
<div n:class="completeness-gauge, $completeness->total >= 100 ? completeness-gauge-gold">
|
||||||
<div style="width: {$completeness->percent}%"></div>
|
<div style="width: {$completeness->percent}%"></div>
|
||||||
|
@ -174,7 +174,7 @@
|
||||||
</div>
|
</div>
|
||||||
<br />
|
<br />
|
||||||
<div n:if="$user->getFriendsCount() > 0 && $user->getPrivacyPermission('friends.read', $thisUser ?? NULL)">
|
<div n:if="$user->getFriendsCount() > 0 && $user->getPrivacyPermission('friends.read', $thisUser ?? NULL)">
|
||||||
{var friendCount = $user->getFriendsCount()}
|
{var $friendCount = $user->getFriendsCount()}
|
||||||
|
|
||||||
<div class="content_title_expanded" onclick="hidePanel(this, {$friendCount});">
|
<div class="content_title_expanded" onclick="hidePanel(this, {$friendCount});">
|
||||||
{_"friends"}
|
{_"friends"}
|
||||||
|
@ -215,7 +215,7 @@
|
||||||
<div style="padding: 5px;">
|
<div style="padding: 5px;">
|
||||||
<div class="ovk-album" style="display: inline-block;" n:foreach="$albums as $album">
|
<div class="ovk-album" style="display: inline-block;" n:foreach="$albums as $album">
|
||||||
<div style="text-align: center;float: left;height: 54pt;width: 100px;">
|
<div style="text-align: center;float: left;height: 54pt;width: 100px;">
|
||||||
{var cover = $album->getCoverPhoto()}
|
{var $cover = $album->getCoverPhoto()}
|
||||||
|
|
||||||
<img
|
<img
|
||||||
src="{is_null($cover)?'/assets/packages/static/openvk/img/camera_200.png':$cover->getURLBySizeId('small')}"
|
src="{is_null($cover)?'/assets/packages/static/openvk/img/camera_200.png':$cover->getURLBySizeId('small')}"
|
||||||
|
@ -284,7 +284,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div n:if="$user->getClubCount() > 0 && $user->getPrivacyPermission('groups.read', $thisUser ?? NULL)">
|
<div n:if="$user->getClubCount() > 0 && $user->getPrivacyPermission('groups.read', $thisUser ?? NULL)">
|
||||||
{var clubsCount = $user->getClubCount()}
|
{var $clubsCount = $user->getClubCount()}
|
||||||
<div class="content_title_expanded" onclick="hidePanel(this, {$clubsCount})">
|
<div class="content_title_expanded" onclick="hidePanel(this, {$clubsCount})">
|
||||||
{_"groups"}
|
{_"groups"}
|
||||||
</div>
|
</div>
|
||||||
|
@ -303,7 +303,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div n:if="$user->getMeetingCount() > 0 && $user->getPrivacyPermission('groups.read', $thisUser ?? NULL)">
|
<div n:if="$user->getMeetingCount() > 0 && $user->getPrivacyPermission('groups.read', $thisUser ?? NULL)">
|
||||||
{var meetingCount = $user->getMeetingCount()}
|
{var $meetingCount = $user->getMeetingCount()}
|
||||||
<div class="content_title_expanded" onclick="hidePanel(this, {$meetingCount})">
|
<div class="content_title_expanded" onclick="hidePanel(this, {$meetingCount})">
|
||||||
{_meetings}
|
{_meetings}
|
||||||
</div>
|
</div>
|
||||||
|
@ -327,7 +327,7 @@
|
||||||
<div class="right_big_block">
|
<div class="right_big_block">
|
||||||
<div class="page_info">
|
<div class="page_info">
|
||||||
<div n:if="!is_null($alert = $user->getAlert())" class="user-alert">{strpos($alert, "@") === 0 ? tr(substr($alert, 1)) : $alert}</div>
|
<div n:if="!is_null($alert = $user->getAlert())" class="user-alert">{strpos($alert, "@") === 0 ? tr(substr($alert, 1)) : $alert}</div>
|
||||||
{var thatIsThisUser = isset($thisUser) && $user->getId() == $thisUser->getId()}
|
{var $thatIsThisUser = isset($thisUser) && $user->getId() == $thisUser->getId()}
|
||||||
<div n:if="$thatIsThisUser" class="page_status_popup" id="status_editor" style="display: none;">
|
<div n:if="$thatIsThisUser" class="page_status_popup" id="status_editor" style="display: none;">
|
||||||
<form name="status_popup_form" onsubmit="changeStatus(); return false;">
|
<form name="status_popup_form" onsubmit="changeStatus(); return false;">
|
||||||
<div style="margin-bottom: 10px;">
|
<div style="margin-bottom: 10px;">
|
||||||
|
@ -495,7 +495,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="content_list long">
|
<div class="content_list long">
|
||||||
<div class="cl_element" style="width: 25%;" n:foreach="$user->getGifts(1, 4) as $giftDescriptor">
|
<div class="cl_element" style="width: 25%;" n:foreach="$user->getGifts(1, 4) as $giftDescriptor">
|
||||||
{var hideInfo = !is_null($thisUser) ? ($giftDescriptor->anon ? $thisUser->getId() !== $user->getId() : false) : false}
|
{var $hideInfo = !is_null($thisUser) ? ($giftDescriptor->anon ? $thisUser->getId() !== $user->getId() : false) : false}
|
||||||
<div class="cl_avatar">
|
<div class="cl_avatar">
|
||||||
<a href="{$hideInfo ? 'javascript:false' : $giftDescriptor->sender->getURL()}">
|
<a href="{$hideInfo ? 'javascript:false' : $giftDescriptor->sender->getURL()}">
|
||||||
<img style="width: 70px; max-height: 70px;"
|
<img style="width: 70px; max-height: 70px;"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{extends "../@listView.xml"}
|
{extends "../@listView.xml"}
|
||||||
{var iterator = $videos}
|
{var $iterator = $videos}
|
||||||
{var count = $paginatorConf->count}
|
{var $count = $paginatorConf->count}
|
||||||
{var page = $paginatorConf->page}
|
{var $page = $paginatorConf->page}
|
||||||
|
|
||||||
{block title}{_"videos"} {$user->getCanonicalName()}{/block}
|
{block title}{_"videos"} {$user->getCanonicalName()}{/block}
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
{if $video->getType() === 0}
|
{if $video->getType() === 0}
|
||||||
<video width="610" src="{$video->getURL()}" controls></video>
|
<video width="610" src="{$video->getURL()}" controls></video>
|
||||||
{else}
|
{else}
|
||||||
{var driver = $video->getVideoDriver()}
|
{var $driver = $video->getVideoDriver()}
|
||||||
{if !$driver}
|
{if !$driver}
|
||||||
Эта видеозапись не поддерживается в вашей версии OpenVK.
|
Эта видеозапись не поддерживается в вашей версии OpenVK.
|
||||||
{else}
|
{else}
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
<div style="float: left; min-height: 100px; width: 32%;">
|
<div style="float: left; min-height: 100px; width: 32%;">
|
||||||
<h4>{_actions}</h4>
|
<h4>{_actions}</h4>
|
||||||
{if isset($thisUser)}
|
{if isset($thisUser)}
|
||||||
{var canDelete = $post->canBeDeletedBy($thisUser)}
|
{var $canDelete = $post->canBeDeletedBy($thisUser)}
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
<a n:if="$canDelete ?? false" class="profile_link" style="display:block;width:96%;" href="/wall{$post->getPrettyId()}/delete">{_delete}</a>
|
<a n:if="$canDelete ?? false" class="profile_link" style="display:block;width:96%;" href="/wall{$post->getPrettyId()}/delete">{_delete}</a>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{if $attachment instanceof \openvk\Web\Models\Entities\Photo}
|
{if $attachment instanceof \openvk\Web\Models\Entities\Photo}
|
||||||
{if !$attachment->isDeleted()}
|
{if !$attachment->isDeleted()}
|
||||||
{var link = "/photo" . ($attachment->isAnonymous() ? ("s/" . base_convert((string) $attachment->getId(), 10, 32)) : $attachment->getPrettyId())}
|
{var $link = "/photo" . ($attachment->isAnonymous() ? ("s/" . base_convert((string) $attachment->getId(), 10, 32)) : $attachment->getPrettyId())}
|
||||||
<a href="{$link}">
|
<a href="{$link}">
|
||||||
<img class="media" src="{$attachment->getURLBySizeId('normal')}" alt="{$attachment->getDescription()}" />
|
<img class="media" src="{$attachment->getURLBySizeId('normal')}" alt="{$attachment->getDescription()}" />
|
||||||
</a>
|
</a>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{var author = $comment->getOwner()}
|
{var $author = $comment->getOwner()}
|
||||||
{var $Club = openvk\Web\Models\Entities\Club::class}
|
{var $Club = openvk\Web\Models\Entities\Club::class}
|
||||||
{var postId = $comment->getTarget() instanceof \openvk\Web\Models\Entities\Post ? $comment->getTarget()->getId() : NULL}
|
{var $postId = $comment->getTarget() instanceof \openvk\Web\Models\Entities\Post ? $comment->getTarget()->getId() : NULL}
|
||||||
|
|
||||||
<a name="cid={$comment->getId()}"></a>
|
<a name="cid={$comment->getId()}"></a>
|
||||||
<table border="0" style="font-size: 11px;" class="post comment" id="_comment{$comment->getId()}" data-comment-id="{$comment->getId()}" data-owner-id="{$author->getId()}" data-from-group="{$comment->getOwner() instanceof $Club}" n:attr="data-post-id => $postId">
|
<table border="0" style="font-size: 11px;" class="post comment" id="_comment{$comment->getId()}" data-comment-id="{$comment->getId()}" data-owner-id="{$author->getId()}" data-from-group="{$comment->getOwner() instanceof $Club}" n:attr="data-post-id => $postId">
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
<h4 n:if="$showTitle ?? true">{_comments} ({$count})</h4>
|
<h4 n:if="$showTitle ?? true">{_comments} ({$count})</h4>
|
||||||
|
|
||||||
<div n:ifset="$thisUser">
|
<div n:ifset="$thisUser">
|
||||||
{var commentsURL = "/al_comments/create/$model/" . $parent->getId()}
|
{var $commentsURL = "/al_comments/create/$model/" . $parent->getId()}
|
||||||
{var club = $parent instanceof \openvk\Web\Models\Entities\Post && $parent->getTargetWall() < 0 ? (new openvk\Web\Models\Repositories\Clubs)->get(abs($parent->getTargetWall())) : $club}
|
{var $club = $parent instanceof \openvk\Web\Models\Entities\Post && $parent->getTargetWall() < 0 ? (new openvk\Web\Models\Repositories\Clubs)->get(abs($parent->getTargetWall())) : $club}
|
||||||
{if !$readOnly}
|
{if !$readOnly}
|
||||||
{include "textArea.xml", route => $commentsURL, postOpts => false, graffiti => (bool) ovkGetQuirk("comments.allow-graffiti"), club => $club}
|
{include "textArea.xml", route => $commentsURL, postOpts => false, graffiti => (bool) ovkGetQuirk("comments.allow-graffiti"), club => $club}
|
||||||
{/if}
|
{/if}
|
||||||
|
@ -16,17 +16,6 @@
|
||||||
{include "paginator.xml", conf => (object) ["page" => $page, "count" => $count, "amount" => sizeof($comments), "perPage" => 10]}
|
{include "paginator.xml", conf => (object) ["page" => $page, "count" => $count, "amount" => sizeof($comments), "perPage" => 10]}
|
||||||
</div>
|
</div>
|
||||||
{else}
|
{else}
|
||||||
<!-- {if $model === "photos"}
|
|
||||||
<p>Будьте первым, кто оставит комментарий к этой фотографии</p>
|
|
||||||
{elseif $model === "posts"}
|
|
||||||
<p>Будьте первым, кто оставит комментарий к этой записи</p>
|
|
||||||
{elseif $model === "notes"}
|
|
||||||
<p>Будьте первым, кто оставит комментарий к этой заметке</p>
|
|
||||||
{elseif $model === "videos"}
|
|
||||||
<p>Будьте первым, кто оставит комментарий к этой видеозаписи</p>
|
|
||||||
{else}
|
|
||||||
<p>Будьте первым кто оставит комментарий к этой дичи!</p>
|
|
||||||
{/if} -->
|
|
||||||
{_comments_tip}
|
{_comments_tip}
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{var post = $notification->getModel(0)}
|
{var $post = $notification->getModel(0)}
|
||||||
{var user = $notification->getModel(1)}
|
{var $user = $notification->getModel(1)}
|
||||||
|
|
||||||
<a href="{$user->getURL()}"><b>{$user->getCanonicalName()}</b></a>
|
<a href="{$user->getURL()}"><b>{$user->getCanonicalName()}</b></a>
|
||||||
{$notification->getDateTime()} {_nt_liked_yours}
|
{$notification->getDateTime()} {_nt_liked_yours}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{var post = $notification->getModel(0)}
|
{var $post = $notification->getModel(0)}
|
||||||
{var user = $notification->getModel(1)}
|
{var $user = $notification->getModel(1)}
|
||||||
|
|
||||||
<a href="{$user->getURL()}"><b>{$user->getCanonicalName()}</b></a>
|
<a href="{$user->getURL()}"><b>{$user->getCanonicalName()}</b></a>
|
||||||
{$notification->getDateTime()} {_nt_shared_yours}
|
{$notification->getDateTime()} {_nt_shared_yours}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{var user = $notification->getModel(1)}
|
{var $user = $notification->getModel(1)}
|
||||||
|
|
||||||
<a href="{$user->getURL()}"><b>{$user->getCanonicalName()}</b></a>
|
<a href="{$user->getURL()}"><b>{$user->getCanonicalName()}</b></a>
|
||||||
{$notification->getDateTime()} {_nt_commented_yours} {include under}: "{$notification->getData()}".
|
{$notification->getDateTime()} {_nt_commented_yours} {include under}: "{$notification->getData()}".
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{extends "@default.xml"}
|
{extends "@default.xml"}
|
||||||
{var post = $notification->getModel(0)}
|
{var $post = $notification->getModel(0)}
|
||||||
|
|
||||||
{block under}
|
{block under}
|
||||||
{_nt_yours_feminitive_adjective} <a href="/note{$post->getPrettyId()}">{_nt_note_instrumental}</a>
|
{_nt_yours_feminitive_adjective} <a href="/note{$post->getPrettyId()}">{_nt_note_instrumental}</a>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{extends "@default.xml"}
|
{extends "@default.xml"}
|
||||||
{var post = $notification->getModel(0)}
|
{var $post = $notification->getModel(0)}
|
||||||
|
|
||||||
{block under}
|
{block under}
|
||||||
{_nt_yours_feminitive_adjective} <a href="/photo{$post->getPrettyId()}">{_nt_photo_instrumental}</a>
|
{_nt_yours_feminitive_adjective} <a href="/photo{$post->getPrettyId()}">{_nt_photo_instrumental}</a>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{extends "@default.xml"}
|
{extends "@default.xml"}
|
||||||
{var post = $notification->getModel(0)}
|
{var $post = $notification->getModel(0)}
|
||||||
|
|
||||||
{block under}
|
{block under}
|
||||||
{_nt_yours_adjective} <a href="/wall{$post->getPrettyId()}">{_nt_post_instrumental}</a> {_nt_from} {$post->getPublicationTime()}
|
{_nt_yours_adjective} <a href="/wall{$post->getPrettyId()}">{_nt_post_instrumental}</a> {_nt_from} {$post->getPublicationTime()}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{extends "@default.xml"}
|
{extends "@default.xml"}
|
||||||
{var post = $notification->getModel(0)}
|
{var $post = $notification->getModel(0)}
|
||||||
|
|
||||||
{block under}
|
{block under}
|
||||||
{_nt_yours_adjective} <a href="/video{$post->getPrettyId()}">{_video}</a>
|
{_nt_yours_adjective} <a href="/video{$post->getPrettyId()}">{_video}</a>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{extends "@default.xml"}
|
{extends "@default.xml"}
|
||||||
{var post = $notification->getModel(0)}
|
{var $post = $notification->getModel(0)}
|
||||||
|
|
||||||
{block under}
|
{block under}
|
||||||
{_nt_yours_adjective} <a href="/topic{$post->getPrettyId()}">{_nt_topic_instrumental}</a>
|
{_nt_yours_adjective} <a href="/topic{$post->getPrettyId()}">{_nt_topic_instrumental}</a>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{var post = $notification->getModel(0)}
|
{var $post = $notification->getModel(0)}
|
||||||
{var user = $notification->getModel(1)}
|
{var $user = $notification->getModel(1)}
|
||||||
|
|
||||||
<a href="{$user->getURL()}"><b>{$user->getCanonicalName()}</b></a>
|
<a href="{$user->getURL()}"><b>{$user->getCanonicalName()}</b></a>
|
||||||
{$notification->getDateTime()} {_nt_written_on_your_wall}
|
{$notification->getDateTime()} {_nt_written_on_your_wall}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{var club = $notification->getModel(0)}
|
{var $club = $notification->getModel(0)}
|
||||||
{var user = $notification->getModel(1)}
|
{var $user = $notification->getModel(1)}
|
||||||
|
|
||||||
<a href="{$user->getURL()}"><b>{$user->getCanonicalName()}</b></a>
|
<a href="{$user->getURL()}"><b>{$user->getCanonicalName()}</b></a>
|
||||||
{_nt_made_you_admin}
|
{_nt_made_you_admin}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{var gift = $notification->getModel(0)}
|
{var $gift = $notification->getModel(0)}
|
||||||
{var sender = $notification->getModel(1)}
|
{var $sender = $notification->getModel(1)}
|
||||||
|
|
||||||
<a href="{$sender->getURL()}"><b>{$sender->getCanonicalName()}</b></a> отправил вам {$notification->getDateTime()} подарок.
|
<a href="{$sender->getURL()}"><b>{$sender->getCanonicalName()}</b></a> отправил вам {$notification->getDateTime()} подарок.
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{var sender = $notification->getModel(1)}
|
{var $sender = $notification->getModel(1)}
|
||||||
{var value = (int) explode(" ", $notification->getData(), 2)[0]}
|
{var $value = (int) explode(" ", $notification->getData(), 2)[0]}
|
||||||
{var message = explode(" ", $notification->getData(), 2)[1]}
|
{var $message = explode(" ", $notification->getData(), 2)[1]}
|
||||||
|
|
||||||
<a href="{$sender->getURL()}"><b>{$sender->getCanonicalName()}</b></a> {_transferred_to_you} {tr("points_amount", $value)}.
|
<a href="{$sender->getURL()}"><b>{$sender->getCanonicalName()}</b></a> {_transferred_to_you} {tr("points_amount", $value)}.
|
||||||
{if !empty($message)}
|
{if !empty($message)}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{var sender = $notification->getModel(1)}
|
{var $sender = $notification->getModel(1)}
|
||||||
{var value = (int) explode(" ", $notification->getData(), 2)[0]}
|
{var $value = (int) explode(" ", $notification->getData(), 2)[0]}
|
||||||
{var message = explode(" ", $notification->getData(), 2)[1]}
|
{var $message = explode(" ", $notification->getData(), 2)[1]}
|
||||||
|
|
||||||
<a href="{$sender->getURL()}"><b>{$sender->getCanonicalName()}</b></a> {_increased_your_rating_by} {$value}%.
|
<a href="{$sender->getURL()}"><b>{$sender->getCanonicalName()}</b></a> {_increased_your_rating_by} {$value}%.
|
||||||
{if !empty($message)}
|
{if !empty($message)}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{var microblogEnabled = isset($thisUser) ? $thisUser->hasMicroblogEnabled() : false}
|
{var $microblogEnabled = isset($thisUser) ? $thisUser->hasMicroblogEnabled() : false}
|
||||||
|
|
||||||
{if $microblogEnabled}
|
{if $microblogEnabled}
|
||||||
{include "post/microblogpost.xml", post => $post, diff => $diff, commentSection => $commentSection}
|
{include "post/microblogpost.xml", post => $post, commentSection => $commentSection}
|
||||||
{else}
|
{else}
|
||||||
{include "post/oldpost.xml", post => $post, diff => $diff}
|
{include "post/oldpost.xml", post => $post}
|
||||||
{/if}
|
{/if}
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
{var author = $post->getOwner()}
|
{var $author = $post->getOwner()}
|
||||||
{var comments = $post->getLastComments(3)}
|
{var $comments = $post->getLastComments(3)}
|
||||||
{var commentsCount = $post->getCommentsCount()}
|
{var $commentsCount = $post->getCommentsCount()}
|
||||||
|
|
||||||
{var commentTextAreaId = $post === null ? rand(1,300) : $post->getId()}
|
{var $commentTextAreaId = $post === null ? rand(1,300) : $post->getId()}
|
||||||
|
|
||||||
<table border="0" style="font-size: 11px;" n:class="post, !$compact ? post-divider, $post->isExplicit() ? post-nsfw">
|
<table border="0" style="font-size: 11px;" n:class="post, !$compact ? post-divider, $post->isExplicit() ? post-nsfw">
|
||||||
<tbody>
|
<tbody>
|
||||||
|
@ -18,8 +18,8 @@
|
||||||
<a href="{$author->getURL()}"><b>{$author->getCanonicalName()}</b></a>
|
<a href="{$author->getURL()}"><b>{$author->getCanonicalName()}</b></a>
|
||||||
<img n:if="$author->isVerified()" class="name-checkmark" src="/assets/packages/static/openvk/img/checkmark.png">
|
<img n:if="$author->isVerified()" class="name-checkmark" src="/assets/packages/static/openvk/img/checkmark.png">
|
||||||
{if ($onWallOf ?? false) &&!$post->isPostedOnBehalfOfGroup() && $post->getOwnerPost() !== $post->getTargetWall()}
|
{if ($onWallOf ?? false) &&!$post->isPostedOnBehalfOfGroup() && $post->getOwnerPost() !== $post->getTargetWall()}
|
||||||
{var wallId = $post->getTargetWall()}
|
{var $wallId = $post->getTargetWall()}
|
||||||
{var wallURL = $wallId > -1 ? "/id$wallId" : "/club" . abs($wallId)}
|
{var $wallURL = $wallId > -1 ? "/id$wallId" : "/club" . abs($wallId)}
|
||||||
на
|
на
|
||||||
<a href="{$wallURL}">
|
<a href="{$wallURL}">
|
||||||
<b>
|
<b>
|
||||||
|
@ -68,7 +68,7 @@
|
||||||
! Этот пост был размещён за взятку.
|
! Этот пост был размещён за взятку.
|
||||||
</div>
|
</div>
|
||||||
<div n:if="$post->isSigned()" class="post-signature">
|
<div n:if="$post->isSigned()" class="post-signature">
|
||||||
{var actualAuthor = $post->getOwner(false)}
|
{var $actualAuthor = $post->getOwner(false)}
|
||||||
<span>
|
<span>
|
||||||
{_author}:
|
{_author}:
|
||||||
<a href="{$actualAuthor->getURL()}">
|
<a href="{$actualAuthor->getURL()}">
|
||||||
|
@ -91,7 +91,7 @@
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
{if !($forceNoLike ?? false)}
|
{if !($forceNoLike ?? false)}
|
||||||
{var liked = $post->hasLikeFrom($thisUser)}
|
{var $liked = $post->hasLikeFrom($thisUser)}
|
||||||
<a href="/wall{$post->getPrettyId()}/like?hash={rawurlencode($csrfToken)}" class="post-like-button" data-liked="{(int) $liked}" data-likes="{$post->getLikesCount()}">
|
<a href="/wall{$post->getPrettyId()}/like?hash={rawurlencode($csrfToken)}" class="post-like-button" data-liked="{(int) $liked}" data-likes="{$post->getLikesCount()}">
|
||||||
<div class="heart" id="{if $liked}liked{/if}"></div>
|
<div class="heart" id="{if $liked}liked{/if}"></div>
|
||||||
<span class="likeCnt">{if $post->getLikesCount() > 0}{$post->getLikesCount()}{/if}</span>
|
<span class="likeCnt">{if $post->getLikesCount() > 0}{$post->getLikesCount()}{/if}</span>
|
||||||
|
@ -106,8 +106,8 @@
|
||||||
{include "../comment.xml", comment => $comment, $compact => true}
|
{include "../comment.xml", comment => $comment, $compact => true}
|
||||||
{/foreach}
|
{/foreach}
|
||||||
<div n:ifset="$thisUser" id="commentTextArea{$commentTextAreaId}" n:attr="style => ($commentsCount == 0 ? 'display: none;')" class="commentsTextFieldWrap">
|
<div n:ifset="$thisUser" id="commentTextArea{$commentTextAreaId}" n:attr="style => ($commentsCount == 0 ? 'display: none;')" class="commentsTextFieldWrap">
|
||||||
{var commentsURL = "/al_comments/create/posts/" . $post->getId()}
|
{var $commentsURL = "/al_comments/create/posts/" . $post->getId()}
|
||||||
{var club = is_null($club) ? ($post->getTargetWall() < 0 ? (new openvk\Web\Models\Repositories\Clubs)->get(abs($post->getTargetWall())) : NULL) : $club}
|
{var $club = is_null($club) ? ($post->getTargetWall() < 0 ? (new openvk\Web\Models\Repositories\Clubs)->get(abs($post->getTargetWall())) : NULL) : $club}
|
||||||
{include "../textArea.xml", route => $commentsURL, postOpts => false, graffiti => (bool) ovkGetQuirk("comments.allow-graffiti"), post => $post, club => $club}
|
{include "../textArea.xml", route => $commentsURL, postOpts => false, graffiti => (bool) ovkGetQuirk("comments.allow-graffiti"), post => $post, club => $club}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{var author = $post->getOwner()}
|
{var $author = $post->getOwner()}
|
||||||
|
|
||||||
<table border="0" style="font-size: 11px;" n:class="post, $post->isExplicit() ? post-nsfw">
|
<table border="0" style="font-size: 11px;" n:class="post, $post->isExplicit() ? post-nsfw">
|
||||||
<tbody>
|
<tbody>
|
||||||
|
@ -15,8 +15,8 @@
|
||||||
<img n:if="$author->isVerified()" class="name-checkmark" src="/assets/packages/static/openvk/img/checkmark.png">
|
<img n:if="$author->isVerified()" class="name-checkmark" src="/assets/packages/static/openvk/img/checkmark.png">
|
||||||
{$post->isPostedOnBehalfOfGroup() ? tr("post_writes_g") : ($author->isFemale() ? tr("post_writes_f") : tr("post_writes_m"))}
|
{$post->isPostedOnBehalfOfGroup() ? tr("post_writes_g") : ($author->isFemale() ? tr("post_writes_f") : tr("post_writes_m"))}
|
||||||
{if ($onWallOf ?? false) &&!$post->isPostedOnBehalfOfGroup() && $post->getOwnerPost() !== $post->getTargetWall()}
|
{if ($onWallOf ?? false) &&!$post->isPostedOnBehalfOfGroup() && $post->getOwnerPost() !== $post->getTargetWall()}
|
||||||
{var wallId = $post->getTargetWall()}
|
{var $wallId = $post->getTargetWall()}
|
||||||
{var wallURL = $wallId > -1 ? "/id$wallId" : "/club" . abs($wallId)}
|
{var $wallURL = $wallId > -1 ? "/id$wallId" : "/club" . abs($wallId)}
|
||||||
на
|
на
|
||||||
<a href="{$wallURL}">
|
<a href="{$wallURL}">
|
||||||
<b>
|
<b>
|
||||||
|
@ -50,7 +50,7 @@
|
||||||
! Этот пост был размещён за взятку.
|
! Этот пост был размещён за взятку.
|
||||||
</div>
|
</div>
|
||||||
<div n:if="$post->isSigned()" class="post-signature">
|
<div n:if="$post->isSigned()" class="post-signature">
|
||||||
{var actualAuthor = $post->getOwner(false)}
|
{var $actualAuthor = $post->getOwner(false)}
|
||||||
<span>
|
<span>
|
||||||
{_author}:
|
{_author}:
|
||||||
<a href="{$actualAuthor->getURL()}">
|
<a href="{$actualAuthor->getURL()}">
|
||||||
|
@ -92,7 +92,7 @@
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<div n:if="!($forceNoLike ?? false)" class="like_wrap">
|
<div n:if="!($forceNoLike ?? false)" class="like_wrap">
|
||||||
{var liked = $post->hasLikeFrom($thisUser)}
|
{var $liked = $post->hasLikeFrom($thisUser)}
|
||||||
<a href="/wall{$post->getPrettyId()}/like?hash={rawurlencode($csrfToken)}" class="post-like-button" data-liked="{(int) $liked}" data-likes="{$post->getLikesCount()}">
|
<a href="/wall{$post->getPrettyId()}/like?hash={rawurlencode($csrfToken)}" class="post-like-button" data-liked="{(int) $liked}" data-likes="{$post->getLikesCount()}">
|
||||||
<div class="heart" id="{if $liked}liked{/if}"></div>
|
<div class="heart" id="{if $liked}liked{/if}"></div>
|
||||||
<span class="likeCnt">{if $post->getLikesCount() > 0}{$post->getLikesCount()}{/if}</span>
|
<span class="likeCnt">{if $post->getLikesCount() > 0}{$post->getLikesCount()}{/if}</span>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{php if(!isset($GLOBALS["textAreaCtr"])) $GLOBALS["textAreaCtr"] = 10;}
|
{php if(!isset($GLOBALS["textAreaCtr"])) $GLOBALS["textAreaCtr"] = 10;}
|
||||||
{var textAreaId = ($post ?? NULL) === null ? (++$GLOBALS["textAreaCtr"]) : $post->getId()}
|
{var $textAreaId = ($post ?? NULL) === null ? (++$GLOBALS["textAreaCtr"]) : $post->getId()}
|
||||||
|
|
||||||
<div id="write" style="padding: 5px 0;" onfocusin="expand_wall_textarea({$textAreaId});">
|
<div id="write" style="padding: 5px 0;" onfocusin="expand_wall_textarea({$textAreaId});">
|
||||||
<form action="{$route}" method="post" enctype="multipart/form-data" style="margin:0;">
|
<form action="{$route}" method="post" enctype="multipart/form-data" style="margin:0;">
|
||||||
|
@ -12,7 +12,7 @@
|
||||||
{_attachment}: <span>(unknown)</span>
|
{_attachment}: <span>(unknown)</span>
|
||||||
</div>
|
</div>
|
||||||
<div n:if="$postOpts ?? true" class="post-opts">
|
<div n:if="$postOpts ?? true" class="post-opts">
|
||||||
{var anonEnabled = OPENVK_ROOT_CONF['openvk']['preferences']['wall']['anonymousPosting']['enable']}
|
{var $anonEnabled = OPENVK_ROOT_CONF['openvk']['preferences']['wall']['anonymousPosting']['enable']}
|
||||||
|
|
||||||
{if !is_null($thisUser) && !is_null($club ?? NULL) && $owner < 0}
|
{if !is_null($thisUser) && !is_null($club ?? NULL) && $owner < 0}
|
||||||
{if $club->canBeModifiedBy($thisUser)}
|
{if $club->canBeModifiedBy($thisUser)}
|
||||||
|
|
Loading…
Reference in a new issue