public object ToHtml(PageSectionContext ctx) { return(new XElement( "section", SectionContentsToHtml(ctx) )); }
public override object SectionContentsToHtml(PageSectionContext ctx) { return(new XElement( "div", new XAttribute("class", siteMapClass), new XElement( "div", new XAttribute("class", siteMapPartClass), PageToSiteMapPart(ctx.Website.Root) ) )); }
public override object SectionContentsToHtml(PageSectionContext ctx) { return(WebUtility.HtmlEncode( Regex.Replace( //Remove all special characters Text, @"\p{C}+", // "\p{C}" matches characters in Unicode category 'C' (AKA 'Other'). // See http://www.regular-expressions.info/unicode.html // and the column at the bottom right of http://www.unicode.org/charts/ //Source: https://stackoverflow.com/a/4501246/4149474 "" ) )); }
public override object SectionContentsToHtml(PageSectionContext ctx) { ctx.ExternalReg.HtmlPages.Register(Page); return(Page.ToHtml(ctx.ExternalReg)); }
public abstract object SectionContentsToHtml(PageSectionContext ctx);
public override object SectionContentsToHtml(PageSectionContext ctx) { ctx.PageCtx.Website.ExternalReg.Pdfs.Register(Pdf); return(Pdf.ToHtml(ctx.PageCtx.Website.ExternalReg)); }
public override object SectionContentsToHtml(PageSectionContext ctx) { return(Snippet.ToHtml(ctx.ExternalReg)); }
public override object SectionContentsToHtml(PageSectionContext ctx) { ctx.ExternalReg.Images.Register(Images); return(Images.Select(x => x.ToHtml(ctx.ExternalReg))); }