{foreach $feed->items as $item}

{if $item->author->verified} {include '../icon.latte', icon: 'check-o', text: $item->author->nickname} {else} {$item->author->nickname} {/if} @{$item->author->uniqueId} {date('M d, Y', $item->createTime)}

{if !empty($item->challenges)}

{include './common/tags.latte', challenges: $item->challenges}

{/if}

{render_desc($item->desc, $item->textExtra ?? [])|noescape}

Song: {$item->music->title}

{include './common/stats.latte', playCount: $item->stats->playCount, diggCount: $item->stats->diggCount, commentCount: $item->stats->commentCount, shareCount: $item->stats->shareCount}
{include './common/content.latte', item: $item, isAutoplay: false, isBig: false}
{if isset($item->video->playAddr) && $item->video->playAddr !== ""}

Download video

{include './common/download.latte', playAddr: $item->video->playAddr, id: $item->id, uniqueId: $item->author->uniqueId} {/if}

Share link

{include './common/share.latte', uniqueId: $item->author->uniqueId, id: $item->id}
{embed '../details.latte', title: "Details"} {block content}

Can duet: {bool_to_str(isset($item->duetEnabled) ? $item->duetEnabled : boolval($item->duetDisplay))}

Can stitch (add this video to other ones): {bool_to_str(isset($item->stitchEnabled) ? $item->stitchEnabled : boolval($item->stitchDisplay))}

Can be shared: {bool_to_str(isset($item->shareEnabled) ? $item->shareEnabled : boolval($item->shareDisplay))} {/block} {/embed}

{/foreach} {if empty($feed->items)}

No items sent by TikTok!

{/if}
{include './common/controls.latte'}