This repository has been archived by the owner on Mar 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPostView.ascx
47 lines (45 loc) · 2.23 KB
/
PostView.ascx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<%@ Control Language="C#" AutoEventWireup="true" EnableViewState="false" Inherits="BlogEngine.Core.Web.Controls.PostViewBase" %>
<div class="post" id="post<%=Index %>">
<div class="sidebar">
<div class="wrapper-date">
<div class="d-day"><%=Post.DateCreated.Day.ToString() %></div>
<div class="d-mon"><%=Post.DateCreated.ToString("MMM") %></div>
<div class="d-year"><%=Post.DateCreated.ToString("yyyy") %></div>
</div>
<p class="authorname">
<a href="<%=VirtualPathUtility.ToAbsolute("~/") + "author/" + BlogEngine.Core.Utils.RemoveIllegalCharacters(Post.Author) %>.aspx"><%=Post.AuthorProfile != null ? Post.AuthorProfile.DisplayName : Post.Author %></a>
</p>
<br />
<% if (Post.AuthorProfile != null && !string.IsNullOrEmpty(Post.AuthorProfile.PhotoURL))
{ %>
<p><img src="<%=Post.AuthorProfile.PhotoURL %>" alt="<%= !string.IsNullOrEmpty(Post.AuthorProfile.DisplayName) ? Post.AuthorProfile.DisplayName : Post.Author %>'s Avatar" /></p>
<%} %>
<p class="notes">
<a rel="nofollow" href="<%=Post.RelativeLink %>#comment"><%=Post.ApprovedComments.Count %> Notes</a>
</p>
</div>
<div class="content text">
<h1 class ="post-title"><a href="<%=Post.RelativeLink %>" class="taggedlink"><%=Server.HtmlEncode(Post.Title) %></a></h1>
<div class="go"><asp:PlaceHolder ID="BodyContent" runat="server" /></div>
<div class="description">
<% if (Post.Tags.Count > 0)
{ %>
<p class="tags">Tags: <%=TagLinks(" ") %></p>
<%} %>
<p class="categories"><%=CategoryLinks(", ") %></p>
<%=Rating %>
</div>
</div>
<div class="footer">
<%=AdminLinks %>
<% if (BlogEngine.Core.BlogSettings.Instance.ModerationType == BlogEngine.Core.BlogSettings.Moderation.Disqus)
{ %>
<a rel="nofollow" href="<%=Post.PermaLink %>#disqus_thread"><%=Resources.labels.comments %></a>
<%}
else
{ %>
<a rel="bookmark" href="<%=Post.PermaLink %>" title="<%=Server.HtmlEncode(Post.Title) %>">Permalink</a> |
<a rel="nofollow" href="<%=Post.RelativeLink %>#comment"><%=Post.ApprovedComments.Count %> <%=Resources.labels.comments %> </a>
<%} %>
</div>
</div>