weblogcommentrsswriter.cs
来自「本系统是在asp版《在线文件管理器》的基础上设计制作」· CS 代码 · 共 48 行
CS
48 行
//------------------------------------------------------------------------------
// <copyright company="Telligent Systems">
// Copyright (c) Telligent Systems Corporation. All rights reserved.
// </copyright>
//------------------------------------------------------------------------------
using System;
using System.Collections;
using CommunityServer.Components;
namespace CommunityServer.Blogs.Components
{
/// <summary>
/// Summary description for WeblogCommentRssWriter.
/// </summary>
public class WeblogCommentRssWriter : BaseWeblogRssWriter
{
public WeblogCommentRssWriter(WeblogPost post, ArrayList posts, Weblog w, string baseUrl):base(posts,w, baseUrl)
{
CurrentPost = post;
}
protected WeblogPost CurrentPost = null;
protected override void WriteChannel()
{
string desc = CurrentPost.HasExcerpt ? CurrentPost.Excerpt : CurrentPost.FormattedBody;
desc = Formatter.RemoveHtml(desc,250);
BuildChannel(BlogUrls.Instance().Post(CurrentPost),desc, CurrentWeblog.Langugage);
}
protected override string Title
{
get
{
return CurrentPost.Subject;
}
}
protected override void PostComments(Post p)
{
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?