PageRenderTime 29ms CodeModel.GetById 24ms app.highlight 1ms RepoModel.GetById 2ms 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
 1<%@ Control Language="C#" AutoEventWireup="true" EnableViewState="false" Inherits="BlogEngine.Core.Web.Controls.PostViewBase" %>
 2
 3<div class="post xfolkentry" id="post<%=Index %>">
 4  <h1><a href="<%=Post.RelativeLink %>" class="taggedlink"><%=Server.HtmlEncode(Post.Title) %></a></h1>
 5  <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>
 6  <span class="pubDate"><%=Post.DateCreated.ToString("d. MMMM yyyy HH:mm") %></span>
 7  
 8  <div class="text"><asp:PlaceHolder ID="BodyContent" runat="server" /></div>
 9  <div class="bottom">
10    <%=Rating %>
11    <p class="tags">Tags: <%=TagLinks(", ") %></p>
12    <p class="categories"><%=CategoryLinks(" | ") %></p>
13  </div>
14
15  <div class="footer">    
16    <div class="bookmarks">
17      <a rel="nofollow" href="mailto:?subject=<%=Post.Title %>&amp;body=I thought that you might find this interesting: <%=Post.AbsoluteLink.ToString() %>">E-Mail</a> | 
18      <a rel="nofollow" href="http://www.dotnetkicks.com/submit?url=<%=Server.UrlEncode(Post.AbsoluteLink.ToString()) %>&amp;title=<%=Server.UrlEncode(Post.Title) %>">Kick it!</a> | 
19      <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> | 
20      <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>      
21    </div>
22    
23    <%=AdminLinks %>
24    
25    <% if (BlogEngine.Core.BlogSettings.Instance.ModerationType == BlogEngine.Core.BlogSettings.Moderation.Disqus)
26       { %>
27    <a rel="nofollow" href="<%=Post.PermaLink %>#disqus_thread"><%=Resources.labels.comments %></a>
28    <%}
29       else
30       { %>
31    <a rel="bookmark" href="<%=Post.PermaLink %>" title="<%=Server.HtmlEncode(Post.Title) %>">Permalink</a> |
32    <a rel="nofollow" href="<%=Post.RelativeLink %>#comment"><%=Resources.labels.comments %> (<%=Post.ApprovedComments.Count %>)</a>   
33    <%} %>
34    </div>
35</div>