mirror of
https://github.com/a2nt/silverstripe-webpack.git
synced 2024-10-22 17:05:31 +02:00
FIX: Blog profile template
This commit is contained in:
parent
273c4e805c
commit
38090f14c1
@ -1,23 +1,49 @@
|
||||
<% require css('silverstripe/blog: client/dist/styles/main.css') %>
|
||||
<div id="PageContainer" class="page{$CSSClass} action{$Action}">
|
||||
<% include Content ExcludeHeader=true %>
|
||||
|
||||
<div class="blog-entry content-container <% if $SideBarView %>unit size3of4<% end_if %>">
|
||||
<div class="page-content">
|
||||
<div class="element page-header-element d-block">
|
||||
<div class="element-container $DefaultContainer">
|
||||
<%t SilverStripe\\Blog\\Model\\Blog.PostsByUser 'Posts by {firstname} {surname} for {title}' firstname=$CurrentProfile.FirstName surname=$CurrentProfile.Surname title=$Title %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<% include SilverStripe\\Blog\\MemberDetails %>
|
||||
<% if $PaginatedList.Exists %>
|
||||
<div class="list_blogpost">
|
||||
<% loop $PaginatedList %>
|
||||
<div class="element element__blogpost element__blogpost__short">
|
||||
<div class="element-container $Top.DefaultContainer">
|
||||
<% include SilverStripe\Blog\Includes\BlogPostInfo %>
|
||||
</div>
|
||||
</div>
|
||||
<% end_loop %>
|
||||
</div>
|
||||
<% else %>
|
||||
<div class="element element__no_blogposts">
|
||||
<div class="element-container $DefaultContainer">
|
||||
<p class="blog__no-posts alert alert-info alert-block">
|
||||
<%t SilverStripe\\Blog\\Model\\Blog.NoPosts 'There are no posts' %>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<% end_if %>
|
||||
|
||||
<% if $PaginatedList.Exists %>
|
||||
<h2><%t SilverStripe\\Blog\\Model\\Blog.PostsByUser 'Posts by {firstname} {surname} for {title}' firstname=$CurrentProfile.FirstName surname=$CurrentProfile.Surname title=$Title %></h2>
|
||||
<% loop $PaginatedList %>
|
||||
<% include SilverStripe\\Blog\\PostSummary %>
|
||||
<% end_loop %>
|
||||
<% end_if %>
|
||||
|
||||
$Form
|
||||
$CommentsForm
|
||||
|
||||
<% with $PaginatedList %>
|
||||
<% include SilverStripe\\Blog\\Pagination %>
|
||||
<% end_with %>
|
||||
<div class="element element__pagination">
|
||||
<div class="element-container $DefaultContainer">
|
||||
<% with $PaginatedList %>
|
||||
<% include Objects\Pagination %>
|
||||
<% end_with %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<% if $CommentsForm %>
|
||||
<div class="element element__comments blog__comments">
|
||||
<div class="element-container $DefaultContainer">
|
||||
$CommentsForm
|
||||
</div>
|
||||
</div>
|
||||
<% end_if %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<% include SilverStripe\\Blog\\BlogSideBar %>
|
||||
<%-- include SilverStripe\\Blog\\BlogSideBar --%>
|
||||
|
Loading…
Reference in New Issue
Block a user