Skip to content

Commit

Permalink
post nav and related added.
Browse files Browse the repository at this point in the history
  • Loading branch information
farzindev committed Sep 12, 2016
1 parent 2b83052 commit e8b6433
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<%@ Control Language="C#" AutoEventWireup="true" EnableViewState="false" Inherits="BlogEngine.Core.Web.Controls.PostNavigationBase" %>
<div id="postnavigation" class="navigation-posts well-global clearfix">
<div class="text-left next-post">
<% if (!string.IsNullOrEmpty(NextPostUrl))
{ %>
<a href="<%=NextPostUrl %>" class="nav-next">&larr; <%=NextPostTitle %> </a>
<% } %>
</div>
<div class="text-right prev-post ">
<% if (!string.IsNullOrEmpty(PreviousPostUrl))
{ %>
<a href="<%=PreviousPostUrl %>" class="nav-prev"><%=PreviousPostTitle %> &rarr;</a>
<% } %>
</div>
</div>
12 changes: 12 additions & 0 deletions BlogEngine/BlogEngine.NET/Custom/Themes/Standard/RelatedPosts.ascx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<%@ Control Language="C#" AutoEventWireup="true" EnableViewState="false" Inherits="BlogEngine.Core.Web.Controls.RelatedPostsBase" %>
<div id="relatedPosts" class="related-posts well-global">
<h3 class="well-global-title"><%=Resources.labels.relatedPosts %></h3>
<ul class="list-unstyled">
<%foreach (var item in RelatedPostList)
{%>
<li><a href="<%=item.Link %>"><%=item.Title %></a>
<div><small class="text-muted"><%=item.Description %></small></div>
</li>
<% } %>
</ul>
</div>

0 comments on commit e8b6433

Please sign in to comment.