proxitok/templates/views/video.latte

81 lines
3.1 KiB
Plaintext
Raw Permalink Normal View History

2022-04-10 10:10:48 +00:00
{layout "../layouts/{$layout}.latte"}
2022-01-08 15:03:57 +00:00
2022-11-26 22:51:45 +00:00
{var $og = $info->meta->og}
{var $og_content = $item->video->originCover}
{var $og_url = url_video_internal($info->detail->uniqueId, $item->id)}
{if !empty($item->desc)}
{var $title = trim($item->desc)}
{/if}
2022-01-25 13:08:31 +00:00
{block content}
2023-04-01 13:48:27 +00:00
<div class="columns is-centered is-vcentered">
2022-11-18 15:48:51 +00:00
<div class="column has-text-centered">
2023-04-01 13:48:27 +00:00
{include '../components/themes/common/content.latte', item: $item, isAutoplay: true, isBig: true}
</div>
2022-09-25 17:53:00 +00:00
<div class="column">
<div class="box">
2022-11-18 15:48:51 +00:00
<article class="media">
<figure class="media-left">
<p class="image is-64x64">
2022-11-26 22:51:45 +00:00
<img src="{url_stream($info->detail->avatarThumb)}" />
2022-11-18 15:48:51 +00:00
</p>
</figure>
<div class="media-content">
<p>
2022-11-26 22:51:45 +00:00
<strong>{$info->detail->nickname}</strong>
2022-11-18 15:48:51 +00:00
<small>
2022-11-26 22:51:45 +00:00
<a href="{url_user($info->detail->uniqueId)}">@{$info->detail->uniqueId}</a>
2022-11-18 15:48:51 +00:00
</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 11:29:20 +00:00
{include '../components/themes/common/tags.latte', challenges: $item->challenges}
2022-11-18 15:48:51 +00:00
{/if}
<div class="content">
<p n:ifcontent>{render_desc($item->desc, $item->textExtra ?? [])|noescape}</p>
2023-09-29 11:29:20 +00:00
{include '../components/themes/common/audio.latte', songTitle: $item->music->title, url: $item->music->playUrl}
2022-11-18 15:48:51 +00:00
{include '../components/themes/common/stats.latte', playCount: $item->stats->playCount, diggCount: $item->stats->diggCount, commentCount: $item->stats->commentCount, shareCount: $item->stats->shareCount}
<div class="has-text-centered">
2022-11-26 22:51:45 +00:00
{include '../components/themes/common/share.latte', uniqueId: $info->detail->uniqueId, id: $item->id}
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 -->
2022-11-26 22:51:45 +00:00
{include '../components/themes/common/download.latte', playAddr: $item->video->playAddr, id: $item->id, uniqueId: $info->detail->uniqueId}
{/if}
2022-11-18 15:48:51 +00:00
</div>
</div>
</div>
</article>
</div>
2023-03-06 20:20:14 +00:00
{if !empty($item->comments)}
<div class="box">
<p class="is-size-5 has-text-centered">Comments</p>
{foreach $item->comments as $comment}
<article class="media">
<figure class="media-left">
<p class="image is-64x64">
<img src="{url_stream($comment->user->avatar_thumb->url_list[0])}" />
</p>
</figure>
<div class="media-content">
<div class="content">
<p>
<strong>{$comment->user->unique_id}</strong>
<small>
<a href="{url_user($comment->user->unique_id)}">@{$comment->user->nickname}</a>
</small>
<small title="{date('M d, Y H:i:s e', $comment->create_time)}">{date('M d, Y', $comment->create_time)}</small>
<br>
{$comment->text}
</p>
</div>
<p>{include '../components/icon.latte', icon: 'heart', text: number($comment->digg_count)}</p>
</div>
</article>
{/foreach}
</div>
{/if}
2022-01-08 15:03:57 +00:00
</div>
2022-01-25 13:08:31 +00:00
</div>
{/block}