16 lines
748 B
PHP
16 lines
748 B
PHP
@if (isset($video))
|
|
<div class="{{ isset($class) ? $class : 'brand__video'}}">
|
|
<div class="{{ isset($secondaryClass) ? $secondaryClass : 'brand__video-btn'}} play-button"></div>
|
|
@php
|
|
$videoUrl = ($video['type_video'] === 'youtube' ? 'https://www.youtube.com/embed/' : 'https://player.vimeo.com/video/') . $video['video'];
|
|
@endphp
|
|
|
|
<div class="video-inlaid h-100" type="{{ $video['type_video'] }}" 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.' . $video['type_video'] . '.warning') }}
|
|
</strong>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
@endif
|