/// <summary> /// Generates a local url for the given post field. /// </summary> /// <param name="app">The application service</param> /// <param name="field">The field</param> /// <returns>The url</returns> public static string Url(this IApplicationService app, PostField field) { if (field != null) { return(Url(app, field.Post)); } return(""); }
public override string GetTitle() { if (!PostField.op_Inequality(this.get_Body(), null) || this.get_Body().get_Post() == null) { return("No post selected"); } return(this.get_Body().get_Post().get_Title()); }
public object Deserialize(string str) { stackVariable0 = new PostField(); if (!String.IsNullOrEmpty(str)) { stackVariable5 = new Guid?(new Guid(str)); } else { V_0 = null; stackVariable5 = V_0; } stackVariable0.set_Id(stackVariable5); return(stackVariable0); }
public Teaser() { PageLink = new PageField(); PostLink = new PostField(); }
/// <summary> /// Generates an absolute url for the given post field. /// </summary> /// <param name="app">The application service</param> /// <param name="field">The field</param> /// <returns>The url</returns> public static string AbsoluteUrl(this IApplicationService app, PostField field) { return($"{ AbsoluteUrlStart(app) }{ Url(app, field) }"); }
public Footer() { PageLink = new PageField(); PostLink = new PostField(); }
public Menu() { PageLink = new PageField(); PostLink = new PostField(); }