This commit is contained in:
KosFurler 2022-01-25 22:26:24 +03:00
commit 43ebb2c8ad
6 changed files with 51 additions and 48 deletions

View file

@ -63,7 +63,7 @@ final class AboutPresenter extends OpenVKPresenter
$this->template->usersStats = (new Users)->getStatistics();
$this->template->clubsCount = (new Clubs)->getCount();
$this->template->postsCount = (new Posts)->getCount();
$this->template->popularClubs = (new Clubs)->getPopularClubs();
$this->template->popularClubs = iterator_to_array((new Clubs)->getPopularClubs());
$this->template->admins = iterator_to_array((new Users)->getInstanceAdmins());
}

View file

@ -207,6 +207,7 @@ final class GroupPresenter extends OpenVKPresenter
$club->setShortcode(empty($this->postParam("shortcode")) ? NULL : $this->postParam("shortcode"));
$club->setWall(empty($this->postParam("wall")) ? 0 : 1);
$club->setAdministrators_List_Display(empty($this->postParam("administrators_list_display")) ? 0 : $this->postParam("administrators_list_display"));
$club->setEveryone_Can_Create_Topics(empty($this->postParam("everyone_can_create_topics")) ? 0 : 1);
$club->setDisplay_Topics_Above_Wall(empty($this->postParam("display_topics_above_wall")) ? 0 : 1);
$club->setHide_From_Global_Feed(empty($this->postParam("hide_from_global_feed")) ? 0 : 1);

View file

@ -11,7 +11,7 @@
{if sizeof($data) > 0}
<div class="content" n:foreach="$data as $dat">
<table cellspacing="0" cellpadding="0">
<table>
<tbody>
<tr>
<td valign="top">

View file

@ -42,15 +42,17 @@
</tbody>
</table>
<h4>{_most_popular_groups}</h4>
<ol>
<li n:foreach="$popularClubs as $entry" style="margin-top: 5px;">
<a href="{$entry->club->getURL()}">{$entry->club->getName()}</a>
<div>
{tr("participants", $entry->subscriptions)}
</div>
</li>
</ol>
{if sizeof($popularClubs) !== 0}
<h4>{_most_popular_groups}</h4>
<ol>
<li n:foreach="$popularClubs as $entry" style="margin-top: 5px;">
<a href="{$entry->club->getURL()}">{$entry->club->getName()}</a>
<div>
{tr("participants", $entry->subscriptions)}
</div>
</li>
</ol>
{/if}
<h4>{_rules}</h4>
<div style="margin-top: 16px;">

View file

@ -28,9 +28,9 @@
{var cover = $x->getCoverPhoto()}
{var preview = is_null($cover) ? "/assets/packages/static/openvk/img/camera_200.png" : $cover->getURL()}
<a href="/album{$x->getPrettyId()}">
<img src="{$preview}" alt="{$x->getName()}" style="height: 130px;width: 170px;object-fit: cover;margin-right: 15px;" />
</a>
<a href="/album{$x->getPrettyId()}">
<img src="{$preview}" alt="{$x->getName()}" style="height: 130px; width: 170px; object-fit: cover" />
</a>
{/block}
{block name}
@ -38,8 +38,8 @@
{/block}
{block description}
<span>{$x->getDescription() ?? $x->getName()}</span><br/>
<span style="color: grey;">{$x->getPhotosCount()} фотографий</span><br/>
<span style="color: grey;">Обновлен {$x->getEditTime() ?? $x->getCreationTime()}</span>
<span style="color: grey;">Создан {$x->getCreationTime()}</span><br/>
<span>{$x->getDescription() ?? $x->getName()}</span><br />
<span style="color: grey;">{$x->getPhotosCount()} фотографий</span><br />
<span style="color: grey;">Обновлен {$x->getEditTime() ?? $x->getCreationTime()}</span><br />
<span style="color: grey;">Создан {$x->getCreationTime()}</span><br />
{/block}

View file

@ -794,9 +794,9 @@ table.User {
}
.tabs {
border-bottom: 1px solid #707070;
margin-right: -12px;
margin-left: -12px;
border-bottom: 1px solid #707070;
margin-right: -12px;
margin-left: -12px;
}
#activetabs {
@ -1581,10 +1581,10 @@ body.scrolled .toTop:hover {
}
.postFeedWrapper {
padding: 4px 8px;
background-color: rgb(240, 240, 240);
border-bottom: 1px solid #ccc;
border-top: 1px solid #ccc;
padding: 4px 8px;
background-color: rgb(240, 240, 240);
border-bottom: 1px solid #ccc;
border-top: 1px solid #ccc;
}
.user-alert {
@ -1787,38 +1787,38 @@ body.scrolled .toTop:hover {
}
.summaryBar {
border-bottom: 1px solid #DAE2E8;
clear: both;
padding: 11px 10px;
color: black;
font-weight: normal;
line-height: normal;
margin-left: -12px;
margin-right: -12px;
border-bottom: 1px solid #DAE2E8;
clear: both;
padding: 11px 10px;
color: black;
font-weight: normal;
line-height: normal;
margin-left: -12px;
margin-right: -12px;
}
.summaryBar .summary {
color: #45688E;
font-weight: bold;
padding-top: 3px;
padding-bottom: 4px;
display: inline-block;
color: #45688E;
font-weight: bold;
padding-top: 3px;
padding-bottom: 4px;
display: inline-block;
}
.note_header {
background: #f7f7f7;
border-bottom: solid 1px #DAE1E8;
border-top: solid 1px #45688E;
padding: 4px 6px 5px 6px;
background: #f7f7f7;
border-bottom: solid 1px #DAE1E8;
border-top: solid 1px #45688E;
padding: 4px 6px 5px 6px;
}
.note_header .note_title {
color: #45688E;
font-size: 13px;
font-weight: bold;
line-height: 15px;
margin: 0;
padding: 0 0 1px 0;
color: #45688E;
font-size: 13px;
font-weight: bold;
line-height: 15px;
margin: 0;
padding: 0 0 1px 0;
}
.note_footer {
border-top: 1px solid #ddd;