Exemplo n.º 1
0
        public override Bundle Include(string virtualPath, params IItemTransform[] transforms)
        {
            if (webPart == null)
            {
                return(base.Include(virtualPath, transforms));
            }

            return(base.Include(webPart.MapPath(virtualPath), transforms));
        }
Exemplo n.º 2
0
        public static IHtmlString Render(IWebPart webPart, params string[] paths)
        {
            if (webPart == null)
            {
                return(Styles.Render(paths));
            }

            string[] tmp = new string[paths.Length];
            for (int i = 0; i < paths.Length; i++)
            {
                tmp[i] = webPart.MapPath(paths[i]);
            }
            return(Styles.Render(tmp));
        }
Exemplo n.º 3
0
 public WebPartStyleBundle(IWebPart webPart, string virtualPath, string cdnPath)
     : base(webPart == null ? virtualPath : webPart.MapPath(virtualPath), cdnPath)
 {
     this.webPart = webPart;
 }
Exemplo n.º 4
0
 public WebPartScriptBundle(IWebPart webPart, string virtualPath)
     : base(webPart == null ? virtualPath : webPart.MapPath(virtualPath))
 {
     this.webPart = webPart;
 }