2024-08-14 17:47:05 +02:00

34 lines
1.3 KiB
Scheme
Executable File

<% if $Video || $Image || $VideoFile %>
<% if $VideoFile %>
<video preload="none" autoplay muted loop playsinline>
<source src="{$VideoFile.Link}" type="video/mp4" />
Your browser does not support the video tag.
</video>
<% else_if $Video %>
<div class="video">
$Video.EmbedHTML.RAW
</div>
<% else %>
<% if $Image || $ImageURL %>
<span class="img">
<img class="glide__img"
<% if not $IsFirst %>loading="lazy"<% end_if %>
src="<% if $ImageURL %>$ImageURL<% else %>$Image.FocusFill($SlideWidth,$SlideHeight).URL<% end_if %>"
alt="<% if $Headline %>$Headline.XML<% end_if %>"
width="$SlideWidth"
height="$SlideHeight"
/>
</span>
<% end_if %>
<% if $SlideLinkID %>
<% with $SlideLink %>
<% include NavItem_link MenuTitle=$Title, Link=$LinkURL, LinkClass="stretched-link slide-link slide-link__media" %>
<% end_with %>
<% else_if $SlideLinkURL %>
<% include NavItem_link MenuTitle=$Headline, Link=$SlideLinkURL, LinkClass="stretched-link slide-link slide-link__media" %>
<% end_if %>
<% end_if %>
<% end_if %>