Nieuw nieuwsblokje: oembed

This commit is contained in:
2021-09-20 09:10:34 +02:00
parent 63eb54f609
commit a41bbbed40
2 changed files with 18 additions and 0 deletions

View File

@@ -446,3 +446,19 @@ a.fixed-height img {
.text-muted {
color: #7C7C7C;
}
.oembed {
height: auto;
padding-bottom: 56.25%;
position: relative;
width: 100%;
max-width: 100%;
}
.oembed iframe {
height: 100%;
left: 0;
position: absolute;
top: 0;
width: 100%;
}

View File

@@ -79,6 +79,8 @@
@endforeach
</ul>
</div>
@elseif($block->type == "oembed")
<div class="oembed" data-url="{{$block->url}}">{!!$block->html!!}</div>
@endif
@endforeach