Ejemplo n.º 1
0
 public object ToHtml(PageSectionContext ctx)
 {
     return(new XElement(
                "section",
                SectionContentsToHtml(ctx)
                ));
 }
Ejemplo n.º 2
0
 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)
                    )
                ));
 }
Ejemplo n.º 3
0
 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
                    ""
                    )
                ));
 }
Ejemplo n.º 4
0
        public override object SectionContentsToHtml(PageSectionContext ctx)
        {
            ctx.ExternalReg.HtmlPages.Register(Page);

            return(Page.ToHtml(ctx.ExternalReg));
        }
Ejemplo n.º 5
0
 public abstract object SectionContentsToHtml(PageSectionContext ctx);
Ejemplo n.º 6
0
        public override object SectionContentsToHtml(PageSectionContext ctx)
        {
            ctx.PageCtx.Website.ExternalReg.Pdfs.Register(Pdf);

            return(Pdf.ToHtml(ctx.PageCtx.Website.ExternalReg));
        }
Ejemplo n.º 7
0
 public override object SectionContentsToHtml(PageSectionContext ctx)
 {
     return(Snippet.ToHtml(ctx.ExternalReg));
 }
Ejemplo n.º 8
0
        public override object SectionContentsToHtml(PageSectionContext ctx)
        {
            ctx.ExternalReg.Images.Register(Images);

            return(Images.Select(x => x.ToHtml(ctx.ExternalReg)));
        }