/// <summary> /// Executes the RenderPostBody event /// </summary> /// <param name="sb">StringBuilder containing the current content for Post.Body</param> /// <param name="post">Current Post</param> /// <param name="renderLocation">The location this event is executing</param> internal void ExecuteRenderPostBody(StringBuilder sb, Post post, PostRenderLocation renderLocation) { RenderPostBodyEventHandler re = Events[renderPostBodyObject] as RenderPostBodyEventHandler; if (re != null) { re(sb, new PostEventArgs(post, renderLocation)); } }
/// <summary> /// Combines both the PostBody and ExtendedBody properties. This should be used by RSS feeds and /// other non-html locations. It will show the full post. /// </summary> public string RenderBody(PostRenderLocation renderLocation) { StringBuilder sb = new StringBuilder(); sb.Append(PostBody); sb.Append(ExtendedBody); // Allow plugins to append aditional content to the post body Events.Instance().ExecuteRenderPostBody(sb, this, renderLocation); return(sb.ToString()); }
public PostEventArgs(Post post, PostRenderLocation renderLocation) { _post = post; _renderLocation = renderLocation; }
/// <summary> /// Combines both the PostBody and ExtendedBody properties. This should be used by RSS feeds and /// other non-html locations. It will show the full post. /// </summary> public string RenderBody(PostRenderLocation renderLocation) { StringBuilder sb = new StringBuilder(); sb.Append(PostBody); sb.Append(ExtendedBody); // Allow plugins to append aditional content to the post body Events.Instance().ExecuteRenderPostBody(sb, this, renderLocation); return sb.ToString(); }