silverstripe-blog/templates/SilverStripe/Blog/Model/Layout/Blog.ss

45 lines
1.1 KiB
Scheme
Raw Normal View History

<% require css('silverstripe/blog: client/dist/styles/main.css') %>
2015-03-04 23:20:47 +01:00
<div class="blog-entry content-container <% if $SideBarView %>unit size3of4<% end_if %>">
2015-11-12 00:20:11 +01:00
<article>
<h1>
<% if $ArchiveYear %>
<%t SilverStripe\\Blog\\Model\\Blog.Archive 'Archive' %>:
2015-11-12 00:20:11 +01:00
<% if $ArchiveDay %>
$ArchiveDate.Nice
<% else_if $ArchiveMonth %>
$ArchiveDate.format('F, Y')
<% else %>
$ArchiveDate.format('Y')
<% end_if %>
<% else_if $CurrentTag %>
<%t SilverStripe\\Blog\\Model\\Blog.Tag 'Tag' %>: $CurrentTag.Title
2015-11-12 00:20:11 +01:00
<% else_if $CurrentCategory %>
<%t SilverStripe\\Blog\\Model\\Blog.Category 'Category' %>: $CurrentCategory.Title
2015-11-12 00:20:11 +01:00
<% else %>
$Title
<% end_if %>
</h1>
<div class="content">$Content</div>
<% if $PaginatedList.Exists %>
<% loop $PaginatedList %>
2017-09-20 23:10:21 +02:00
<% include SilverStripe\\Blog\\PostSummary %>
2015-11-12 00:20:11 +01:00
<% end_loop %>
<% else %>
<p><%t SilverStripe\\Blog\\Model\\Blog.NoPosts 'There are no posts' %></p>
2015-11-12 00:20:11 +01:00
<% end_if %>
</article>
$Form
$CommentsForm
<% with $PaginatedList %>
2017-09-20 23:10:21 +02:00
<% include SilverStripe\\Blog\\Pagination %>
2015-03-04 23:20:47 +01:00
<% end_with %>
</div>
2017-09-20 23:10:21 +02:00
<% include SilverStripe\\Blog\\BlogSideBar %>