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

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

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

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