Skip to content

Commit

Permalink
API Stop using deprecated API
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Nov 24, 2022
1 parent a23749c commit ca782e2
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion templates/BreadcrumbsTemplate.ss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</a>
</li>
<% loop $Pages %>
<% if $Last %>
<% if $IsLast %>
<li class="breadcrumb-item active">$MenuTitle.XML</li>
<% else %>
<li class="breadcrumb-item"><a href="$Link">$MenuTitle.XML</a></li>
Expand Down
2 changes: 1 addition & 1 deletion templates/CommentsInterface.ss
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<% if $PagedComments %>
<ul class="comments-list list-unstyled root-level">
<% loop $PagedComments %>
<li class="comment $EvenOdd<% if FirstLast %> $FirstLast <% end_if %> $SpamClass">
<li class="comment $EvenOdd<% if $FirstLast %> $FirstLast <% end_if %> $SpamClass">
<% include CommentsInterface_singlecomment %>
</li>
<% end_loop %>
Expand Down
2 changes: 1 addition & 1 deletion templates/Includes/BlogPostMeta.ss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<p class="meta-info" itemscope itemtype="http://schema.org/BlogPosting">
<% if $Credits %>
<% loop $Credits %><% if not $First && not $Last %>, <% end_if %><% if not $First && $Last %><% if $TotalItems > '2' %>,<% end_if %> <%t BlogPostMeta_ss.AND "and" %> <% end_if %><% if $URLSegment %><a href="$URL">$Name.XML</a><% else %>$Name.XML<% end_if %><% end_loop %>
<% loop $Credits %><% if not $IsFirst && not $IsLast %>, <% end_if %><% if not $IsFirst && $IsLast %><% if $TotalItems > '2' %>,<% end_if %> <%t BlogPostMeta_ss.AND "and" %> <% end_if %><% if $URLSegment %><a href="$URL">$Name.XML</a><% else %>$Name.XML<% end_if %><% end_loop %>
<% end_if %>

<% if $PublishDate %>
Expand Down
2 changes: 1 addition & 1 deletion templates/Includes/CommentReplies.ss
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<% if $Replies %>
<ul class="comments-list level-{$Depth} list-unstyled">
<% loop $Replies %>
<li class="comment $EvenOdd<% if FirstLast %> $FirstLast <% end_if %> $SpamClass">
<li class="comment $EvenOdd<% if $FirstLast %> $FirstLast <% end_if %> $SpamClass">
<% include CommentsInterface_singlecomment %>
</li>
<% end_loop %>
Expand Down
6 changes: 3 additions & 3 deletions templates/SilverStripe/Blog/Includes/EntryMeta.ss
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
<% if $Categories.exists %>
<%t Blog.PostedIn "Posted in" %>
<% loop $Categories %>
<a href="$Link" title="$Title">$Title</a><% if not Last %>, <% end_if %>
<a href="$Link" title="$Title">$Title</a><% if not $IsLast %>, <% end_if %>
<% end_loop %>
<% end_if %>
<% if $Categories && $Tags %><br /><% end_if %>
<% if $Tags.exists %>
<%t Blog.Tagged "Tagged" %>
<% loop $Tags %>
<a href="$Link" title="$Title">$Title</a><% if not Last %>, <% end_if %>
<a href="$Link" title="$Title">$Title</a><% if not $IsLast %>, <% end_if %>
<% end_loop %>
<% end_if %>
</p>
Expand All @@ -20,7 +20,7 @@

<% if $Credits %>
<%t Blog.By "by" %>
<% loop $Credits %><% if not $First && not $Last %>, <% end_if %><% if not $First && $Last %> <%t Blog.AND "and" %> <% end_if %><% if $URLSegment %><a href="$URL">$Name.XML</a><% else %>$Name.XML<% end_if %><% end_loop %>
<% loop $Credits %><% if not $IsFirst && not $IsLast %>, <% end_if %><% if not $IsFirst && $IsLast %> <%t Blog.AND "and" %> <% end_if %><% if $URLSegment %><a href="$URL">$Name.XML</a><% else %>$Name.XML<% end_if %><% end_loop %>
<% end_if %>

<% if $Comments.exists %>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<nav aria-hidden="true">
<ul class="step-buttons mt-4">
<% loop $Steps %>
<li class="step-button-wrapper<% if $First %> current<% end_if %>" data-for="$Name">
<li class="step-button-wrapper<% if $IsFirst %> current<% end_if %>" data-for="$Name">
<%-- Remove js-align class to remove javascript positioning --%>
<button class="btn btn-secondary rounded btn-md step-button-jump js-align" disabled="disabled" data-step="$Pos"><% if $Top.ButtonText %>$Top.ButtonText <% end_if %>$Pos</button>
</li>
Expand Down

0 comments on commit ca782e2

Please sign in to comment.