mirror of
https://github.com/openvk/openvk
synced 2024-12-23 17:12:01 +03:00
7d450c18fd
* Make audio player pizdatey * Simple ajax routing (scripts are broken) * Fix most common script problems pt1 * Add ajax player Осталось пофиксить скрипты и создание плейлистов! Ну и ещё некоторые хуйни по аудиозаписям которые я задумал. * Add context menu for audios * Refactor audio upload page * Repair playlists * Fix main problems * Midnight teme adaptation * Stupid bug fix * Save audios list in da localstorage and fix msgbox * Fix time setting * add beforeUnload event * Stupid bugs fix * update page footer on transition * fix wall publihing * fix 500 on non existent page
43 lines
1.5 KiB
XML
43 lines
1.5 KiB
XML
{extends "../@layout.xml"}
|
|
|
|
{block title}
|
|
{_gift_select}
|
|
{/block}
|
|
|
|
{block header}
|
|
<a href="{$user->getURL()}">{$user->getCanonicalName()}</a> »
|
|
<a href="/gifts?act=pick&user={$user->getId()}">{_gift_select}</a> »
|
|
<a href="/gifts?act=pick&user={$user->getId()}">{_collections}</a> »
|
|
{$cat->getName(tr("__lang"))}
|
|
{/block}
|
|
|
|
{block content}
|
|
<div class="gift_grid scroll_container">
|
|
<a href='/gifts?act=confirm&user={$user->getId()}&pack={$cat->getId()}&elid={$gift->getId()}' n:foreach="$gifts as $gift" n:class="scroll_node, gift_sel, !$gift->canUse($thisUser) ? disabled" data-gift="{$gift->getId()}">
|
|
<img class="gift_pic" src="{$gift->getImage(2)}" alt="{_gift}" loading=lazy />
|
|
|
|
<strong class="gift_price">
|
|
{if $gift->isFree()}
|
|
{_free_gift}
|
|
{else}
|
|
{tr('coins', $gift->getPrice())}
|
|
{/if}
|
|
</strong>
|
|
|
|
<strong class="gift_limit">
|
|
{if $gift->getUsagesLeft($thisUser) !== INF}
|
|
{tr("gifts_left", $gift->getUsagesLeft($thisUser))}
|
|
{/if}
|
|
</strong>
|
|
</a>
|
|
</div>
|
|
|
|
<div style="padding: 8px;">
|
|
{include "../components/paginator.xml", conf => (object) [
|
|
"page" => $page,
|
|
"count" => $count,
|
|
"amount" => sizeof($gifts),
|
|
"perPage" => OPENVK_DEFAULT_PER_PAGE,
|
|
]}
|
|
</div>
|
|
{/block}
|