From 6ac5090024eaf8a72ad4f6b8b83832c8c1aa2f8f Mon Sep 17 00:00:00 2001 From: Jason Irish Date: Tue, 17 Oct 2023 22:51:45 -0500 Subject: [PATCH] FEATURE mobile template work (#34) * remove alternating template --- .../Features/Elements/ElementFeatures.ss | 10 +----- templates/Includes/FeaturesList.ss | 32 ++++++++++--------- templates/Includes/FeaturesListAlternating.ss | 19 ----------- 3 files changed, 18 insertions(+), 43 deletions(-) delete mode 100644 templates/Includes/FeaturesListAlternating.ss diff --git a/templates/Dynamic/Elements/Features/Elements/ElementFeatures.ss b/templates/Dynamic/Elements/Features/Elements/ElementFeatures.ss index e2bd52a..fc3af90 100644 --- a/templates/Dynamic/Elements/Features/Elements/ElementFeatures.ss +++ b/templates/Dynamic/Elements/Features/Elements/ElementFeatures.ss @@ -3,14 +3,6 @@ <% if $FeaturesList %>
- <% if $Alternate %> - <% loop $FeaturesList %> - <% include FeaturesListAlternating %> - <% end_loop %> - <% else %> - <% loop $FeaturesList %> - <% include FeaturesList %> - <% end_loop %> - <% end_if %> + <% include FeaturesList Top=$Top %>
<% end_if %> diff --git a/templates/Includes/FeaturesList.ss b/templates/Includes/FeaturesList.ss index 63464b7..713ff3e 100644 --- a/templates/Includes/FeaturesList.ss +++ b/templates/Includes/FeaturesList.ss @@ -1,19 +1,21 @@ -
-
- <% if $Image %> -
- $Image.Title.ATT -
-
- <% else %> -
- <% end_if %> - <% if $Title %>

$Title

<% end_if %> - <% if $Content %> -
$Content
+<% loop $FeaturesList %> +
+
+ <% if $Image %> +
+ $Image.Title.ATT +
+
+ <% else %> +
<% end_if %> + <% if $Title %>

$Title

<% end_if %> + <% if $Content %> +
$Content
+ <% end_if %> - <% if $ElementLink %>$ElementLink<% end_if %> + <% if $ElementLink %>$ElementLink<% end_if %> +
-
+<% end_loop %> diff --git a/templates/Includes/FeaturesListAlternating.ss b/templates/Includes/FeaturesListAlternating.ss deleted file mode 100644 index 55fb4fe..0000000 --- a/templates/Includes/FeaturesListAlternating.ss +++ /dev/null @@ -1,19 +0,0 @@ -
-
- <% if $Image %> -
- $Image.Title.ATT -
-
- <% else %> -
- <% end_if %> - <% if $Title %>

$Title

<% end_if %> - <% if $Content %> -
$Content
- <% end_if %> - - <% if $ElementLink %>$ElementLink<% end_if %> -
-
-