gallerycommentrsswriter.cs

来自「community server 源码」· 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.Galleries.Components
{
	/// <summary>
	/// Summary description for WeblogCommentRssWriter.
	/// </summary>
	public class GalleryCommentRssWriter : BaseGalleryRssWriter
	{
		public GalleryCommentRssWriter(GalleryPost post, ArrayList posts, Gallery g, string baseUrl):base(posts,g, baseUrl)
		{
			CurrentPost = post;
		}

		protected GalleryPost CurrentPost = null;


		protected override void WriteChannel()
		{
			string desc = CurrentPost.HasExcerpt ? CurrentPost.Excerpt :  CurrentPost.RenderedBody(PostTarget.Syndication);
			desc = Formatter.RemoveHtml(desc,250);
			BuildChannel(GalleryUrls.Instance().ViewPicture(CurrentPost.Section.ApplicationKey, CurrentPost) ,desc, CurrentGallery.DefaultLanguage);
		}

		protected override string Title
		{
			get
			{
				return CurrentPost.Subject;
			}
		}

		protected override void PostComments(Post p)
		{
			
		}

	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?