2020-06-07 19:04:43 +03:00
|
|
|
{extends "../@layout.xml"}
|
2022-12-12 02:23:42 +03:00
|
|
|
{var $backdrops = $club->getBackDropPictureURLs()}
|
2020-06-07 19:04:43 +03:00
|
|
|
|
|
|
|
{block title}{$club->getName()}{/block}
|
|
|
|
|
|
|
|
{block header}
|
|
|
|
{$club->getName()}
|
|
|
|
|
|
|
|
<img n:if="$club->isVerified()"
|
|
|
|
class="name-checkmark"
|
|
|
|
src="/assets/packages/static/openvk/img/checkmark.png"
|
2023-09-17 16:22:59 +03:00
|
|
|
alt="{_verified_page}"
|
2020-06-07 19:04:43 +03:00
|
|
|
/>
|
|
|
|
{/block}
|
|
|
|
|
|
|
|
{block content}
|
|
|
|
<div class="left_big_block">
|
2022-04-14 13:29:07 +03:00
|
|
|
<div n:if="!is_null($alert = $club->getAlert())" class="group-alert">{strpos($alert, "@") === 0 ? tr(substr($alert, 1)) : $alert}</div>
|
|
|
|
|
2020-06-07 19:04:43 +03:00
|
|
|
<div class="content_title_expanded" onclick="hidePanel(this);">
|
2022-08-09 09:37:08 +03:00
|
|
|
{_information}
|
2020-06-07 19:04:43 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="page_info">
|
|
|
|
<table class="ugc-table">
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
2022-08-09 09:37:08 +03:00
|
|
|
<td><span class="nobold">{_name_group}:</span></td>
|
2020-06-07 19:04:43 +03:00
|
|
|
<td><b>{$club->getName()}</b></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2022-08-09 09:37:08 +03:00
|
|
|
<td><span class="nobold">{_description}:</span></td>
|
2022-05-20 15:45:14 +03:00
|
|
|
<td>{$club->getDescriptionHtml()|noescape}</td>
|
2020-06-07 19:04:43 +03:00
|
|
|
</tr>
|
2021-11-12 19:56:41 +03:00
|
|
|
<tr n:if="!is_null($club->getWebsite())">
|
2022-08-09 09:37:08 +03:00
|
|
|
<td><span class="nobold">{_website}: </span></td>
|
2021-11-12 19:56:41 +03:00
|
|
|
<td>
|
|
|
|
<a href="{$club->getWebsite()}" rel="ugc" target="_blank">
|
|
|
|
{$club->getWebsite()}
|
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2020-06-07 19:04:43 +03:00
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<div n:if="$club->getFollowersCount() > 0">
|
2022-04-24 08:06:45 +03:00
|
|
|
{var $followersCount = $club->getFollowersCount()}
|
2021-12-22 18:31:58 +03:00
|
|
|
|
|
|
|
<div class="content_title_expanded" onclick="hidePanel(this, {$followersCount});">
|
|
|
|
{_participants}
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<div class="content_subtitle">
|
|
|
|
{tr("participants", $followersCount)}
|
|
|
|
<div style="float:right;">
|
|
|
|
<a href="/club{$club->getId()}/followers">{_all_title}</a>
|
|
|
|
</div>
|
2020-06-07 19:04:43 +03:00
|
|
|
</div>
|
2021-12-22 18:31:58 +03:00
|
|
|
<div style="padding-left: 5px;" class="content_list long">
|
|
|
|
<div class="cl_element" n:foreach="$club->getFollowers(1) as $follower">
|
|
|
|
<div class="cl_avatar">
|
|
|
|
<a href="{$follower->getURL()}">
|
2022-04-05 14:39:13 +03:00
|
|
|
<img class="ava" src="{$follower->getAvatarUrl('miniscule')}" />
|
2021-12-22 18:31:58 +03:00
|
|
|
</a>
|
2020-06-07 19:04:43 +03:00
|
|
|
</div>
|
2021-12-22 18:31:58 +03:00
|
|
|
<a href="{$follower->getURL()}" class="cl_name">
|
|
|
|
<text class="cl_fname">{$follower->getFirstName()}</text>
|
|
|
|
<text class="cl_lname">{$follower->getLastName()}</text>
|
|
|
|
</a>
|
2020-06-07 19:04:43 +03:00
|
|
|
</div>
|
2021-12-22 18:31:58 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div n:if="($topicsCount > 0 || $club->isEveryoneCanCreateTopics() || ($thisUser && $club->canBeModifiedBy($thisUser))) && $club->isDisplayTopicsAboveWallEnabled()">
|
|
|
|
<div class="content_title_expanded" onclick="hidePanel(this, {$topicsCount});">
|
|
|
|
{_discussions}
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<div class="content_subtitle">
|
|
|
|
{tr("topics", $topicsCount)}
|
|
|
|
<div style="float: right;">
|
2022-08-09 09:37:08 +03:00
|
|
|
<a href="/board{$club->getId()}">{_all_title}</a>
|
2021-12-22 18:31:58 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<div n:foreach="$topics as $topic" class="topic-list-item" style="padding: 8px;">
|
|
|
|
<b><a href="/topic{$topic->getPrettyId()}">{$topic->getTitle()}</a></b><br>
|
|
|
|
<span class="nobold">{tr("updated_at", $topic->getUpdateTime())}</span>
|
2020-06-07 19:04:43 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-12-22 18:31:58 +03:00
|
|
|
</div>
|
2020-06-07 19:04:43 +03:00
|
|
|
|
2021-09-20 13:35:03 +03:00
|
|
|
{presenter "openvk!Wall->wallEmbedded", -$club->getId()}
|
2020-06-07 19:04:43 +03:00
|
|
|
</div>
|
|
|
|
<div class="right_small_block">
|
2022-04-24 08:06:45 +03:00
|
|
|
{var $avatarPhoto = $club->getAvatarPhoto()}
|
|
|
|
{var $avatarLink = ((is_null($avatarPhoto) ? FALSE : $avatarPhoto->isAnonymous()) ? "/photo" . ("s/" . base_convert((string) $avatarPhoto->getId(), 10, 32)) : $club->getAvatarLink())}
|
2023-05-14 23:49:33 +03:00
|
|
|
<div class="avatar_block" style="position:relative;">
|
|
|
|
{var $hasAvatar = !str_contains($club->getAvatarUrl('miniscule'), "/assets/packages/static/openvk/img/camera_200.png")}
|
|
|
|
{if !is_null($thisUser) && $hasAvatar == false && $club->canBeModifiedBy($thisUser)}
|
|
|
|
<a href="javascript:addAvatarImage(true, {$club->getId()})" class="text_add_image">{_add_image_group}</a>
|
|
|
|
{elseif !is_null($thisUser) && $hasAvatar == true && $club->canBeModifiedBy($thisUser)}
|
|
|
|
<div class="avatar_controls">
|
|
|
|
<div class="avatarDelete">
|
|
|
|
<a id="upl" href="javascript:deleteAvatar('{$club->getAvatarPhoto()->getPrettyId()}')"><img src="/assets/packages/static/openvk/img/delete.png"/></a>
|
|
|
|
</div>
|
|
|
|
<div class="avatar_variants">
|
|
|
|
<div class="variant">
|
|
|
|
<img src="/assets/packages/static/openvk/img/upload.png" style="margin-left:15px;height: 10px;">
|
|
|
|
<a href="javascript:addAvatarImage(true, {$club->getId()})"><p>{_upload_new_picture}</p></a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{/if}
|
|
|
|
<a href="{$avatarLink|nocheck}">
|
|
|
|
<img src="{$club->getAvatarUrl('normal')}" id="thisGroupAvatar" style="width: 100%; image-rendering: -webkit-optimize-contrast;" />
|
|
|
|
</a>
|
|
|
|
</div>
|
2020-06-07 19:04:43 +03:00
|
|
|
<div n:ifset="$thisUser" id="profile_links">
|
|
|
|
{if $club->canBeModifiedBy($thisUser)}
|
2022-08-09 09:37:08 +03:00
|
|
|
<a href="/club{$club->getId()}/edit" id="profile_link">{_edit_group}</a>
|
2023-04-30 17:40:06 +03:00
|
|
|
<a href="/club{$club->getId()}/stats" id="profile_link">{_statistics}</a>
|
2020-06-07 19:04:43 +03:00
|
|
|
{/if}
|
2021-12-26 21:52:35 +03:00
|
|
|
{if $thisUser->getChandlerUser()->can("access")->model("admin")->whichBelongsTo(NULL)}
|
2022-08-09 09:37:08 +03:00
|
|
|
<a href="/admin/clubs/id{$club->getId()}" id="profile_link">{_manage_group_action}</a>
|
2023-08-11 16:43:39 +03:00
|
|
|
<a href="/admin/logs?obj_id={$club->getId()}&obj_type=Club" class="profile_link">Последние действия</a>
|
2021-12-26 21:52:35 +03:00
|
|
|
{/if}
|
2020-06-07 19:04:43 +03:00
|
|
|
{if $club->getSubscriptionStatus($thisUser) == false}
|
|
|
|
<form action="/setSub/club" method="post">
|
|
|
|
<input type="hidden" name="act" value="add" />
|
|
|
|
<input type="hidden" name="id" value="{$club->getId()}" />
|
|
|
|
<input type="hidden" name="hash" value="{$csrfToken}" />
|
2022-08-09 09:37:08 +03:00
|
|
|
<input type="submit" id="profile_link" value="{_join_community}" />
|
2020-06-07 19:04:43 +03:00
|
|
|
</form>
|
|
|
|
{else}
|
|
|
|
<form action="/setSub/club" method="post">
|
|
|
|
<input type="hidden" name="act" value="rem" />
|
|
|
|
<input type="hidden" name="id" value="{$club->getId()}" />
|
|
|
|
<input type="hidden" name="hash" value="{$csrfToken}" />
|
2022-08-09 09:37:08 +03:00
|
|
|
<input type="submit" id="profile_link" value="{_leave_community}" />
|
2020-06-07 19:04:43 +03:00
|
|
|
</form>
|
|
|
|
{/if}
|
2023-08-11 16:50:19 +03:00
|
|
|
{var $canReport = $thisUser->getId() != $club->getOwner()->getId()}
|
|
|
|
{if $canReport}
|
2023-09-17 16:22:59 +03:00
|
|
|
<a class="profile_link" style="display:block;" href="javascript:reportVideo()">{_report}</a>
|
2023-08-11 16:50:19 +03:00
|
|
|
|
|
|
|
<script>
|
|
|
|
function reportVideo() {
|
2023-09-17 16:22:59 +03:00
|
|
|
uReportMsgTxt = tr("going_to_report_club");
|
|
|
|
uReportMsgTxt += "<br/>"+tr("report_question_text");
|
|
|
|
uReportMsgTxt += "<br/><br/><b>"+tr("report_reason")+"</b>: <input type='text' id='uReportMsgInput' placeholder='" + tr("reason") + "' />"
|
2023-08-11 16:50:19 +03:00
|
|
|
|
2023-09-17 16:22:59 +03:00
|
|
|
MessageBox(tr("report_question"), uReportMsgTxt, [tr("confirm_m"), tr("cancel")], [
|
2023-08-11 16:50:19 +03:00
|
|
|
(function() {
|
|
|
|
res = document.querySelector("#uReportMsgInput").value;
|
|
|
|
xhr = new XMLHttpRequest();
|
|
|
|
xhr.open("GET", "/report/" + {$club->getId()} + "?reason=" + res + "&type=group", true);
|
|
|
|
xhr.onload = (function() {
|
|
|
|
if(xhr.responseText.indexOf("reason") === -1)
|
2023-09-17 16:22:59 +03:00
|
|
|
MessageBox(tr("error"), tr("error_sending_report"), ["OK"], [Function.noop]);
|
2023-08-11 16:50:19 +03:00
|
|
|
else
|
2023-09-17 16:22:59 +03:00
|
|
|
MessageBox(tr("action_successfully"), tr("will_be_watched"), ["OK"], [Function.noop]);
|
2023-08-11 16:50:19 +03:00
|
|
|
});
|
|
|
|
xhr.send(null);
|
|
|
|
}),
|
|
|
|
Function.noop
|
|
|
|
]);
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
{/if}
|
2020-06-07 19:04:43 +03:00
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<div class="content_title_expanded" onclick="hidePanel(this);">
|
2022-08-09 09:37:08 +03:00
|
|
|
{_group_type}
|
2020-06-07 19:04:43 +03:00
|
|
|
</div>
|
|
|
|
<div style="padding:4px">
|
2022-08-09 09:37:08 +03:00
|
|
|
{_group_type_open}
|
2020-06-07 19:04:43 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-11-05 13:32:55 +03:00
|
|
|
<div n:if="$club->getAdministratorsListDisplay() == 0">
|
|
|
|
<div class="content_title_expanded" onclick="hidePanel(this);">
|
2022-08-09 09:37:08 +03:00
|
|
|
{_creator}
|
2020-06-07 19:04:43 +03:00
|
|
|
</div>
|
2021-11-06 17:47:53 +03:00
|
|
|
<div class="avatar-list-item" style="padding: 8px;">
|
2022-04-24 08:06:45 +03:00
|
|
|
{var $author = $club->getOwner()}
|
2021-11-06 17:47:53 +03:00
|
|
|
<div class="avatar">
|
|
|
|
<a href="{$author->getURL()}">
|
|
|
|
<img class="ava" src="{$author->getAvatarUrl()}" />
|
|
|
|
</a>
|
|
|
|
</div>
|
2021-11-12 16:31:23 +03:00
|
|
|
{* Это наверное костыль, ну да ладно *}
|
2021-11-12 19:18:48 +03:00
|
|
|
<div n:class="info, mb_strlen($author->getCanonicalName()) < 22 ? info-centered" n:if="empty($club->getOwnerComment())">
|
2021-11-06 17:47:53 +03:00
|
|
|
<a href="{$author->getURL()}" class="title">{$author->getCanonicalName()}</a>
|
|
|
|
</div>
|
|
|
|
<div class="info" n:if="!empty($club->getOwnerComment())">
|
|
|
|
<a href="{$author->getURL()}" class="title">{$author->getCanonicalName()}</a>
|
|
|
|
<div class="subtitle">{$club->getOwnerComment()}</div>
|
|
|
|
</div>
|
2021-11-05 13:32:55 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div n:if="$club->getAdministratorsListDisplay() == 1">
|
2022-04-24 08:06:45 +03:00
|
|
|
{var $managersCount = $club->getManagersCount(true)}
|
2021-11-16 14:01:33 +03:00
|
|
|
|
|
|
|
<div class="content_title_expanded" onclick="hidePanel(this, {$managersCount});">
|
2022-08-09 09:37:08 +03:00
|
|
|
{_administrators}
|
2020-06-07 19:04:43 +03:00
|
|
|
</div>
|
2021-11-06 17:47:53 +03:00
|
|
|
<div>
|
|
|
|
<div class="content_subtitle">
|
2021-11-16 14:01:33 +03:00
|
|
|
{tr("administrators", $managersCount)}
|
2021-11-12 16:31:23 +03:00
|
|
|
<div style="float: right;">
|
2022-08-09 09:37:08 +03:00
|
|
|
<a href="/club{$club->getId()}/followers?onlyAdmins=1">{_all_title}</a>
|
2021-11-12 16:31:23 +03:00
|
|
|
</div>
|
2021-11-06 17:47:53 +03:00
|
|
|
</div>
|
|
|
|
<div class="avatar-list">
|
2021-11-12 16:31:23 +03:00
|
|
|
<div class="avatar-list-item" n:if="!$club->isOwnerHidden()">
|
2022-04-24 08:06:45 +03:00
|
|
|
{var $author = $club->getOwner()}
|
2021-11-06 17:47:53 +03:00
|
|
|
<div class="avatar">
|
|
|
|
<a href="{$author->getURL()}">
|
|
|
|
<img class="ava" src="{$author->getAvatarUrl()}" />
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div class="info">
|
|
|
|
<a href="{$author->getURL()}" class="title">{$author->getCanonicalName()}</a>
|
|
|
|
<div class="subtitle" n:if="!empty($club->getOwnerComment())">{$club->getOwnerComment()}</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-11-12 16:31:23 +03:00
|
|
|
<div class="avatar-list-item" n:foreach="$club->getManagers(1, true) as $manager">
|
2022-04-24 08:06:45 +03:00
|
|
|
{var $user = $manager->getUser()}
|
2021-11-06 17:47:53 +03:00
|
|
|
<div class="avatar">
|
|
|
|
<a href="{$user->getURL()}">
|
|
|
|
<img height="32" class="ava" src="{$user->getAvatarUrl()}" />
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div class="info">
|
|
|
|
<a href="{$user->getURL()}" class="title">{$user->getCanonicalName()}</a>
|
|
|
|
<div class="subtitle" n:if="!empty($manager->getComment())">{$manager->getComment()}</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-11-05 13:32:55 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-01-02 18:49:11 +03:00
|
|
|
<div n:if="$albumsCount > 0 || ($thisUser && $club->canBeModifiedBy($thisUser))">
|
2020-06-07 19:04:43 +03:00
|
|
|
<div class="content_title_expanded" onclick="hidePanel(this, {$albumsCount});">
|
2022-08-09 09:37:08 +03:00
|
|
|
{_albums}
|
2020-06-07 19:04:43 +03:00
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<div class="content_subtitle">
|
2020-12-28 03:00:57 +03:00
|
|
|
{tr("albums", $albumsCount)}
|
2020-06-07 19:04:43 +03:00
|
|
|
<div style="float:right;">
|
2022-08-09 09:37:08 +03:00
|
|
|
<a href="/albums{$club->getId() * -1}">{_all_title}</a>
|
2020-06-07 19:04:43 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<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;">
|
2022-04-24 08:06:45 +03:00
|
|
|
{var $cover = $album->getCoverPhoto()}
|
2020-06-07 19:04:43 +03:00
|
|
|
|
|
|
|
<img
|
|
|
|
src="{is_null($cover)?'/assets/packages/static/openvk/img/camera_200.png':$cover->getURL()}"
|
|
|
|
style="max-width: 80px; max-height: 54pt;" />
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<b><a href="/album{$album->getPrettyId()}">{$album->getName()}</a></b><br>
|
2021-12-15 01:27:17 +03:00
|
|
|
<span class="nobold">{tr("updated_at", $album->getEditTime() ?? $album->getCreationTime())}</span>
|
2020-06-07 19:04:43 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-12-22 18:31:58 +03:00
|
|
|
<div n:if="($topicsCount > 0 || $club->isEveryoneCanCreateTopics() || ($thisUser && $club->canBeModifiedBy($thisUser))) && !$club->isDisplayTopicsAboveWallEnabled()">
|
2021-12-15 01:27:17 +03:00
|
|
|
<div class="content_title_expanded" onclick="hidePanel(this, {$topicsCount});">
|
|
|
|
{_discussions}
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<div class="content_subtitle">
|
|
|
|
{tr("topics", $topicsCount)}
|
|
|
|
<div style="float: right;">
|
2022-08-09 09:37:08 +03:00
|
|
|
<a href="/board{$club->getId()}">{_all_title}</a>
|
2021-12-15 01:27:17 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div>
|
2021-12-15 02:20:53 +03:00
|
|
|
<div n:foreach="$topics as $topic" class="topic-list-item">
|
2021-12-15 01:27:17 +03:00
|
|
|
<b><a href="/topic{$topic->getPrettyId()}">{$topic->getTitle()}</a></b><br>
|
|
|
|
<span class="nobold">{tr("updated_at", $topic->getUpdateTime())}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-06-07 19:04:43 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
{/block}
|
2023-05-26 18:21:56 +03:00
|
|
|
|
|
|
|
{block bodyScripts}
|
|
|
|
{script "js/al_despacito_wall.js"}
|
|
|
|
{/block}
|