private static SiteSkin createSkin() { SiteSkin s = new SiteSkin(); s.Name = lang.get("default"); s.StylePath = "1/skin.css"; s.insert(); return(s); }
private void saveCustomCss(String newCss) { SiteSkin current = GetCurrent(); SiteSkin skin = getCustomerCss(); if (skin == null) { skin = new SiteSkin(); skin.Name = customName; skin.ThumbUrl = current.ThumbUrl; skin.StylePath = current.StylePath; skin.Body = newCss; skin.insert(); } else { skin.Body = newCss; skin.update(); } setCurrentSiteSkin(skin); }