2020-06-07 19:04:43 +03:00
|
|
|
{extends "../@listView.xml"}
|
2021-11-20 13:47:59 +03:00
|
|
|
{var iterator = $user->getClubs($page, $admin)}
|
|
|
|
{var count = $user->getClubCount($admin)}
|
2020-06-07 19:04:43 +03:00
|
|
|
|
2020-07-13 06:55:45 +03:00
|
|
|
{block title}{_"groups"}{/block}
|
2020-06-07 19:04:43 +03:00
|
|
|
|
|
|
|
{block header}
|
2022-01-31 02:30:15 +03:00
|
|
|
{if !is_null($thisUser) && $user->getId() === $thisUser->getId()}
|
|
|
|
{_my_groups}
|
|
|
|
{else}
|
2020-06-07 19:04:43 +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
|
|
|
<div n:if="!is_null($thisUser) && $user->getId() === $thisUser->getId()" style="float:right;">
|
|
|
|
</div>
|
|
|
|
{/block}
|
|
|
|
|
|
|
|
{* BEGIN ELEMENTS DESCRIPTION *}
|
|
|
|
|
2021-11-20 13:47:59 +03:00
|
|
|
{block tabs}
|
|
|
|
{if !is_null($thisUser) && $user->getId() === $thisUser->getId()}
|
|
|
|
<div {if !$admin}id="activetabs"{/if} class="tab">
|
|
|
|
<a {if !$admin}id="act_tab_a"{/if} href="/groups{$user->getId()}">
|
|
|
|
{_groups}
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div {if $admin}id="activetabs"{/if} class="tab">
|
|
|
|
<a {if $admin}id="act_tab_a"{/if} href="/groups{$user->getId()}?act=managed">
|
|
|
|
{_managed}
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
{/if}
|
|
|
|
{/block}
|
|
|
|
|
2022-01-31 02:30:15 +03:00
|
|
|
{block size}
|
|
|
|
<div style="padding-bottom: 0px;border-bottom: 0;" class="summaryBar">
|
|
|
|
<div class="summary">Найдено групп ({$thisUser->getClubCount()})</div>
|
|
|
|
</div>
|
|
|
|
{/block}
|
|
|
|
|
2020-06-07 19:04:43 +03:00
|
|
|
{block link|strip|stripHtml}
|
|
|
|
{$x->getURL()}
|
|
|
|
{/block}
|
|
|
|
|
|
|
|
{block preview}
|
|
|
|
<img src="{$x->getAvatarUrl()}" width="75" alt="Фотография группы" />
|
|
|
|
{/block}
|
|
|
|
|
|
|
|
{block name}
|
|
|
|
{$x->getName()}
|
|
|
|
{/block}
|
|
|
|
|
|
|
|
{block description}
|
|
|
|
{$x->getDescription()}
|
|
|
|
{/block}
|
2021-12-22 16:26:49 +03:00
|
|
|
|
2021-12-24 23:08:03 +03:00
|
|
|
{block actions}
|
|
|
|
{var clubPinned = $thisUser->isClubPinned($x)}
|
|
|
|
{if $x->canBeModifiedBy($thisUser ?? NULL) && ($clubPinned || $thisUser->getPinnedClubCount() <= 10)}
|
2021-12-22 16:26:49 +03:00
|
|
|
<a class="profile_link" href="/groups_pin?club={$x->getId()}&hash={rawurlencode($csrfToken)}" id="_pinGroup" data-group-name="{$x->getName()}" data-group-url="{$x->getUrl()}">
|
|
|
|
{if $clubPinned}
|
|
|
|
{_remove_from_left_menu}
|
|
|
|
{else}
|
|
|
|
{_add_to_left_menu}
|
|
|
|
{/if}
|
|
|
|
</a>
|
2021-12-24 23:08:03 +03:00
|
|
|
{/if}
|
|
|
|
{/block}
|
2022-01-31 02:30:15 +03:00
|
|
|
|
|
|
|
{block bottom}
|
|
|
|
{if !is_null($thisUser) && $user->getId() === $thisUser->getId()}
|
|
|
|
<div class="groups_options">
|
|
|
|
<div id="gp_container" style="width: 200px;margin-right: 40px;">
|
|
|
|
<h4>{_"open_new_group"}</h4>
|
|
|
|
<span>{_"open_group_desc"}</span>
|
|
|
|
<form action="/groups_create">
|
|
|
|
<button class="button">{_"create_group"}</button></div>
|
|
|
|
</form>
|
|
|
|
<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">
|
|
|
|
<input name="query" class="header_search_input" value="" style="background: none;width: 155px;padding-left: 3px;">
|
|
|
|
<button class="button">{_"search_by_groups"}</button>
|
|
|
|
</form></div>
|
|
|
|
</div>
|
|
|
|
{/if}
|
|
|
|
{/block}
|