2020-06-07 19:04:43 +03:00
|
|
|
{extends "../@listView.xml"}
|
2022-04-24 08:06:45 +03:00
|
|
|
{var $iterator = $user->getClubs($page, $admin)}
|
|
|
|
{var $count = $user->getClubCount($admin)}
|
2020-06-07 19:04:43 +03:00
|
|
|
|
2022-01-31 04:45:56 +03:00
|
|
|
{block title}
|
|
|
|
{_groups}
|
|
|
|
{/block}
|
2020-06-07 19:04:43 +03:00
|
|
|
|
|
|
|
{block header}
|
2022-01-31 04:45:56 +03:00
|
|
|
{if !is_null($thisUser) && $user->getId() === $thisUser->getId()}
|
|
|
|
{_my_groups}
|
2022-01-31 02:30:15 +03:00
|
|
|
{else}
|
2022-01-31 04:45:56 +03:00
|
|
|
<a href="{$user->getURL()}">{$user->getCanonicalName()}</a> » {_groups}
|
2022-01-31 02:30:15 +03:00
|
|
|
{/if}
|
2020-06-07 19:04:43 +03:00
|
|
|
{/block}
|
|
|
|
|
|
|
|
{* BEGIN ELEMENTS DESCRIPTION *}
|
|
|
|
|
2021-11-20 13:47:59 +03:00
|
|
|
{block tabs}
|
2022-01-31 04:45:56 +03:00
|
|
|
{if !is_null($thisUser) && $user->getId() === $thisUser->getId()}
|
2022-02-01 18:11:39 +03:00
|
|
|
<div n:attr='id => ($admin ? false : "activetabs")' class="tab">
|
|
|
|
<a n:attr='id => ($admin ? false : "act_tab_a")' href="/groups{$user->getId()}">
|
2022-01-31 04:45:56 +03:00
|
|
|
{_groups}
|
|
|
|
</a>
|
|
|
|
</div>
|
2022-02-01 19:58:39 +03:00
|
|
|
<div n:attr='id => (!$admin ? false : "activetabs")' class="tab">
|
|
|
|
<a n:attr='id => (!$admin ? false : "act_tab_a")' href="/groups{$user->getId()}?act=managed">
|
2022-01-31 04:45:56 +03:00
|
|
|
{_managed}
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
{/if}
|
2021-11-20 13:47:59 +03:00
|
|
|
{/block}
|
|
|
|
|
2022-01-31 02:30:15 +03:00
|
|
|
{block size}
|
2022-02-19 01:03:27 +03:00
|
|
|
<div style="padding-bottom: 0px;" class="summaryBar">
|
2022-01-31 15:15:51 +03:00
|
|
|
<div class="summary">
|
|
|
|
{if !is_null($thisUser) && $user->getId() === $thisUser->getId()}
|
|
|
|
{tr("groups_list", $thisUser->getClubCount())}
|
|
|
|
{else}
|
|
|
|
{tr("groups", $user->getClubCount())}
|
|
|
|
{/if}
|
|
|
|
</div>
|
2022-01-31 04:45:56 +03:00
|
|
|
</div>
|
2022-01-31 02:30:15 +03:00
|
|
|
{/block}
|
|
|
|
|
2020-06-07 19:04:43 +03:00
|
|
|
{block link|strip|stripHtml}
|
|
|
|
{$x->getURL()}
|
|
|
|
{/block}
|
|
|
|
|
|
|
|
{block preview}
|
2022-04-05 14:39:13 +03:00
|
|
|
<img src="{$x->getAvatarUrl('miniscule')}" width="75" alt="Фотография группы" />
|
2020-06-07 19:04:43 +03:00
|
|
|
{/block}
|
|
|
|
|
2022-02-07 15:06:47 +03:00
|
|
|
{block name}{/block}
|
|
|
|
|
2022-02-19 16:07:15 +03:00
|
|
|
{block infotable}
|
2022-01-31 15:15:51 +03:00
|
|
|
<table id="basicInfo" class="ugc-table group_info" cellspacing="0" cellpadding="0" border="0">
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
2022-02-01 19:58:39 +03:00
|
|
|
<td class="label"><span class="nobold">{_name}: </span></td>
|
2022-01-31 15:15:51 +03:00
|
|
|
<td class="data"><a href="{$x->getURL()}">{$x->getName()}</a></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2022-02-01 19:58:39 +03:00
|
|
|
<td class="label"><span class="nobold">{_size}:</span></td>
|
2022-01-31 15:15:51 +03:00
|
|
|
<td class="data"><a href="/club{$x->getId()}/followers">{tr("participants", $x->getFollowersCount())}</a></td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2020-06-07 19:04:43 +03:00
|
|
|
{/block}
|
|
|
|
|
|
|
|
{block description}
|
|
|
|
{$x->getDescription()}
|
|
|
|
{/block}
|
2021-12-22 16:26:49 +03:00
|
|
|
|
2021-12-24 23:08:03 +03:00
|
|
|
{block actions}
|
2022-04-24 08:06:45 +03:00
|
|
|
{var $clubPinned = $thisUser->isClubPinned($x)}
|
2022-02-19 20:50:06 +03:00
|
|
|
{if $x->canBeModifiedBy($thisUser ?? NULL)}
|
2022-02-19 01:03:27 +03:00
|
|
|
<div class="navigation" style="width: 140px;">
|
|
|
|
<a class="link" href="{$x->getURL()}">
|
|
|
|
{_check_community}
|
2022-02-01 21:35:37 +03:00
|
|
|
</a>
|
2022-02-19 20:50:06 +03:00
|
|
|
{if ($clubPinned || $thisUser->getPinnedClubCount() <= 10)}
|
2022-02-19 20:31:19 +03:00
|
|
|
<a class="link" href="/groups_pin?club={$x->getId()}&hash={rawurlencode($csrfToken)}" id="_pinGroup" data-group-name="{$x->getName()}" data-group-url="{$x->getUrl()}">
|
2022-02-19 01:03:27 +03:00
|
|
|
{if $clubPinned}
|
|
|
|
{_remove_from_left_menu}
|
|
|
|
{else}
|
|
|
|
{_add_to_left_menu}
|
|
|
|
{/if}
|
|
|
|
</a>
|
|
|
|
{/if}
|
|
|
|
<form action="/setSub/club" method="post">
|
|
|
|
<input type="hidden" name="act" value="rem" />
|
|
|
|
<input type="hidden" name="id" value="{$x->getId()}" />
|
|
|
|
<input type="hidden" name="hash" value="{$csrfToken}" />
|
|
|
|
<input style="text-transform: lowercase; width: 100%;" class="link" type="submit" value="{_"leave_community"}" />
|
|
|
|
</form>
|
|
|
|
</div>
|
2022-02-19 20:50:06 +03:00
|
|
|
{/if}
|
2021-12-24 23:08:03 +03:00
|
|
|
{/block}
|
2022-01-31 02:30:15 +03:00
|
|
|
|
|
|
|
{block bottom}
|
2022-01-31 04:45:56 +03:00
|
|
|
{if !is_null($thisUser) && $user->getId() === $thisUser->getId()}
|
|
|
|
<div class="groups_options">
|
2022-02-01 19:58:39 +03:00
|
|
|
<div id="gp_container" style="width: 200px; margin-right: 40px;">
|
2022-01-31 04:45:56 +03:00
|
|
|
<h4>{_open_new_group}</h4>
|
|
|
|
<span>{_open_group_desc}</span>
|
|
|
|
<form action="/groups_create">
|
|
|
|
<button class="button">{_create_group}</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div id="gp_container" style="width: 344px;">
|
|
|
|
<h4>{_search_group}</h4>
|
|
|
|
<span>{_search_group_desc}</span>
|
|
|
|
<form action="/search">
|
|
|
|
<input name="type" type="hidden" value="groups">
|
2022-02-01 19:58:39 +03:00
|
|
|
<input name="query" class="header_search_input" value="" style="background: none; width: 155px; padding-left: 3px;">
|
2022-01-31 04:45:56 +03:00
|
|
|
<button class="button">{_search_by_groups}</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{/if}
|
2021-12-24 23:08:03 +03:00
|
|
|
{/block}
|