2020-06-07 19:04:43 +03:00
|
|
|
{extends "../@listView.xml"}
|
2022-04-24 08:06:45 +03:00
|
|
|
{var $iterator = iterator_to_array($albums)}
|
|
|
|
{var $page = $paginatorConf->page}
|
2020-06-07 19:04:43 +03:00
|
|
|
|
2022-08-09 09:37:08 +03:00
|
|
|
{block title}{_albums} {$owner->getCanonicalName()}{/block}
|
2020-06-07 19:04:43 +03:00
|
|
|
|
|
|
|
{block header}
|
2022-02-19 20:50:06 +03:00
|
|
|
{if isset($thisUser) && $thisUser->getId() == $owner->getId()}
|
|
|
|
{_my_photos}
|
|
|
|
{else}
|
|
|
|
<a href="{$owner->getURL()}">
|
|
|
|
{$owner->getCanonicalName()}</a>
|
|
|
|
»
|
|
|
|
{_albums}
|
|
|
|
{/if}
|
2022-02-19 01:03:27 +03:00
|
|
|
{/block}
|
|
|
|
|
|
|
|
{block size}
|
|
|
|
<div style="padding-bottom: 0px; padding-top: 0;" class="summaryBar">
|
|
|
|
<div class="summary">
|
2022-02-19 20:50:06 +03:00
|
|
|
{if !is_null($thisUser) && $owner->getId() === $thisUser->getId()}
|
|
|
|
{tr("albums_list", $count)}
|
|
|
|
{else}
|
|
|
|
{tr("albums", $count)}
|
|
|
|
{/if}
|
2022-04-06 12:47:56 +03:00
|
|
|
|
|
|
|
<span n:if="$canEdit" style="float: right;">
|
2022-02-19 20:50:06 +03:00
|
|
|
|
|
2022-04-24 08:06:45 +03:00
|
|
|
{var $isClub = ($owner instanceof \openvk\Web\Models\Entities\Club)}
|
2022-04-06 12:47:56 +03:00
|
|
|
<a href="/albums/create{$isClub ? '?gpid=' . $owner->getId() : ''}">{_create_album}</a>
|
2022-02-19 20:50:06 +03:00
|
|
|
</span>
|
2022-02-19 01:03:27 +03:00
|
|
|
</div>
|
2020-06-07 19:04:43 +03:00
|
|
|
</div>
|
|
|
|
{/block}
|
|
|
|
|
|
|
|
{block actions}
|
|
|
|
|
|
|
|
{/block}
|
|
|
|
|
|
|
|
{* BEGIN ELEMENTS DESCRIPTION *}
|
|
|
|
|
|
|
|
{block link|strip|stripHtml}
|
|
|
|
/album{$x->getPrettyId()}
|
|
|
|
{/block}
|
|
|
|
|
|
|
|
{block preview}
|
2022-04-24 08:06:45 +03:00
|
|
|
{var $cover = $x->getCoverPhoto()}
|
|
|
|
{var $preview = is_null($cover) ? "/assets/packages/static/openvk/img/camera_200.png" : $cover->getURLBySizeId("normal")}
|
2020-06-07 19:04:43 +03:00
|
|
|
|
2022-01-25 01:21:58 +03:00
|
|
|
<a href="/album{$x->getPrettyId()}">
|
|
|
|
<img src="{$preview}" alt="{$x->getName()}" style="height: 130px; width: 170px; object-fit: cover" />
|
|
|
|
</a>
|
2020-06-07 19:04:43 +03:00
|
|
|
{/block}
|
|
|
|
|
|
|
|
{block name}
|
|
|
|
{$x->getName()}
|
|
|
|
{/block}
|
|
|
|
|
|
|
|
{block description}
|
2022-01-24 18:55:43 +03:00
|
|
|
<span>{$x->getDescription() ?? $x->getName()}</span><br />
|
2023-09-17 16:22:59 +03:00
|
|
|
<span style="color: grey;">{$x->getPhotosCount()} {_photos}</span><br />
|
2022-07-29 12:41:43 +03:00
|
|
|
<span style="color: grey;">{tr("updated_at", $x->getEditTime() ?? $x->getCreationTime())}</span><br />
|
|
|
|
<span style="color: grey;">{_created} {$x->getCreationTime()}</span><br />
|
2020-06-07 19:04:43 +03:00
|
|
|
{/block}
|