silverstripe-blog/templates/ArchiveWidget.ss
Naomi Guyer d33e209ee5 ENHANCEMENT: Template changes
Updated template elements for 3.0.
Made html follow proper heading hierarchy
Optimized generated html so it can be more easily styled.
2012-08-17 15:55:08 +12:00

21 lines
366 B
Scheme

<% if DisplayMode == month %>
<ul class="archiveMonths">
<% loop Dates %>
<li>
<a href="$Link">
$Date.Format(F) $Date.Year
</a>
</li>
<% end_loop %>
</ul>
<% else %>
<ul class="archiveYears">
<% loop Dates %>
<li>
<a href="$Link">
$Date.Year<% if not Last %>,<% end_if %>
</a>
</li>
<% end_loop %>
</ul>
<% end_if %>