Esempio n. 1
0
 public static void RenderBaseThemeFileUrl(TextWriter writer, ThemeFileId themeFileId)
 {
     ThemeManager.RenderBaseThemeFileUrl(writer, themeFileId, true);
 }
Esempio n. 2
0
 public static string GetThemeFileUrl(uint themeId, ThemeFileId themeFileId)
 {
     return(ThemeManager.GetThemeFileUrl(themeId, themeFileId, false));
 }
Esempio n. 3
0
 public static void RenderThemeFileUrl(TextWriter writer, uint themeId, ThemeFileId themeFileId, bool isBasicExperience)
 {
     ThemeManager.RenderThemeFileUrl(writer, themeId, (int)themeFileId, isBasicExperience, true);
 }
Esempio n. 4
0
 public static void RenderThemeFileUrl(TextWriter writer, uint themeId, ThemeFileId themeFileId)
 {
     ThemeManager.RenderThemeFileUrl(writer, themeId, themeFileId, false);
 }
Esempio n. 5
0
        private static bool RenderThemeFilePath(TextWriter writer, uint themeId, int themeFileIndex, bool isBasicExperience, bool useCDN)
        {
            if (writer == null)
            {
                throw new ArgumentNullException("writer");
            }
            if (themeId == 4294967295U)
            {
                return(false);
            }
            Theme theme = ThemeManager.themes[(int)((UIntPtr)themeId)];

            if (useCDN && !string.IsNullOrEmpty(Globals.ContentDeliveryNetworkEndpoint) && ThemeManager.CheckFileExtensionsForCDN(ThemeFileList.GetNameFromId(themeFileIndex)))
            {
                writer.Write(Globals.ContentDeliveryNetworkEndpoint);
            }
            writer.Write(ThemeManager.themesFolderPath);
            bool flag = ThemeFileList.IsResourceFile(themeFileIndex);

            if (flag)
            {
                writer.Write(ThemeManager.ResourcesFolderName);
            }
            else if (isBasicExperience)
            {
                writer.Write(ThemeManager.BasicFilesFolderName);
            }
            else
            {
                writer.Write(theme.FolderName);
            }
            writer.Write("/");
            return(!flag);
        }
Esempio n. 6
0
 private static bool RenderThemeFilePath(TextWriter writer, uint themeId, int themeFileIndex)
 {
     return(ThemeManager.RenderThemeFilePath(writer, themeId, themeFileIndex, false, true));
 }