Skip to content

Commit

Permalink
FIX Use new method to get carousel items from agency-extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
robbieaverill committed Jan 30, 2018
1 parent c530c3d commit 024c78f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions templates/Includes/Carousel.ss
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
<% if $VisibleCarouselItems %>
<% if $CarouselItems %>

<%-- Determine if a carousel or single item --%>
<% if $VisibleCarouselItems.Count > 1 %>
<% if $CarouselItems.Count > 1 %>
<div id="carousel-slide" data-ride="carousel" class="carousel slide text-center">
<% else %>
<div class="carousel slide text-center carousel-static">
<% end_if %>

<div class="carousel-inner">
<% if $VisibleCarouselItems.Count > 1 %>
<% if $CarouselItems.Count > 1 %>

<div class="carousel-interface">

<div class="carousel-controls-wrapper">

<%-- Indicators --%>
<ol class="carousel-indicators" role="tablist">
<% loop $VisibleCarouselItems %>
<% loop $CarouselItems %>
<li data-target="#carousel-slide" data-slide-to="$Pos(0)" class="<% if $Pos == 1 %>active<% end_if %>" name="carousel-item-{$Pos}"></li>
<% end_loop %>
</ol>
Expand Down Expand Up @@ -48,7 +48,7 @@
</div>
<% end_if %>

<% loop $VisibleCarouselItems %>
<% loop $CarouselItems %>

<%-- Items --%>
<div class="<% if First %>active <% end_if %>item <% if $Image %>carousel-has-image<% end_if %>"
Expand Down

0 comments on commit 024c78f

Please sign in to comment.