mirror of
https://github.com/openvk/openvk
synced 2024-11-11 01:19:53 +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 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}
|
||||
<div class="content" n:foreach="$data as $dat">
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
{block wrap}
|
||||
<div class="ovk-lw-container">
|
||||
<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}
|
||||
<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>
|
||||
<html>
|
||||
<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.'}
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
@ -169,9 +169,9 @@
|
|||
</a>
|
||||
<a href="/settings" class="link">{_my_settings}</a>
|
||||
|
||||
{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 menuLinksAvaiable = sizeof(OPENVK_ROOT_CONF['openvk']['preferences']['menu']['links']) > 0 && $thisUser->getLeftMenuItemStatus('links')}
|
||||
{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 $menuLinksAvaiable = sizeof(OPENVK_ROOT_CONF['openvk']['preferences']['menu']['links']) > 0 && $thisUser->getLeftMenuItemStatus('links')}
|
||||
<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="/support/tickets" class="link" n:if="$canAccessHelpdesk">Helpdesk
|
||||
|
@ -259,7 +259,7 @@
|
|||
</div>
|
||||
|
||||
<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">
|
||||
<a href="/about" class="link">{_footer_about_instance}</a>
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
{include specpage, x => $dat}
|
||||
{else}
|
||||
<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}
|
||||
<div class="content" n:foreach="$data as $dat">
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<head>
|
||||
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
|
||||
<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}
|
||||
</style>
|
||||
<title>{include title} - Админ-панель {=OPENVK_ROOT_CONF['openvk']['appearance']['name']}</title>
|
||||
|
@ -131,7 +131,7 @@
|
|||
</div>
|
||||
<section class="aui-page-panel-content">
|
||||
{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;">
|
||||
<p class="title">
|
||||
<strong>{$flashMessage->title}</strong>
|
||||
|
|
|
@ -11,9 +11,9 @@
|
|||
|
||||
{block content}
|
||||
|
||||
{var isMain = $mode === 'main'}
|
||||
{var isBan = $mode === 'ban'}
|
||||
{var isFollowers = $mode === 'followers'}
|
||||
{var $isMain = $mode === 'main'}
|
||||
{var $isBan = $mode === 'ban'}
|
||||
{var $isFollowers = $mode === 'followers'}
|
||||
|
||||
{if $isMain}
|
||||
|
||||
|
@ -134,7 +134,7 @@
|
|||
|
||||
<!-- This followers block -->
|
||||
|
||||
{var followers = iterator_to_array($followers)}
|
||||
{var $followers = iterator_to_array($followers)}
|
||||
|
||||
<div class="aui-tabs horizontal-tabs">
|
||||
<nav class="aui-navgroup aui-navgroup-horizontal">
|
||||
|
@ -177,7 +177,7 @@
|
|||
</tbody>
|
||||
</table>
|
||||
<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}">
|
||||
⭁ туда
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{extends "@layout.xml"}
|
||||
{var search = true}
|
||||
{var $search = true}
|
||||
|
||||
{block title}
|
||||
Группы
|
||||
|
@ -12,8 +12,8 @@
|
|||
{block searchTitle}Поиск бутылок{/block}
|
||||
|
||||
{block content}
|
||||
{var clubs = iterator_to_array($clubs)}
|
||||
{var amount = sizeof($clubs)}
|
||||
{var $clubs = iterator_to_array($clubs)}
|
||||
{var $amount = sizeof($clubs)}
|
||||
|
||||
<table class="aui aui-table-list">
|
||||
<thead>
|
||||
|
@ -39,7 +39,7 @@
|
|||
<a href="{$club->getURL()}">{$club->getCanonicalName()}</a>
|
||||
</td>
|
||||
<td>
|
||||
{var user = $club->getOwner()}
|
||||
{var $user = $club->getOwner()}
|
||||
|
||||
<span class="aui-avatar aui-avatar-xsmall">
|
||||
<span class="aui-avatar-inner">
|
||||
|
@ -61,7 +61,7 @@
|
|||
</table>
|
||||
<br/>
|
||||
<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}">
|
||||
⭁ туда
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
{/if}
|
||||
|
||||
<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>
|
||||
|
|
|
@ -71,7 +71,7 @@
|
|||
{/if}
|
||||
|
||||
<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>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{extends "@layout.xml"}
|
||||
{var search = true}
|
||||
{var $search = true}
|
||||
|
||||
{block title}
|
||||
Пользователи
|
||||
|
@ -12,8 +12,8 @@
|
|||
{block searchTitle}Поиск пиздюков{/block}
|
||||
|
||||
{block content}
|
||||
{var users = iterator_to_array($users)}
|
||||
{var amount = sizeof($users)}
|
||||
{var $users = iterator_to_array($users)}
|
||||
{var $amount = sizeof($users)}
|
||||
|
||||
<table class="aui aui-table-list">
|
||||
<thead>
|
||||
|
@ -60,7 +60,7 @@
|
|||
</table>
|
||||
<br/>
|
||||
<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}">
|
||||
⭁ туда
|
||||
|
|
|
@ -50,7 +50,7 @@
|
|||
<br/>
|
||||
|
||||
<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>
|
||||
|
|
|
@ -47,7 +47,7 @@
|
|||
<span>{_"gender"}: </span>
|
||||
</td>
|
||||
<td>
|
||||
{var femalePreferred = OPENVK_ROOT_CONF["openvk"]["preferences"]["femaleGenderPriority"]}
|
||||
{var $femalePreferred = OPENVK_ROOT_CONF["openvk"]["preferences"]["femaleGenderPriority"]}
|
||||
<select name="sex" required>
|
||||
<option n:attr="selected => !$femalePreferred" value="male">{_"male"}</option>
|
||||
<option n:attr="selected => $femalePreferred" value="female">{_"female"}</option>
|
||||
|
|
|
@ -92,7 +92,7 @@
|
|||
<span class="nobold">{_group_administrators_list}: </span>
|
||||
</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="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>
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
{extends "../@listView.xml"}
|
||||
{var $Manager = openvk\Web\Models\Entities\Manager::class}
|
||||
{var iterator = $onlyShowManagers ? $managers : $followers}
|
||||
{var count = $paginatorConf->count}
|
||||
{var page = $paginatorConf->page}
|
||||
{var perPage = 6}
|
||||
{var $iterator = $onlyShowManagers ? $managers : $followers}
|
||||
{var $count = $paginatorConf->count}
|
||||
{var $page = $paginatorConf->page}
|
||||
{var $perPage = 6}
|
||||
|
||||
{block title}{_followers} {$club->getCanonicalName()}{/block}
|
||||
|
||||
|
@ -49,8 +49,8 @@
|
|||
{/block}
|
||||
|
||||
{block description}
|
||||
{var user = $x instanceof $Manager ? $x->getUser() : $x}
|
||||
{var manager = $x instanceof $Manager ? $x : $club->getManager($user, !$club->canBeModifiedBy($thisUser))}
|
||||
{var $user = $x instanceof $Manager ? $x->getUser() : $x}
|
||||
{var $manager = $x instanceof $Manager ? $x : $club->getManager($user, !$club->canBeModifiedBy($thisUser))}
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
|
@ -106,8 +106,8 @@
|
|||
{/block}
|
||||
|
||||
{block actions}
|
||||
{var user = $x instanceof $Manager ? $x->getUser() : $x}
|
||||
{var manager = $x instanceof $Manager ? $x : $club->getManager($user, !$club->canBeModifiedBy($thisUser))}
|
||||
{var $user = $x instanceof $Manager ? $x->getUser() : $x}
|
||||
{var $manager = $x instanceof $Manager ? $x : $club->getManager($user, !$club->canBeModifiedBy($thisUser))}
|
||||
{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()">
|
||||
{if $manager}
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
</table>
|
||||
</div>
|
||||
<div n:if="$club->getFollowersCount() > 0">
|
||||
{var followersCount = $club->getFollowersCount()}
|
||||
{var $followersCount = $club->getFollowersCount()}
|
||||
|
||||
<div class="content_title_expanded" onclick="hidePanel(this, {$followersCount});">
|
||||
{_participants}
|
||||
|
@ -93,8 +93,8 @@
|
|||
{presenter "openvk!Wall->wallEmbedded", -$club->getId()}
|
||||
</div>
|
||||
<div class="right_small_block">
|
||||
{var avatarPhoto = $club->getAvatarPhoto()}
|
||||
{var avatarLink = ((is_null($avatarPhoto) ? FALSE : $avatarPhoto->isAnonymous()) ? "/photo" . ("s/" . base_convert((string) $avatarPhoto->getId(), 10, 32)) : $club->getAvatarLink())}
|
||||
{var $avatarPhoto = $club->getAvatarPhoto()}
|
||||
{var $avatarLink = ((is_null($avatarPhoto) ? FALSE : $avatarPhoto->isAnonymous()) ? "/photo" . ("s/" . base_convert((string) $avatarPhoto->getId(), 10, 32)) : $club->getAvatarLink())}
|
||||
<a href="{$avatarLink|nocheck}">
|
||||
<img src="{$club->getAvatarUrl('normal')}" style="width: 100%; image-rendering: -webkit-optimize-contrast;" />
|
||||
</a>
|
||||
|
@ -134,7 +134,7 @@
|
|||
{_"creator"}
|
||||
</div>
|
||||
<div class="avatar-list-item" style="padding: 8px;">
|
||||
{var author = $club->getOwner()}
|
||||
{var $author = $club->getOwner()}
|
||||
<div class="avatar">
|
||||
<a href="{$author->getURL()}">
|
||||
<img class="ava" src="{$author->getAvatarUrl()}" />
|
||||
|
@ -151,7 +151,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<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});">
|
||||
{_"administrators"}
|
||||
|
@ -165,7 +165,7 @@
|
|||
</div>
|
||||
<div class="avatar-list">
|
||||
<div class="avatar-list-item" n:if="!$club->isOwnerHidden()">
|
||||
{var author = $club->getOwner()}
|
||||
{var $author = $club->getOwner()}
|
||||
<div class="avatar">
|
||||
<a href="{$author->getURL()}">
|
||||
<img class="ava" src="{$author->getAvatarUrl()}" />
|
||||
|
@ -177,7 +177,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="avatar-list-item" n:foreach="$club->getManagers(1, true) as $manager">
|
||||
{var user = $manager->getUser()}
|
||||
{var $user = $manager->getUser()}
|
||||
<div class="avatar">
|
||||
<a href="{$user->getURL()}">
|
||||
<img height="32" class="ava" src="{$user->getAvatarUrl()}" />
|
||||
|
@ -205,7 +205,7 @@
|
|||
<div style="padding: 5px;">
|
||||
<div class="ovk-album" style="display: inline-block;" n:foreach="$albums as $album">
|
||||
<div style="text-align: center;float: left;height: 54pt;width: 100px;">
|
||||
{var cover = $album->getCoverPhoto()}
|
||||
{var $cover = $album->getCoverPhoto()}
|
||||
|
||||
<img
|
||||
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="{$correspondent->getURL()}">{$correspondent->getCanonicalName()}</a>
|
||||
<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}
|
||||
<span><b>{_online}</b></span>
|
||||
{else}
|
||||
|
|
|
@ -21,8 +21,8 @@
|
|||
<div n:foreach="$corresps as $coresp"
|
||||
class="crp-entry"
|
||||
onmousedown="window.location.href = {$coresp->getURL()};" >
|
||||
{var recipient = $coresp->getCorrespondents()[1]}
|
||||
{var lastMsg = $coresp->getPreviewMessage()}
|
||||
{var $recipient = $coresp->getCorrespondents()[1]}
|
||||
{var $lastMsg = $coresp->getPreviewMessage()}
|
||||
|
||||
<div class="crp-entry--image">
|
||||
<img src="{$recipient->getAvatarURL('miniscule')}"
|
||||
|
@ -33,7 +33,7 @@
|
|||
<span>{$lastMsg->getSendTime()->format("%e %B %G" . tr("time_at_sp") . "%X")}</span>
|
||||
</div>
|
||||
<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()">
|
||||
<img src="{$_author->getAvatarURL('miniscule')}"
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
{block title}{_edit_note}{/block}
|
||||
|
||||
{block header}
|
||||
{var author = $note->getOwner()}
|
||||
{var $author = $note->getOwner()}
|
||||
<a href="{$author->getURL()}">{$author->getCanonicalName()}</a>
|
||||
»
|
||||
<a href="/notes{$author->getId()}">{_notes}</a>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{extends "../@listView.xml"}
|
||||
{var iterator = iterator_to_array($notes)}
|
||||
{var page = $paginatorConf->page}
|
||||
{var $iterator = iterator_to_array($notes)}
|
||||
{var $page = $paginatorConf->page}
|
||||
|
||||
{block title}{_notes}{/block}
|
||||
|
||||
|
@ -62,7 +62,7 @@
|
|||
|
||||
<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}
|
||||
|
||||
<div n:foreach="$data as $dat">
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
{block title}{$note->getName()}{/block}
|
||||
|
||||
{block header}
|
||||
{var author = $note->getOwner()}
|
||||
{var $author = $note->getOwner()}
|
||||
<a href="{$author->getURL()}">{$author->getCanonicalName()}</a>
|
||||
»
|
||||
<a href="/notes{$author->getId()}">{_notes}</a>
|
||||
|
@ -12,7 +12,7 @@
|
|||
{/block}
|
||||
|
||||
{block content}
|
||||
{var author = $note->getOwner()}
|
||||
{var $author = $note->getOwner()}
|
||||
<style>
|
||||
#userContent img {
|
||||
max-width: 245pt;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{extends "../@listView.xml"}
|
||||
{var sorting = false}
|
||||
{var $sorting = false}
|
||||
|
||||
{block title}
|
||||
{_feedback}
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
{block title}Альбом {$album->getName()}{/block}
|
||||
|
||||
{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()}">
|
||||
{$album->getOwner()->getCanonicalName()}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{extends "../@listView.xml"}
|
||||
{var iterator = iterator_to_array($albums)}
|
||||
{var page = $paginatorConf->page}
|
||||
{var $iterator = iterator_to_array($albums)}
|
||||
{var $page = $paginatorConf->page}
|
||||
|
||||
{block title}{_"albums"} {$owner->getCanonicalName()}{/block}
|
||||
|
||||
|
@ -26,7 +26,7 @@
|
|||
|
||||
<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>
|
||||
</span>
|
||||
</div>
|
||||
|
@ -44,8 +44,8 @@
|
|||
{/block}
|
||||
|
||||
{block preview}
|
||||
{var cover = $x->getCoverPhoto()}
|
||||
{var preview = is_null($cover) ? "/assets/packages/static/openvk/img/camera_200.png" : $cover->getURLBySizeId("normal")}
|
||||
{var $cover = $x->getCoverPhoto()}
|
||||
{var $preview = is_null($cover) ? "/assets/packages/static/openvk/img/camera_200.png" : $cover->getURLBySizeId("normal")}
|
||||
|
||||
<a href="/album{$x->getPrettyId()}">
|
||||
<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)}
|
||||
<a href="{$comment->getUser()->getURL()}">
|
||||
<span class="nobold">
|
||||
{var lastName = $comment->getUser()->getLastName()}
|
||||
{var $lastName = $comment->getUser()->getLastName()}
|
||||
{if empty(trim($lastName))}
|
||||
({$comment->getUser()->getFirstName()})
|
||||
{else}
|
||||
|
|
|
@ -6,9 +6,9 @@
|
|||
{/block}
|
||||
|
||||
{block content}
|
||||
{var isMain = $mode === 'faq'}
|
||||
{var isNew = $mode === 'new'}
|
||||
{var isList = $mode === 'list'}
|
||||
{var $isMain = $mode === 'faq'}
|
||||
{var $isNew = $mode === 'new'}
|
||||
{var $isList = $mode === 'list'}
|
||||
|
||||
{if $thisUser}
|
||||
<div class="tabs">
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
{/block}
|
||||
|
||||
{block description}
|
||||
{var author = $x->getUser()}
|
||||
{var $author = $x->getUser()}
|
||||
|
||||
{ovk_proc_strtr($x->getContext(), 50)}<br/>
|
||||
<span class="nobold">{_author}: </span> <a href="{$author->getURL()}">{$author->getCanonicalName()}</a>
|
||||
|
|
|
@ -109,7 +109,7 @@
|
|||
|
||||
{if $comment->getUType() === 1}
|
||||
<div class="post-menu">
|
||||
{var isLikedByUser = $comment->isLikedByUser()}
|
||||
{var $isLikedByUser = $comment->isLikedByUser()}
|
||||
<strong id="markText-{$comment->getId()}">
|
||||
{if !is_null($isLikedByUser)}
|
||||
{if $comment->isLikedByUser()}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{extends "../@listView.xml"}
|
||||
{var iterator = iterator_to_array($topics)}
|
||||
{var page = $paginatorConf->page}
|
||||
{var $iterator = iterator_to_array($topics)}
|
||||
{var $page = $paginatorConf->page}
|
||||
|
||||
{block title}{_discussions} {$club->getCanonicalName()}{/block}
|
||||
|
||||
|
@ -46,7 +46,7 @@
|
|||
<div style="float: left;">
|
||||
{tr("messages", $x->getCommentsCount())}
|
||||
</div>
|
||||
{var lastComment = $x->getLastComment()}
|
||||
{var $lastComment = $x->getLastComment()}
|
||||
<div n:if="$lastComment" class="avatar-list-item" style="float: right;">
|
||||
<div class="avatar">
|
||||
<a href="{$lastComment->getOwner()->getURL()}">
|
||||
|
|
|
@ -7,10 +7,10 @@
|
|||
|
||||
{block content}
|
||||
|
||||
{var isMain = $mode === 'main'}
|
||||
{var isContacts = $mode === 'contacts'}
|
||||
{var isInterests = $mode === 'interests'}
|
||||
{var isAvatar = $mode === 'avatar'}
|
||||
{var $isMain = $mode === 'main'}
|
||||
{var $isContacts = $mode === 'contacts'}
|
||||
{var $isInterests = $mode === 'interests'}
|
||||
{var $isAvatar = $mode === 'avatar'}
|
||||
<div n:if="$user->hasPendingNumberChange()" class="msg">
|
||||
<b>Подтверждение номера телефона</b><br/>
|
||||
Введите код для подтверждения смены номера: <a href="/edit/verify_phone">ввести код</a>.
|
||||
|
|
|
@ -1,17 +1,17 @@
|
|||
{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"}
|
||||
{var iterator = iterator_to_array($user->getFollowers($page))}
|
||||
{var count = $user->getFollowersCount()}
|
||||
{var $iterator = iterator_to_array($user->getFollowers($page))}
|
||||
{var $count = $user->getFollowersCount()}
|
||||
{elseif $act == "outcoming"}
|
||||
{var iterator = iterator_to_array($user->getSubscriptions($page))}
|
||||
{var count = $user->getSubscriptionsCount()}
|
||||
{var $iterator = iterator_to_array($user->getSubscriptions($page))}
|
||||
{var $count = $user->getSubscriptionsCount()}
|
||||
{else}
|
||||
{var iterator = iterator_to_array($user->getFriends($page))}
|
||||
{var count = $user->getFriendsCount()}
|
||||
{var $iterator = iterator_to_array($user->getFriends($page))}
|
||||
{var $count = $user->getFriendsCount()}
|
||||
{/if}
|
||||
|
||||
{block title}
|
||||
|
@ -113,7 +113,7 @@
|
|||
|
||||
{block actions}
|
||||
{if $x->getId() !== $thisUser->getId()}
|
||||
{var subStatus = $x->getSubscriptionStatus($thisUser)}
|
||||
{var $subStatus = $x->getSubscriptionStatus($thisUser)}
|
||||
{if $subStatus === 0}
|
||||
<form action="/setSub/user" method="post" class="profile_link_form">
|
||||
<input type="hidden" name="act" value="add" />
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{extends "../@listView.xml"}
|
||||
{var iterator = $user->getClubs($page, $admin)}
|
||||
{var count = $user->getClubCount($admin)}
|
||||
{var $iterator = $user->getClubs($page, $admin)}
|
||||
{var $count = $user->getClubCount($admin)}
|
||||
|
||||
{block title}
|
||||
{_groups}
|
||||
|
@ -73,7 +73,7 @@
|
|||
{/block}
|
||||
|
||||
{block actions}
|
||||
{var clubPinned = $thisUser->isClubPinned($x)}
|
||||
{var $clubPinned = $thisUser->isClubPinned($x)}
|
||||
{if $x->canBeModifiedBy($thisUser ?? NULL)}
|
||||
<div class="navigation" style="width: 140px;">
|
||||
<a class="link" href="{$x->getURL()}">
|
||||
|
|
|
@ -7,11 +7,11 @@
|
|||
|
||||
{block content}
|
||||
|
||||
{var isMain = $mode === 'main'}
|
||||
{var isPrivacy = $mode === 'privacy'}
|
||||
{var isFinance = $mode === 'finance'}
|
||||
{var isFinanceTU = $mode === 'finance.top-up'}
|
||||
{var isInterface = $mode === 'interface'}
|
||||
{var $isMain = $mode === 'main'}
|
||||
{var $isPrivacy = $mode === 'privacy'}
|
||||
{var $isFinance = $mode === 'finance'}
|
||||
{var $isFinanceTU = $mode === 'finance.top-up'}
|
||||
{var $isInterface = $mode === 'interface'}
|
||||
|
||||
<div class="tabs">
|
||||
<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="$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}
|
||||
<form action="/setSub/user" method="post" class="profile_link_form">
|
||||
<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>
|
||||
</div>
|
||||
<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 style="width: {$completeness->percent}%"></div>
|
||||
|
@ -174,7 +174,7 @@
|
|||
</div>
|
||||
<br />
|
||||
<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});">
|
||||
{_"friends"}
|
||||
|
@ -215,7 +215,7 @@
|
|||
<div style="padding: 5px;">
|
||||
<div class="ovk-album" style="display: inline-block;" n:foreach="$albums as $album">
|
||||
<div style="text-align: center;float: left;height: 54pt;width: 100px;">
|
||||
{var cover = $album->getCoverPhoto()}
|
||||
{var $cover = $album->getCoverPhoto()}
|
||||
|
||||
<img
|
||||
src="{is_null($cover)?'/assets/packages/static/openvk/img/camera_200.png':$cover->getURLBySizeId('small')}"
|
||||
|
@ -284,7 +284,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<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})">
|
||||
{_"groups"}
|
||||
</div>
|
||||
|
@ -303,7 +303,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<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})">
|
||||
{_meetings}
|
||||
</div>
|
||||
|
@ -327,7 +327,7 @@
|
|||
<div class="right_big_block">
|
||||
<div class="page_info">
|
||||
<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;">
|
||||
<form name="status_popup_form" onsubmit="changeStatus(); return false;">
|
||||
<div style="margin-bottom: 10px;">
|
||||
|
@ -495,7 +495,7 @@
|
|||
</div>
|
||||
<div class="content_list long">
|
||||
<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">
|
||||
<a href="{$hideInfo ? 'javascript:false' : $giftDescriptor->sender->getURL()}">
|
||||
<img style="width: 70px; max-height: 70px;"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{extends "../@listView.xml"}
|
||||
{var iterator = $videos}
|
||||
{var count = $paginatorConf->count}
|
||||
{var page = $paginatorConf->page}
|
||||
{var $iterator = $videos}
|
||||
{var $count = $paginatorConf->count}
|
||||
{var $page = $paginatorConf->page}
|
||||
|
||||
{block title}{_"videos"} {$user->getCanonicalName()}{/block}
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
{if $video->getType() === 0}
|
||||
<video width="610" src="{$video->getURL()}" controls></video>
|
||||
{else}
|
||||
{var driver = $video->getVideoDriver()}
|
||||
{var $driver = $video->getVideoDriver()}
|
||||
{if !$driver}
|
||||
Эта видеозапись не поддерживается в вашей версии OpenVK.
|
||||
{else}
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
<div style="float: left; min-height: 100px; width: 32%;">
|
||||
<h4>{_actions}</h4>
|
||||
{if isset($thisUser)}
|
||||
{var canDelete = $post->canBeDeletedBy($thisUser)}
|
||||
{var $canDelete = $post->canBeDeletedBy($thisUser)}
|
||||
{/if}
|
||||
|
||||
<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->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}">
|
||||
<img class="media" src="{$attachment->getURLBySizeId('normal')}" alt="{$attachment->getDescription()}" />
|
||||
</a>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{var author = $comment->getOwner()}
|
||||
{var $author = $comment->getOwner()}
|
||||
{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>
|
||||
<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>
|
||||
|
||||
<div n:ifset="$thisUser">
|
||||
{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 $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}
|
||||
{if !$readOnly}
|
||||
{include "textArea.xml", route => $commentsURL, postOpts => false, graffiti => (bool) ovkGetQuirk("comments.allow-graffiti"), club => $club}
|
||||
{/if}
|
||||
|
@ -16,17 +16,6 @@
|
|||
{include "paginator.xml", conf => (object) ["page" => $page, "count" => $count, "amount" => sizeof($comments), "perPage" => 10]}
|
||||
</div>
|
||||
{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}
|
||||
{/if}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{var post = $notification->getModel(0)}
|
||||
{var user = $notification->getModel(1)}
|
||||
{var $post = $notification->getModel(0)}
|
||||
{var $user = $notification->getModel(1)}
|
||||
|
||||
<a href="{$user->getURL()}"><b>{$user->getCanonicalName()}</b></a>
|
||||
{$notification->getDateTime()} {_nt_liked_yours}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{var post = $notification->getModel(0)}
|
||||
{var user = $notification->getModel(1)}
|
||||
{var $post = $notification->getModel(0)}
|
||||
{var $user = $notification->getModel(1)}
|
||||
|
||||
<a href="{$user->getURL()}"><b>{$user->getCanonicalName()}</b></a>
|
||||
{$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>
|
||||
{$notification->getDateTime()} {_nt_commented_yours} {include under}: "{$notification->getData()}".
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{extends "@default.xml"}
|
||||
{var post = $notification->getModel(0)}
|
||||
{var $post = $notification->getModel(0)}
|
||||
|
||||
{block under}
|
||||
{_nt_yours_feminitive_adjective} <a href="/note{$post->getPrettyId()}">{_nt_note_instrumental}</a>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{extends "@default.xml"}
|
||||
{var post = $notification->getModel(0)}
|
||||
{var $post = $notification->getModel(0)}
|
||||
|
||||
{block under}
|
||||
{_nt_yours_feminitive_adjective} <a href="/photo{$post->getPrettyId()}">{_nt_photo_instrumental}</a>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{extends "@default.xml"}
|
||||
{var post = $notification->getModel(0)}
|
||||
{var $post = $notification->getModel(0)}
|
||||
|
||||
{block under}
|
||||
{_nt_yours_adjective} <a href="/wall{$post->getPrettyId()}">{_nt_post_instrumental}</a> {_nt_from} {$post->getPublicationTime()}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{extends "@default.xml"}
|
||||
{var post = $notification->getModel(0)}
|
||||
{var $post = $notification->getModel(0)}
|
||||
|
||||
{block under}
|
||||
{_nt_yours_adjective} <a href="/video{$post->getPrettyId()}">{_video}</a>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{extends "@default.xml"}
|
||||
{var post = $notification->getModel(0)}
|
||||
{var $post = $notification->getModel(0)}
|
||||
|
||||
{block under}
|
||||
{_nt_yours_adjective} <a href="/topic{$post->getPrettyId()}">{_nt_topic_instrumental}</a>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{var post = $notification->getModel(0)}
|
||||
{var user = $notification->getModel(1)}
|
||||
{var $post = $notification->getModel(0)}
|
||||
{var $user = $notification->getModel(1)}
|
||||
|
||||
<a href="{$user->getURL()}"><b>{$user->getCanonicalName()}</b></a>
|
||||
{$notification->getDateTime()} {_nt_written_on_your_wall}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{var club = $notification->getModel(0)}
|
||||
{var user = $notification->getModel(1)}
|
||||
{var $club = $notification->getModel(0)}
|
||||
{var $user = $notification->getModel(1)}
|
||||
|
||||
<a href="{$user->getURL()}"><b>{$user->getCanonicalName()}</b></a>
|
||||
{_nt_made_you_admin}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{var gift = $notification->getModel(0)}
|
||||
{var sender = $notification->getModel(1)}
|
||||
{var $gift = $notification->getModel(0)}
|
||||
{var $sender = $notification->getModel(1)}
|
||||
|
||||
<a href="{$sender->getURL()}"><b>{$sender->getCanonicalName()}</b></a> отправил вам {$notification->getDateTime()} подарок.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{var sender = $notification->getModel(1)}
|
||||
{var value = (int) explode(" ", $notification->getData(), 2)[0]}
|
||||
{var message = explode(" ", $notification->getData(), 2)[1]}
|
||||
{var $sender = $notification->getModel(1)}
|
||||
{var $value = (int) explode(" ", $notification->getData(), 2)[0]}
|
||||
{var $message = explode(" ", $notification->getData(), 2)[1]}
|
||||
|
||||
<a href="{$sender->getURL()}"><b>{$sender->getCanonicalName()}</b></a> {_transferred_to_you} {tr("points_amount", $value)}.
|
||||
{if !empty($message)}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{var sender = $notification->getModel(1)}
|
||||
{var value = (int) explode(" ", $notification->getData(), 2)[0]}
|
||||
{var message = explode(" ", $notification->getData(), 2)[1]}
|
||||
{var $sender = $notification->getModel(1)}
|
||||
{var $value = (int) explode(" ", $notification->getData(), 2)[0]}
|
||||
{var $message = explode(" ", $notification->getData(), 2)[1]}
|
||||
|
||||
<a href="{$sender->getURL()}"><b>{$sender->getCanonicalName()}</b></a> {_increased_your_rating_by} {$value}%.
|
||||
{if !empty($message)}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{var microblogEnabled = isset($thisUser) ? $thisUser->hasMicroblogEnabled() : false}
|
||||
{var $microblogEnabled = isset($thisUser) ? $thisUser->hasMicroblogEnabled() : false}
|
||||
|
||||
{if $microblogEnabled}
|
||||
{include "post/microblogpost.xml", post => $post, diff => $diff, commentSection => $commentSection}
|
||||
{include "post/microblogpost.xml", post => $post, commentSection => $commentSection}
|
||||
{else}
|
||||
{include "post/oldpost.xml", post => $post, diff => $diff}
|
||||
{include "post/oldpost.xml", post => $post}
|
||||
{/if}
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
{var author = $post->getOwner()}
|
||||
{var comments = $post->getLastComments(3)}
|
||||
{var commentsCount = $post->getCommentsCount()}
|
||||
{var $author = $post->getOwner()}
|
||||
{var $comments = $post->getLastComments(3)}
|
||||
{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">
|
||||
<tbody>
|
||||
|
@ -18,8 +18,8 @@
|
|||
<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">
|
||||
{if ($onWallOf ?? false) &&!$post->isPostedOnBehalfOfGroup() && $post->getOwnerPost() !== $post->getTargetWall()}
|
||||
{var wallId = $post->getTargetWall()}
|
||||
{var wallURL = $wallId > -1 ? "/id$wallId" : "/club" . abs($wallId)}
|
||||
{var $wallId = $post->getTargetWall()}
|
||||
{var $wallURL = $wallId > -1 ? "/id$wallId" : "/club" . abs($wallId)}
|
||||
на
|
||||
<a href="{$wallURL}">
|
||||
<b>
|
||||
|
@ -68,7 +68,7 @@
|
|||
! Этот пост был размещён за взятку.
|
||||
</div>
|
||||
<div n:if="$post->isSigned()" class="post-signature">
|
||||
{var actualAuthor = $post->getOwner(false)}
|
||||
{var $actualAuthor = $post->getOwner(false)}
|
||||
<span>
|
||||
{_author}:
|
||||
<a href="{$actualAuthor->getURL()}">
|
||||
|
@ -91,7 +91,7 @@
|
|||
</a>
|
||||
|
||||
{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()}">
|
||||
<div class="heart" id="{if $liked}liked{/if}"></div>
|
||||
<span class="likeCnt">{if $post->getLikesCount() > 0}{$post->getLikesCount()}{/if}</span>
|
||||
|
@ -106,8 +106,8 @@
|
|||
{include "../comment.xml", comment => $comment, $compact => true}
|
||||
{/foreach}
|
||||
<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 club = is_null($club) ? ($post->getTargetWall() < 0 ? (new openvk\Web\Models\Repositories\Clubs)->get(abs($post->getTargetWall())) : NULL) : $club}
|
||||
{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}
|
||||
{include "../textArea.xml", route => $commentsURL, postOpts => false, graffiti => (bool) ovkGetQuirk("comments.allow-graffiti"), post => $post, club => $club}
|
||||
</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">
|
||||
<tbody>
|
||||
|
@ -15,8 +15,8 @@
|
|||
<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"))}
|
||||
{if ($onWallOf ?? false) &&!$post->isPostedOnBehalfOfGroup() && $post->getOwnerPost() !== $post->getTargetWall()}
|
||||
{var wallId = $post->getTargetWall()}
|
||||
{var wallURL = $wallId > -1 ? "/id$wallId" : "/club" . abs($wallId)}
|
||||
{var $wallId = $post->getTargetWall()}
|
||||
{var $wallURL = $wallId > -1 ? "/id$wallId" : "/club" . abs($wallId)}
|
||||
на
|
||||
<a href="{$wallURL}">
|
||||
<b>
|
||||
|
@ -50,7 +50,7 @@
|
|||
! Этот пост был размещён за взятку.
|
||||
</div>
|
||||
<div n:if="$post->isSigned()" class="post-signature">
|
||||
{var actualAuthor = $post->getOwner(false)}
|
||||
{var $actualAuthor = $post->getOwner(false)}
|
||||
<span>
|
||||
{_author}:
|
||||
<a href="{$actualAuthor->getURL()}">
|
||||
|
@ -92,7 +92,7 @@
|
|||
</a>
|
||||
|
||||
<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()}">
|
||||
<div class="heart" id="{if $liked}liked{/if}"></div>
|
||||
<span class="likeCnt">{if $post->getLikesCount() > 0}{$post->getLikesCount()}{/if}</span>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{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});">
|
||||
<form action="{$route}" method="post" enctype="multipart/form-data" style="margin:0;">
|
||||
|
@ -12,7 +12,7 @@
|
|||
{_attachment}: <span>(unknown)</span>
|
||||
</div>
|
||||
<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 $club->canBeModifiedBy($thisUser)}
|
||||
|
|
Loading…
Reference in a new issue