Exemplo n.º 1
0
        public String GetUserSkin(IMember user, int queryStringSkinId, String cssVersion)
        {
            int   skinId = getSkinId(user, queryStringSkinId);
            ISkin skin   = GetById(skinId);

            String skinPath = skin.GetSkinPath() + "?v=" + cssVersion;
            String result   = string.Format("<link href=\"{0}\" rel=\"stylesheet\" type=\"text/css\" />", skinPath);

            if (skin.MemberId > 0)
            {
                result += Environment.NewLine;
                result += string.Format("<style>{0}</style>", skin.Body);
                result += Environment.NewLine;
            }
            return(result);
        }