Skip to content
Snippets Groups Projects
Commit 9a04f6e6 authored by alexisben's avatar alexisben
Browse files

refacto

parent c118b2ad
No related branches found
No related tags found
No related merge requests found
......@@ -19,8 +19,11 @@
{{ end }}
<div class="video">
{{ $partial := printf "blocks/templates/video/%s" .video.platform }}
{{ partial $partial . }}
{{ if eq .video.platform "default" }}
{{ partial "PrepareHTML" .video.iframe }}
{{ else }}
{{ partial "blocks/templates/video/lazy-container" .video }}
{{ end }}
</div>
{{ end }}
......
<div class="lazy-video-player">
<button class="lazy-video-player__play" title ="{{- i18n "blocks.video.play" -}}" aria-label="{{- i18n "blocks.video.play" -}}"></button>
{{ if .video.poster }}
<img src="{{ .video.poster }}" alt="{{ .video.title }}" loading="lazy">
{{ end }}
</div>
<div class="video-container">
<iframe data-unloaded-src="{{ .video.embed_with_defaults }}" title="{{ .video.title }}" autoplay="true" allow="autoplay; fullscreen"></iframe>
</div>
\ No newline at end of file
<iframe data-unloaded-src="{{ .embed_with_defaults }}" title="{{ .title }}" autoplay="true" allow="autoplay; fullscreen"></iframe>
\ No newline at end of file
{{ partial "PrepareHTML" .video.iframe }}
\ No newline at end of file
<div class="lazy-video-player">
<button class="lazy-video-player__play" title ="{{- i18n "blocks.video.play" -}}" aria-label="{{- i18n "blocks.video.play" -}}"></button>
</div>
<div class="video-container">
<iframe data-unloaded-src="{{ .video.embed_with_defaults }}" title="{{ .video.title }}" allow="autoplay; fullscreen"></iframe>
</div>
\ No newline at end of file
<iframe data-unloaded-src="{{ .embed_with_defaults }}" title="{{ .title }}" allow="autoplay; fullscreen"></iframe>
<div class="lazy-video-player">
<button class="lazy-video-player__play" title ="{{- i18n "blocks.video.play" -}}" aria-label="{{- i18n "blocks.video.play" -}}"></button>
{{ if .video.poster }}
<img src="{{ .video.poster }}" alt="{{ .video.title }}" loading="lazy">
{{ end }}
</div>
<div class="video-container">
<iframe data-unloaded-src="{{ .video.embed_with_defaults }}" title="{{ .video.title }}" allow="autoplay; fullscreen"></iframe>
</div>
\ No newline at end of file
<iframe data-unloaded-src="{{ .embed_with_defaults }}" title="{{ .title }}" allow="autoplay; fullscreen"></iframe>
<div class="lazy-video-player">
<button class="lazy-video-player__play" title ="{{- i18n "blocks.video.play" -}}" aria-label="{{- i18n "blocks.video.play" -}}"></button>
{{ if .video.poster }}
<img src="{{ .video.poster }}" alt="{{ .video.title }}" loading="lazy">
{{ end }}
</div>
<div class="video-container">
<iframe data-unloaded-src="{{ .video.embed_with_defaults }}" title="{{ video.title }}" allowfullscreen allow="autoplay"></iframe>
</div>
\ No newline at end of file
<iframe data-unloaded-src="{{ .embed_with_defaults }}" title="{{ .title }}" allowfullscreen allow="autoplay"></iframe>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment