/// <summary>
 /// Initializes a new instance of the <see cref="ServingEventArgs"/> class.
 ///     Creates a new instance of the class and applies the specified body, serving location and serving content by.
 /// </summary>
 /// <param name="body">
 /// The body string.
 /// </param>
 /// <param name="location">
 /// The location.
 /// </param>
 /// <param name="contentBy">
 /// The content By.
 /// </param>
 public ServingEventArgs(string body, ServingLocation location, ServingContentBy contentBy)
 {
     this.Body      = body;
     this.Location  = location;
     this.ContentBy = contentBy;
 }
Example #2
0
 /// <summary>
 /// Creates a new instance of the class and applies the specified body.
 /// </summary>
 public ServingEventArgs(string body, ServingLocation location)
 {
     _Body     = body;
     _Location = location;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ServingEventArgs"/> class. 
 ///     Creates a new instance of the class and applies the specified body, serving location and serving content by.
 /// </summary>
 /// <param name="body">
 /// The body string.
 /// </param>
 /// <param name="location">
 /// The location.
 /// </param>
 /// <param name="contentBy">
 /// The content By.
 /// </param>
 public ServingEventArgs(string body, ServingLocation location, ServingContentBy contentBy)
 {
     this.Body = body;
     this.Location = location;
     this.ContentBy = contentBy;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ServingEventArgs"/> class.
 ///     Creates a new instance of the class and applies the specified body and serving location.
 /// </summary>
 /// <param name="body">
 /// The body string.
 /// </param>
 /// <param name="location">
 /// The location.
 /// </param>
 public ServingEventArgs(string body, ServingLocation location)
     : this(body, location, ServingContentBy.Unspecified)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ServingEventArgs"/> class. 
 ///     Creates a new instance of the class and applies the specified body and serving location.
 /// </summary>
 /// <param name="body">
 /// The body string.
 /// </param>
 /// <param name="location">
 /// The location.
 /// </param>
 public ServingEventArgs(string body, ServingLocation location)
     : this(body, location, ServingContentBy.Unspecified)
 {
 }
Example #6
0
 /// <summary>
 /// Creates a new instance of the class and applies the specified body, serving location and serving content by.
 /// </summary>
 public ServingEventArgs(string body, ServingLocation location, ServingContentBy contentBy)
 {
     _Body      = body;
     _Location  = location;
     _ContentBy = contentBy;
 }
    private PostViewBase LoadPostView(string useControlNamed, bool showExcerpt, ServingLocation serving)
    {
        string query = Request.QueryString["theme"];
        string theme = !string.IsNullOrEmpty(query) ? query : BlogSettings.Instance.Theme;
        string path = string.Concat(Utils.RelativeWebRoot, "themes/", theme, "/", useControlNamed);
        //Control.MapPath()

        PostViewBase postView = (BlogEngine.Core.Web.Controls.PostViewBase)LoadControl(path);
        postView.ShowExcerpt = showExcerpt;// true;// BlogSettings.Instance.ShowDescriptionInPostList;
        postView.Post = Post;
        postView.ID = Post.Id.ToString().Replace("-", string.Empty);
        postView.Location = serving;
        postView.Index = this.Index;

        return postView;
    }
 /// <summary>
 /// Creates a new instance of the class and applies the specified body, serving location and serving content by.
 /// </summary>
 public ServingEventArgs(string body, ServingLocation location, ServingContentBy contentBy)
 {
     _Body = body;
     _Location = location;
     _ContentBy = contentBy;
 }
Example #9
0
 public ServingEventArgs(string body, ServingLocation location)
 {
     _Body = body;
       _Location = location;
 }