proxitok/templates/components/themes/default.latte

57 lines
2.4 KiB
Plaintext
Raw Normal View History

<div class="container">
2022-11-26 22:51:45 +00:00
{foreach $feed->items as $item}
<article class="media">
<figure class="media-left">
<p class="image is-64x64">
2022-11-26 21:25:48 +00:00
<img class="is-rounded" src="{url_stream($item->author->avatarThumb)}" />
</p>
</figure>
<div class="media-content">
2022-10-24 18:38:31 +00:00
<p>
2023-07-04 14:39:53 +00:00
<strong>
{if $item->author->verified}
{include '../icon.latte', icon: 'check-o', text: $item->author->nickname}
{else}
{$item->author->nickname}
{/if}
</strong>
2022-10-24 18:38:31 +00:00
<small>
<a href="{url_user($item->author->uniqueId)}">@{$item->author->uniqueId}</a>
</small>
<small title="{date('M d, Y H:i:s e', $item->createTime)}">{date('M d, Y', $item->createTime)}</small>
</p>
{if !empty($item->challenges)}
<p>{include './common/tags.latte', challenges: $item->challenges}</p>
{/if}
<p n:ifcontent>{render_desc($item->desc, $item->textExtra ?? [])|noescape}</p>
2023-04-01 13:48:27 +00:00
<p>Song: {$item->music->title}</p>
2023-04-01 16:45:10 +00:00
<audio controls preload="none" src="{url_stream($item->music->playUrl)}"></audio>
2022-10-24 18:38:31 +00:00
{include './common/stats.latte', playCount: $item->stats->playCount, diggCount: $item->stats->diggCount, commentCount: $item->stats->commentCount, shareCount: $item->stats->shareCount}
<div class="has-text-centered">
2023-04-01 13:48:27 +00:00
{include './common/content.latte', item: $item, isAutoplay: false, isBig: false}
</div>
2023-04-08 10:03:33 +00:00
{if isset($item->video->playAddr) && $item->video->playAddr !== ""}
<!-- Download links, not shown if item is a gallery -->
2023-01-25 20:06:59 +00:00
<p class="has-text-centered"><b>Download video</b></p>
{include './common/download.latte', playAddr: $item->video->playAddr, id: $item->id, uniqueId: $item->author->uniqueId}
{/if}
2023-01-25 20:06:59 +00:00
<p class="has-text-centered"><b>Share link</b></p>
{include './common/share.latte', uniqueId: $item->author->uniqueId, id: $item->id}
2023-04-02 18:14:48 +00:00
<div class="has-text-centered">
{embed '../details.latte', title: "Details"}
{block content}
2023-06-12 13:20:51 +00:00
<p>Can duet: {bool_to_str(isset($item->duetEnabled) ? $item->duetEnabled : boolval($item->duetDisplay))}</p>
<p>Can stitch (add this video to other ones): {bool_to_str(isset($item->stitchEnabled) ? $item->stitchEnabled : boolval($item->stitchDisplay))}</p>
<p>Can be shared: {bool_to_str(isset($item->shareEnabled) ? $item->shareEnabled : boolval($item->shareDisplay))}
2023-04-02 18:14:48 +00:00
{/block}
{/embed}
</div>
</div>
</article>
{/foreach}
2022-11-26 22:51:45 +00:00
{if empty($feed->items)}
<p class="title">No items sent by TikTok!</p>
{/if}
</div>
{include './common/controls.latte'}