/
ResourceManifest.cs
20 lines (17 loc) · 1.17 KB
/
ResourceManifest.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
using Orchard.UI.Resources;
namespace Lombiq.Layouts
{
public class ResourceManifest : IResourceManifestProvider
{
public void BuildManifests(ResourceManifestBuilder builder)
{
var manifest = builder.Add();
manifest.DefineScript("Lombiq.Layouts.LayoutEditor").SetUrl("LayoutEditor.js").SetDependencies("Layouts.LayoutEditor");
manifest.DefineStyle("OwlCarouselTheme").SetBasePath(manifest.BasePath + "Content/OwlCarousel/").SetUrl("owl.theme.css");
manifest.DefineStyle("OwlCarouselCustomTheme").SetUrl("owl-carousel-custom-theme.min.css", "owl-carousel-custom-theme.css").SetDependencies("OwlCarouselTheme");
manifest.DefineStyle("OwlCarouselTransitions").SetBasePath(manifest.BasePath + "Content/OwlCarousel/").SetUrl("owl.transitions.css");
manifest.DefineStyle("OwlCarousel").SetBasePath(manifest.BasePath + "Content/OwlCarousel/").SetUrl("owl.carousel.css").SetDependencies("OwlCarouselCustomTheme", "OwlCarouselTransitions");
manifest.DefineScript("OwlCarousel").SetUrl("owl.carousel.min.js", "owl.carousel.js").SetDependencies("jQuery");
}
}
}