From 165c69b7577b9b0ccfd21087ca99e51f314ac00c Mon Sep 17 00:00:00 2001 From: Tony Air Date: Sat, 19 Jun 2021 20:13:41 +0200 Subject: [PATCH] FIX: SlideItem templates --- templates/Includes/SlideItem.ss | 21 +++++++++++++++++++++ templates/Includes/SlideItem_media.ss | 26 ++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100755 templates/Includes/SlideItem.ss create mode 100755 templates/Includes/SlideItem_media.ss diff --git a/templates/Includes/SlideItem.ss b/templates/Includes/SlideItem.ss new file mode 100755 index 0000000..efda1ef --- /dev/null +++ b/templates/Includes/SlideItem.ss @@ -0,0 +1,21 @@ +<% include SlideItem_media %> + +<% if $Content || $Headline || $CustomTitle || $Description || $SlideLinkID %> +
+ +
+<% end_if %> diff --git a/templates/Includes/SlideItem_media.ss b/templates/Includes/SlideItem_media.ss new file mode 100755 index 0000000..96eb291 --- /dev/null +++ b/templates/Includes/SlideItem_media.ss @@ -0,0 +1,26 @@ +<% if $Video || $Image %> + <% if $Video %> +
+ $Video.EmbedHTML.RAW +
+ <% else %> + <% if $Image || $ImageURL %> + + <% if $Headline %>$Headline.XML<% end_if %> + + <% 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 %>