2022-03-29 13:30:31 -04:00
|
|
|
<div class="container">
|
2022-11-26 17:51:45 -05:00
|
|
|
{foreach $feed->items as $item}
|
2022-03-29 13:30:31 -04:00
|
|
|
<article class="media">
|
|
|
|
<figure class="media-left">
|
|
|
|
<p class="image is-64x64">
|
2022-11-26 16:25:48 -05:00
|
|
|
<img class="is-rounded" src="{url_stream($item->author->avatarThumb)}" />
|
2022-03-29 13:30:31 -04:00
|
|
|
</p>
|
|
|
|
</figure>
|
|
|
|
<div class="media-content">
|
2022-10-24 14:38:31 -04:00
|
|
|
<p>
|
2023-07-04 10:39:53 -04: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 14:38:31 -04: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)}
|
2023-09-29 07:29:20 -04:00
|
|
|
{include './common/tags.latte', challenges: $item->challenges}
|
2022-10-24 14:38:31 -04:00
|
|
|
{/if}
|
2023-09-29 07:29:20 -04:00
|
|
|
<p class="mb-2 mt-2" n:ifcontent>{render_desc($item->desc, $item->textExtra ?? [])|noescape}</p>
|
|
|
|
{include './common/audio.latte', songTitle: $item->music->title, url: $item->music->playUrl}
|
2022-10-24 14:38:31 -04:00
|
|
|
{include './common/stats.latte', playCount: $item->stats->playCount, diggCount: $item->stats->diggCount, commentCount: $item->stats->commentCount, shareCount: $item->stats->shareCount}
|
2022-03-29 13:30:31 -04:00
|
|
|
<div class="has-text-centered">
|
2023-04-01 09:48:27 -04:00
|
|
|
{include './common/content.latte', item: $item, isAutoplay: false, isBig: false}
|
2022-03-29 13:30:31 -04:00
|
|
|
</div>
|
2023-04-08 06:03:33 -04:00
|
|
|
{if isset($item->video->playAddr) && $item->video->playAddr !== ""}
|
2023-04-05 11:09:22 -04:00
|
|
|
<!-- Download links, not shown if item is a gallery -->
|
2023-01-25 15:06:59 -05: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}
|
2023-04-05 11:09:22 -04:00
|
|
|
{/if}
|
2023-01-25 15:06:59 -05: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 14:14:48 -04:00
|
|
|
<div class="has-text-centered">
|
|
|
|
{embed '../details.latte', title: "Details"}
|
|
|
|
{block content}
|
2023-06-12 09:20:51 -04: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 14:14:48 -04:00
|
|
|
{/block}
|
|
|
|
{/embed}
|
|
|
|
</div>
|
2022-03-29 13:30:31 -04:00
|
|
|
</div>
|
|
|
|
</article>
|
|
|
|
{/foreach}
|
2022-11-26 17:51:45 -05:00
|
|
|
{if empty($feed->items)}
|
2022-03-29 13:30:31 -04:00
|
|
|
<p class="title">No items sent by TikTok!</p>
|
|
|
|
{/if}
|
|
|
|
</div>
|
|
|
|
{include './common/controls.latte'}
|