// Token: 0x060013C1 RID: 5057 RVA: 0x00079510 File Offset: 0x00077710
        public static void RenderThemeImageStart(TextWriter writer, ThemeFileId themeFileId, string styleClass, bool renderBaseTheme, ISessionContext sessionContext)
        {
            Theme theme = renderBaseTheme ? ThemeManager.BaseTheme : sessionContext.Theme;

            if (!sessionContext.IsBasicExperience && theme.ShouldUseCssSprites(themeFileId))
            {
                writer.Write("<img src=\"");
                ThemeManager.RenderThemeFileUrl(writer, theme.Id, ThemeFileId.Clear1x1);
                writer.Write("\" class=\"csimg ");
                writer.Write(theme.GetThemeFileClass(themeFileId));
                if (!string.IsNullOrEmpty(styleClass))
                {
                    writer.Write(" ");
                    writer.Write(styleClass);
                }
            }
            else
            {
                writer.Write("<img src=\"");
                ThemeManager.RenderThemeFileUrl(writer, theme.Id, themeFileId, sessionContext.IsBasicExperience);
                if (!string.IsNullOrEmpty(styleClass))
                {
                    writer.Write("\" class=\"");
                    writer.Write(styleClass);
                }
            }
            writer.Write("\" ");
        }
Exemplo n.º 2
0
 // Token: 0x060000A6 RID: 166 RVA: 0x00004A86 File Offset: 0x00002C86
 public static void RenderBaseThemeFileUrl(TextWriter writer, ThemeFileId themeFileId, bool useCDN)
 {
     if (writer == null)
     {
         throw new ArgumentNullException("writer");
     }
     ThemeManager.RenderThemeFileUrl(writer, (int)themeFileId, false, useCDN);
 }
Exemplo n.º 3
0
        // Token: 0x060014C0 RID: 5312 RVA: 0x0007E684 File Offset: 0x0007C884
        public static string GetThemeFileUrl(uint themeId, ThemeFileId themeFileId, bool isBasicExperience)
        {
            StringBuilder stringBuilder = new StringBuilder(40);

            using (StringWriter stringWriter = new StringWriter(stringBuilder))
            {
                ThemeManager.RenderThemeFileUrl(stringWriter, themeId, (int)themeFileId, isBasicExperience);
            }
            return(stringBuilder.ToString());
        }
Exemplo n.º 4
0
        // Token: 0x060014C3 RID: 5315 RVA: 0x0007E700 File Offset: 0x0007C900
        public static string GetBaseThemeFileUrl(ThemeFileId themeFileId)
        {
            StringBuilder stringBuilder = new StringBuilder(40);

            if (ThemeManager.baseTheme != null)
            {
                using (StringWriter stringWriter = new StringWriter(stringBuilder))
                {
                    ThemeManager.RenderThemeFileUrl(stringWriter, ThemeManager.baseTheme.Id, themeFileId);
                }
            }
            return(stringBuilder.ToString());
        }
 // Token: 0x060013C5 RID: 5061 RVA: 0x00079608 File Offset: 0x00077808
 public static void RenderCssLink(TextWriter writer, HttpRequest request, ISessionContext sessionContext, bool phase1Only)
 {
     writer.Write("<link type=\"text/css\" rel=\"stylesheet\" href=\"");
     SessionContextUtilities.RenderThemeFileUrl(writer, ThemeFileId.PremiumCss, sessionContext);
     writer.Write("\">");
     writer.Write("<link type=\"text/css\" rel=\"stylesheet\" href=\"");
     SessionContextUtilities.RenderCssFontThemeFileUrl(writer, sessionContext);
     writer.Write("\">");
     writer.Write("<link type=\"text/css\" rel=\"stylesheet\" href=\"");
     ThemeManager.RenderThemeFileUrl(writer, sessionContext.Theme.Id, ThemeFileId.CssSpritesCss);
     writer.Write("\">");
     if (!phase1Only)
     {
         writer.Write("<link type=\"text/css\" rel=\"stylesheet\" href=\"");
         ThemeManager.RenderThemeFileUrl(writer, sessionContext.Theme.Id, ThemeFileId.CssSpritesCss2);
         writer.Write("\">");
     }
 }
Exemplo n.º 6
0
 // Token: 0x060014BD RID: 5309 RVA: 0x0007E643 File Offset: 0x0007C843
 public static void RenderThemeFileUrl(TextWriter writer, uint themeId, ThemeFileId themeFileId, bool isBasicExperience)
 {
     ThemeManager.RenderThemeFileUrl(writer, themeId, (int)themeFileId, isBasicExperience, true);
 }
Exemplo n.º 7
0
 // Token: 0x060014BC RID: 5308 RVA: 0x0007E638 File Offset: 0x0007C838
 public static void RenderThemeFileUrl(TextWriter writer, uint themeId, ThemeFileId themeFileId)
 {
     ThemeManager.RenderThemeFileUrl(writer, themeId, themeFileId, false);
 }
 // Token: 0x060013B8 RID: 5048 RVA: 0x0007938D File Offset: 0x0007758D
 public static void RenderThemeFileUrl(TextWriter writer, int themeFileIndex, ISessionContext sessionContext)
 {
     ThemeManager.RenderThemeFileUrl(writer, sessionContext.Theme.Id, themeFileIndex, sessionContext.IsBasicExperience);
 }