📄 baseforumsrsswriter.cs
字号:
//------------------------------------------------------------------------------
// <copyright company="Telligent Systems">
// Copyright (c) Telligent Systems Corporation. All rights reserved.
// </copyright>
//------------------------------------------------------------------------------
using System;
using System.Collections;
using CommunityServer.Components;
namespace CommunityServer.Discussions.Components
{
/// <summary>
/// Summary description for BaseForumsRssWriter.
/// </summary>
public abstract class BaseForumsRssWriter : CommunityServer.Components.BaseRssWriter
{
public BaseForumsRssWriter(ArrayList posts, Section s, string baseUrl) : base(posts,s, baseUrl)
{
}
protected override string BuildLink(Post p)
{
return Globals.GetSiteUrls().Post(p.PostID);
}
protected override string EnclosureUrl(PostAttachmentMetaData pa)
{
return pa.FileName;
}
protected override string GetUserName(Post p)
{
User u = p.User;
if (u == null)
u = Users.GetUser(p.UserID, p.Username, false, true);
if (u != null)
return u.DisplayName;
else
return p.Username;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -