36 行
1.8 KiB
PHP
36 行
1.8 KiB
PHP
@foreach ($res['plvid']->data as $p)
|
|
<div class="element-{{ $p->position }}">
|
|
<my-video-playlist-element-miniature>
|
|
<div class="video{{ $p->position == $res['pos'] ? ' active' : '' }}">
|
|
<span style="margin: 4px;">{{ $p->position }}</span>
|
|
<my-video-thumbnail>
|
|
<a class="video-thumbnail-loli" href="/w/p/{{ $res['id'] }}?playlistPosition={{ $p->position }}&resume=true">
|
|
<img alt="" aria-label="{{ $p->video->name }}" src="{{ env('PEER_URI') }}{{ $p->video->thumbnailPath }}" />
|
|
<div class="video-thumbnail-duration-overlay">{{ ptDuration($p->video->duration) }}</div>
|
|
</a>
|
|
</my-video-thumbnail>
|
|
<div class="video-info">
|
|
<div class="video-info-header">
|
|
<a tabindex="-1" class="video-info-name" title="{{ $p->video->name }}" href="/w/p/{{ $res['id'] }}?playlistPosition={{ $p->position }}&resume=true">
|
|
{{ $p->video->nameShort }}
|
|
</a>
|
|
</div>
|
|
<span class="video-miniature-created-at-views">
|
|
<my-date-toggle>
|
|
<span class="date-toggle" title="{{ date('Y/m/d', strtotime($p->video->originallyPublishedAt)) }}">{{ date('Y年m月d日', strtotime($p->video->originallyPublishedAt)) }}</span>
|
|
</my-date-toggle>
|
|
<span class="views" title="">
|
|
•
|
|
<my-video-views-counter>
|
|
<span title="">{{ $p->video->views }} 回再生</span>
|
|
</my-video-views-counter>
|
|
</span>
|
|
</span>
|
|
<span tabindex="-1" class="video-info-account">{{ $p->video->channel->displayName }}</span>
|
|
<span tabindex="-1" class="video-info-timestamp"></span>
|
|
</div>
|
|
</div>
|
|
</my-video-playlist-element-miniature>
|
|
</div>
|
|
@endforeach
|