PageRenderTime 46ms CodeModel.GetById 22ms RepoModel.GetById 0ms app.codeStats 0ms

/BlogEngine/BlogEngine.NET/themes/Standard/PostView.ascx

#
ASP.NET | 32 lines | 27 code | 5 blank | 0 comment | 3 complexity | 6a865efb1e15718e6f1d7c2ac758f508 MD5 | raw file
Possible License(s): LGPL-2.1, Apache-2.0, BSD-3-Clause
  1. <%@ Control Language="C#" AutoEventWireup="true" EnableViewState="false" Inherits="BlogEngine.Core.Web.Controls.PostViewBase" %>
  2. <div class="post xfolkentry" id="post<%=Index %>">
  3. <h1><a href="<%=Post.RelativeLink %>" class="taggedlink"><%=Server.HtmlEncode(Post.Title) %></a></h1>
  4. <span class="author">by <a href="<%=VirtualPathUtility.ToAbsolute("~/") + "author/" + BlogEngine.Core.Utils.RemoveIllegalCharacters(Post.Author) %>.aspx"><%=Post.AuthorProfile != null ? Post.AuthorProfile.DisplayName : Post.Author %></a></span>
  5. <span class="pubDate"><%=Post.DateCreated.ToString("d. MMMM yyyy HH:mm") %></span>
  6. <div class="text"><asp:PlaceHolder ID="BodyContent" runat="server" /></div>
  7. <div class="bottom">
  8. <%=Rating %>
  9. <p class="tags">Tags: <%=TagLinks(", ") %></p>
  10. <p class="categories"><%=CategoryLinks(" | ") %></p>
  11. </div>
  12. <div class="footer">
  13. <div class="bookmarks">
  14. <a rel="nofollow" title="Index <%=Index %>" target="_blank" href="http://www.dotnetkicks.com/submit?url=<%=Server.UrlEncode(Post.AbsoluteLink.ToString()) %>&amp;title=<%=Server.UrlEncode(Post.Title) %>">Submit to DotNetKicks...</a>
  15. </div>
  16. <%=AdminLinks %>
  17. <% if (BlogEngine.Core.BlogSettings.Instance.ModerationType == BlogEngine.Core.BlogSettings.Moderation.Disqus)
  18. { %>
  19. <a rel="nofollow" href="<%=Post.PermaLink %>#disqus_thread"><%=Resources.labels.comments %></a>
  20. <%}
  21. else
  22. { %>
  23. <a rel="bookmark" href="<%=Post.PermaLink %>" title="<%=Server.HtmlEncode(Post.Title) %>">Permalink</a> |
  24. <a rel="nofollow" href="<%=Post.RelativeLink %>#comment"><%=Resources.labels.comments %> (<%=Post.ApprovedComments.Count %>)</a>
  25. <%} %>
  26. </div>
  27. </div>