silverstripe-blog/templates/Layout/BlogEntry.ss

23 lines
1.0 KiB
Scheme
Raw Normal View History

2012-05-21 04:58:26 +02:00
<% include BlogSideBar %>
<div id="BlogContent" class="typography">
<% include BreadCrumbs %>
<div class="blogEntry">
<h2 class="postTitle">$Title</h2>
<p class="authorDate"><% _t('BlogEntry_ss.POSTEDBY', 'Posted by') %> $Author.XML <% _t('BlogEntry_ss.POSTEDON', 'on') %> $Date.Long | $Comments.Count <% _t('BlogEntry_ss.COMMENTS', 'Comments') %></p>
2012-05-21 04:58:26 +02:00
<% if TagsCollection %>
<p class="tags">
<% _t('BlogEntry_ss.TAGS', 'Tags:') %>
2013-03-19 10:10:59 +01:00
<% loop TagsCollection %>
<a href="$Link" title="<% _t('BlogEntry_ss.VIEWALLPOSTTAGGED', 'View all posts tagged') %> '$Tag'" rel="tag">$Tag</a><% if not Last %>,<% end_if %>
2013-03-19 10:10:59 +01:00
<% end_loop %>
2012-05-21 04:58:26 +02:00
</p>
<% end_if %>
$Content
2012-05-21 04:58:26 +02:00
</div>
<% if IsOwner %><p class="edit-post"><a href="$EditURL" id="editpost" title="<% _t('BlogEntry_ss.EDITTHIS', 'Edit this post') %>"><% _t('BlogEntry_ss.EDITTHIS', 'Edit this post') %></a> | <a href="$Link(unpublishPost)" id="unpublishpost"><% _t('BlogEntry_ss.UNPUBLISHTHIS', 'Unpublish this post') %></a></p><% end_if %>
2012-05-21 04:58:26 +02:00
$PageComments
</div>