2023-04-01 09:48:27 -04:00
|
|
|
{if !isset($item->imagePost)}
|
|
|
|
<video controls n:attr="autoplay => $isAutoplay" poster="{url_stream($item->video->originCover)}" preload="none">
|
|
|
|
<source src="{url_stream($item->video->playAddr)}" type="video/mp4" />
|
|
|
|
</video>
|
|
|
|
{else}
|
|
|
|
<div n:class="columns, is-centered, is-vcentered, is-multiline, $isBig ? is-mobile">
|
|
|
|
{foreach $item->imagePost->images as $image}
|
|
|
|
{if $isBig}
|
|
|
|
<div class="column is-half">
|
|
|
|
{else}
|
|
|
|
<div class="column is-one-third-tablet is-one-third-desktop is-one-quarter-widescreen is-one-fifth-fullhd">
|
|
|
|
{/if}
|
|
|
|
<figure class="image">
|
2023-04-01 10:35:17 -04:00
|
|
|
<img width="{$image->imageWidth}" height="{$image->imageHeight}" src="{url_stream($image->imageURL->urlList[0])}" />
|
2023-04-01 09:48:27 -04:00
|
|
|
</figure>
|
|
|
|
</div>
|
|
|
|
{/foreach}
|
|
|
|
</div>
|
|
|
|
{/if}
|