13 lines
868 B
PHP
13 lines
868 B
PHP
@php $uniqueID = uniqid(); @endphp
|
|
<div class="cn-youtube w-100 ratio ratio-16x9" data-id="{{ $videoId }}"
|
|
@isset($width) data-width="{{ $width }}" @endisset
|
|
@isset($height) data-height="{{ $height }}" @endisset>
|
|
<a class="video-frame" data-newtab="{{ $linkNewTab }}"
|
|
href="@if (!$linkNewTab) https://www.youtube.com/embed/{{ $videoId }} @else https://www.youtube.com/watch?v={{ $videoId }} @endif"
|
|
@if (!$linkNewTab) data-type="{{ $type }}" data-frame="{{ route('fo.frame', ['frame' => $type]) }}" @else target="_blank" @endif>
|
|
<img class="video-thumbnail ratio ratio-16x9 rounded-4" src="{{ $picture }}" title="{{ $title }}"
|
|
alt="{{ $alt }}">
|
|
<i
|
|
class="video-play-button fa-solid fa-circle-play position-absolute top-50 start-50 translate-middle fa-2xl text-tertiary bg-white"></i>
|
|
</a>
|
|
</div>
|