2022-03-29 13:30:31 -04:00
|
|
|
<div class="container">
|
2022-05-24 08:10:41 -04:00
|
|
|
{foreach $data->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>
|
|
|
|
<strong>{$item->author->nickname}</strong>
|
|
|
|
<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>{$item->desc}</p>
|
|
|
|
{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">
|
2022-09-25 13:53:00 -04:00
|
|
|
<video width="{$item->video->width}" height="{$item->video->height}" controls preload="none" poster="{url_stream($item->video->originCover)}">
|
|
|
|
<source src="{url_stream($item->video->playAddr)}" type="video/mp4" />
|
2022-03-29 13:30:31 -04:00
|
|
|
</video>
|
|
|
|
</div>
|
|
|
|
<div class="has-text-centered">
|
|
|
|
{include './common/share.latte', uniqueId: $item->author->uniqueId, id: $item->id}
|
|
|
|
{include './common/download.latte', playAddr: $item->video->playAddr, id: $item->id, uniqueId: $item->author->uniqueId}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</article>
|
|
|
|
{/foreach}
|
2022-05-24 08:10:41 -04:00
|
|
|
{if empty($data->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'}
|