{extends "../@layout.xml"} {block title} {if $mode == 'list'} {if $ownerId > 0} {_audios} {$owner->getMorphedName("genitive", false)} {else} {_audios_group} {/if} {elseif $mode == 'new'} {_audio_new} {elseif $mode == 'popular'} {_audio_popular} {else} {if $ownerId > 0} {_playlists} {$owner->getMorphedName("genitive", false)} {else} {_playlists_group} {/if} {/if} {/block} {block header}
{_my_audios_small}
{$owner->getCanonicalName()} » {_audios}
{_audios} » {_audio_new}
{_audios} » {_audio_popular}
{_audios} » {if $isMy}{_my_playlists}{else}{_playlists}{/if}
{/block} {block content} {* ref: https://archive.li/P32em *} {include "bigplayer.xml"}
{include "../components/error.xml", description => $ownerId > 0 ? ($ownerId == $thisUser->getId() ? tr("no_audios_thisuser") : tr("no_audios_user")) : tr("no_audios_club")}
{include "player.xml", audio => $audio, club => $club}
{include "../components/paginator.xml", conf => (object) [ "page" => $page, "count" => $audiosCount, "amount" => sizeof($audios), "perPage" => $perPage ?? OPENVK_DEFAULT_PER_PAGE, "atBottom" => true, ]}
{include "../components/error.xml", description => $ownerId > 0 ? ($ownerId == $thisUser->getId() ? tr("no_playlists_thisuser") : tr("no_playlists_user")) : tr("no_playlists_club")}
{include "../components/paginator.xml", conf => (object) [ "page" => $page, "count" => $playlistsCount, "amount" => sizeof($playlists), "perPage" => $perPage ?? OPENVK_DEFAULT_PER_PAGE, "atBottom" => true, ]}
{include "tabs.xml"}
{/block}