Saturday, May 5, 2012

SharePoint and HTML5 Technical Implementation


Publishing Definitions



public static class PublishingDefinitions
    {
        public static string HTML5SectionOpen = "<section>";
        public static string HTML5SectionClose = "</section>";

        public static string XHTMLSectionOpen = "<div class=\"section\">";
       
        public static string HTML5ArticleOpen = "<article>";
        public static string HTML5ArticleClose = "</article>";

        public static string XHTMLArticleOpen = "<div class=\"article\">";
       
        public static string HTML5ASideOpen = "<aside>";
        public static string HTML5ASideClose = "</aside>";

        public static string XHTMLASideOpen = "<div class=\"aside\">";

        public static string HTML5FooterOpen = "<footer>";
        public static string HTML5FooterClose = "</footer>";

        public static string XHTMLFooterOpen = "<div class=\"footer\">";

        public static string HTML5HeaderOpen = "<header>";
        public static string HTML5HeaderClose = "</header>";

        public static string XHTMLHeaderOpen = "<div class=\"header\">";

        public static string HTML5NavOpen = "<nav>";
        public static string HTML5NavClose = "</nav>";

        public static string XHTMLNavOpen = "<div class=\"nav\">";

        public static string XHTMLDivTagClose = "</div>";

        public static string GeneralMasterPageSuffix = ".master";
        public static string HTML5MasterPageSuffix = "_html5";
        public static string XHTMLMasterPageSuffix = "_xhtml";
        public static string DefaultMasterPageFileName = "WiersemaMaster_xhtml.master";

        public static string MasterPageDirectory = "/_catalogs/masterpage/";

        public enum TagTypes
        {
            header, section, article, aside, footer, nav
        }
    }

No comments:

Post a Comment