PageRenderTime 3185ms CodeModel.GetById 29ms RepoModel.GetById 8ms app.codeStats 0ms

/BlogEngine/BlogEngine.NET/themes/TitaniumX/PostView.ascx

#
ASP.NET | 35 lines | 30 code | 5 blank | 0 comment | 3 complexity | 9aa5fe00b295258e3b0cd5085274bfe6 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" href="mailto:?subject=<%=Post.Title %>&amp;body=I thought that you might find this interesting: <%=Post.AbsoluteLink.ToString() %>">E-Mail</a> |
  15. <a rel="nofollow" href="http://www.dotnetkicks.com/submit?url=<%=Server.UrlEncode(Post.AbsoluteLink.ToString()) %>&amp;title=<%=Server.UrlEncode(Post.Title) %>">Kick it!</a> |
  16. <a rel="nofollow" href="http://www.dzone.com/links/add.html?url=<%=Server.UrlEncode(Post.AbsoluteLink.ToString()) %>&amp;title=<%=Server.UrlEncode(Post.Title) %>">DZone it!</a> |
  17. <a rel="nofollow" href="http://del.icio.us/post?url=<%=Server.UrlEncode(Post.AbsoluteLink.ToString()) %>&amp;title=<%=Server.UrlEncode(Post.Title) %>">del.icio.us</a>
  18. </div>
  19. <%=AdminLinks %>
  20. <% if (BlogEngine.Core.BlogSettings.Instance.ModerationType == BlogEngine.Core.BlogSettings.Moderation.Disqus)
  21. { %>
  22. <a rel="nofollow" href="<%=Post.PermaLink %>#disqus_thread"><%=Resources.labels.comments %></a>
  23. <%}
  24. else
  25. { %>
  26. <a rel="bookmark" href="<%=Post.PermaLink %>" title="<%=Server.HtmlEncode(Post.Title) %>">Permalink</a> |
  27. <a rel="nofollow" href="<%=Post.RelativeLink %>#comment"><%=Resources.labels.comments %> (<%=Post.ApprovedComments.Count %>)</a>
  28. <%} %>
  29. </div>
  30. </div>