Adding $Up. prefix to $ColumnCount references within $Fieldlist loops

This commit is contained in:
Luke Fromhold 2018-10-23 19:06:55 +11:00
parent 9ceef59e1b
commit 364eb41754
2 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
<% loop $FieldList %> <% loop $FieldList %>
<% if $ColumnCount %> <% if $Up.ColumnCount %>
<div class="column-{$ColumnCount} $FirstLast"> <div class="column-{$Up.ColumnCount} $FirstLast">
$FieldHolder $FieldHolder
</div> </div>
<% else %> <% else %>

View File

@ -4,8 +4,8 @@
<% end_if %> <% end_if %>
<% loop $FieldList %> <% loop $FieldList %>
<% if $ColumnCount %> <% if $Up.ColumnCount %>
<div class="column-{$ColumnCount} $FirstLast"> <div class="column-{$Up.ColumnCount} $FirstLast">
$SmallFieldHolder $SmallFieldHolder
</div> </div>
<% else %> <% else %>