Skip to content

Commit

Permalink
FEATURE mobile template work (#34)
Browse files Browse the repository at this point in the history
* remove alternating template
  • Loading branch information
jsirish authored Oct 18, 2023
1 parent 86bfe5f commit 6ac5090
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 43 deletions.
10 changes: 1 addition & 9 deletions templates/Dynamic/Elements/Features/Elements/ElementFeatures.ss
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,6 @@

<% if $FeaturesList %>
<div class="row g-0 element__features__list">
<% if $Alternate %>
<% loop $FeaturesList %>
<% include FeaturesListAlternating %>
<% end_loop %>
<% else %>
<% loop $FeaturesList %>
<% include FeaturesList %>
<% end_loop %>
<% end_if %>
<% include FeaturesList Top=$Top %>
</div>
<% end_if %>
32 changes: 17 additions & 15 deletions templates/Includes/FeaturesList.ss
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
<div class="card mb-3">
<div class="row g-0 feature-item">
<% if $Image %>
<div class="col-md-5">
<img src="$Image.FocusFill(800,550).URL" class="img-fluid rounded-start" alt="$Image.Title.ATT">
</div>
<div class="card-body col-md-7">
<% else %>
<div class="card-body col-md-12">
<% end_if %>
<% if $Title %><h3 class="card-title">$Title</h3><% end_if %>
<% if $Content %>
<div class="card-text">$Content</div>
<% loop $FeaturesList %>
<div class="card mb-3">
<div class="row g-0 feature-item">
<% if $Image %>
<div class="col-md-5">
<img src="$Image.FocusFill(800,550).URL" class="img-fluid" alt="$Image.Title.ATT">
</div>
<div class="card-body col-md-7<% if $Top.Alternate && $Even %> order-md-first<% end_if %>">
<% else %>
<div class="card-body col-md-12">
<% end_if %>
<% if $Title %><h3 class="card-title">$Title</h3><% end_if %>
<% if $Content %>
<div class="card-text">$Content</div>
<% end_if %>

<% if $ElementLink %>$ElementLink<% end_if %>
<% if $ElementLink %>$ElementLink<% end_if %>
</div>
</div>
</div>
</div>
<% end_loop %>
19 changes: 0 additions & 19 deletions templates/Includes/FeaturesListAlternating.ss

This file was deleted.

0 comments on commit 6ac5090

Please sign in to comment.