/// <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));
            }
        }
Beispiel #2
0
        /// <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());
        }
Beispiel #3
0
 public PostEventArgs(Post post, PostRenderLocation renderLocation)
 {
     _post           = post;
     _renderLocation = renderLocation;
 }
 public PostEventArgs(Post post, PostRenderLocation renderLocation)
 {
     _post = post;
     _renderLocation = renderLocation;
 }
Beispiel #5
0
        /// <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();
        }
 /// <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));
     }
 }