16 lines
648 B
PHP
16 lines
648 B
PHP
@if (isset($video))
|
|
<div class="brand__video">
|
|
<div class="brand__video-btn play-button"></div>
|
|
@php
|
|
$videoUrl = strpos($video, 'https') === 0 ? $video : ($type === 'youtube' ? 'https://www.youtube.com/embed/' : 'https://player.vimeo.com/video/') . $video;
|
|
@endphp
|
|
|
|
<div class="video-inlaid" type="{{ $type }}" href="{{ $videoUrl }}">
|
|
<a class="cn-cookie-link" id="youtube-warning" href="" rel="nofollow">
|
|
<strong class="text-underline text-bold text-normal text-danger">
|
|
{{ __('cookie-notice.custom.' . $type . '.warning') }}
|
|
</strong>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
@endif
|