public static List <KeyValuePair <string, string> > GetSkins(PortalInfo portalInfo, string skinRoot, SkinScope scope)
        {
            var skins = new List <KeyValuePair <string, string> >();

            switch (scope)
            {
            case SkinScope.Host:     //load host skins
                skins = GetHostSkins(skinRoot);
                break;

            case SkinScope.Site:     //load portal skins
                skins = GetPortalSkins(portalInfo, skinRoot);
                break;

            case SkinScope.All:
                skins = GetHostSkins(skinRoot);
                skins.AddRange(GetPortalSkins(portalInfo, skinRoot));
                break;
            }
            return(skins);
        }
 public static List<KeyValuePair<string, string>> GetSkins(PortalInfo portalInfo, string skinRoot, SkinScope scope)
 {
     var skins = new List<KeyValuePair<string, string>>();
     switch (scope)
     {
         case SkinScope.Host: //load host skins
             skins = GetHostSkins(skinRoot);
             break;
         case SkinScope.Site: //load portal skins
             skins = GetPortalSkins(portalInfo, skinRoot);
             break;
         case SkinScope.All:
             skins = GetHostSkins(skinRoot);
             skins.AddRange(GetPortalSkins(portalInfo, skinRoot));
             break;
     }
     return skins;
 }
Exemple #3
0
 public static SkinManager GetSkinManager(SkinScope scope)
 {
     return SiteSkinManager.GetSiteSkinManager();
 }