mirror of
https://github.com/a2nt/cms-niceties.git
synced 2024-10-22 11:05:46 +02:00
FIX: Blog profile template
This commit is contained in:
parent
b2a0bce621
commit
8e5a785c54
@ -1,13 +1,13 @@
|
||||
<% cached 'blogauthorswidget', $List('SilverStripe\Blog\Model\BlogPost').max('LastEdited'), $List('SilverStripe\Blog\Model\BlogPost').count() %>
|
||||
<% if $Authors %>
|
||||
<div class="blog-post__credits">
|
||||
<% loop $Authors %>
|
||||
<% if $URLSegment && not $Up.ProfilesDisabled %>
|
||||
<a href="$URL" class="blog-post__credit">$Name.XML</a><% if not $Last %>,<% end_if %>
|
||||
<% else %>
|
||||
<span class="blog-post__credit">$Name.XML</span><% if not $Last %>,<% end_if %>
|
||||
<% end_if %>
|
||||
<% end_loop %>
|
||||
</div>
|
||||
<% end_if %>
|
||||
<% if $Authors %>
|
||||
<div class="blog-post__credits">
|
||||
<% loop $Authors %>
|
||||
<% if $URLSegment && not $Up.ProfilesDisabled %>
|
||||
<a href="$URL" class="blog-post__credit">$Name.XML</a>
|
||||
<% else %>
|
||||
<span class="blog-post__credit">$Name.XML</span>
|
||||
<% end_if %>
|
||||
<% end_loop %>
|
||||
</div>
|
||||
<% end_if %>
|
||||
<% end_cached %>
|
||||
|
Loading…
Reference in New Issue
Block a user