postview.ascx
来自「个人博客系统」· ASCX 代码 · 共 29 行
ASCX
29 行
<%@ Control Language="C#" AutoEventWireup="true" EnableViewState="false" Inherits="BlogEngine.Core.Web.Controls.PostViewBase" %>
<div class="post xfolkentry">
<h1><a href="<%=Post.RelativeLink %>" class="taggedlink"><%=Post.Title %></a></h1>
<span class="author">by <a href="<%=VirtualPathUtility.ToAbsolute("~/") + "author/" + Post.Author %>.aspx"><%=Post.Author %></a></span>
<span class="pubDate"><%=Post.DateCreated %></span>
<%-- <div class="text"><%=Body %></div> This has been depreciated so please don't use it anymore. --%>
<%-- Instead use the line below --%>
<div class="text"><asp:PlaceHolder ID="BodyContent" runat="server" /></div>
<div class="bottom">
<%=Rating %>
<p class="tags">Tags: <%=TagLinks(", ") %></p>
<p class="categories"><%=CategoryLinks(" | ") %></p>
</div>
<div class="footer">
<div class="bookmarks">
<a rel="nofollow" href="mailto:?subject=<%=Post.Title %>&body=Thought you might like this: <%=Post.AbsoluteLink.ToString() %>">E-mail</a> |
<a rel="nofollow" href="http://www.dotnetkicks.com/submit?url=<%=Server.UrlEncode(Post.AbsoluteLink.ToString()) %>&title=<%=Server.UrlEncode(Post.Title) %>">Kick it!</a> |
<a rel="nofollow" href="http://www.dzone.com/links/add.html?url=<%=Server.UrlEncode(Post.AbsoluteLink.ToString()) %>&title=<%=Server.UrlEncode(Post.Title) %>">DZone it!</a> |
<a rel="nofollow" href="http://del.icio.us/post?url=<%=Server.UrlEncode(Post.AbsoluteLink.ToString()) %>&title=<%=Server.UrlEncode(Post.Title) %>">del.icio.us</a>
</div>
<%=AdminLinks %>
<a rel="bookmark" href="<%=Post.PermaLink %>">Permalink</a> |
<a rel="nofollow" href="<%=Post.RelativeLink %>#comment"><%=Resources.labels.comments %> (<%=Post.ApprovedComments.Count %>)</a> |
<a rel="nofollow" href="<%=CommentFeed %>">Post RSS<asp:Image runat="Server" ImageUrl="~/pics/rssbutton.gif" AlternateText="RSS comment feed" style="margin-left:3px" /></a>
</div>
</div>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?