Added overload to Script/Style/IRM.Include() to allow specifing the debug+release url for common .min versions.

Converted built-in themes to use Include() instead of a manifest for simplification.

--HG--
branch : dev
This commit is contained in:
Dave Reed
2010-09-30 18:20:54 -07:00
parent a411d686bf
commit 974bc5c894
14 changed files with 45 additions and 63 deletions

View File

@@ -10,36 +10,9 @@ namespace Orchard.Themes {
manifest.DefineScript("Switchable").SetUrl("jquery.switchable.js").SetDependencies("jQuery");
manifest.DefineStyle("Switchable").SetUrl("jquery.switchable.css");
// Resources for the built-in themes (under the orchard.web/themes directory)
// The manifest would normally go there rather than here, but orchard.web/themes
// is not registered with AutoFac.
manifest.DefineStyle("Admin").SetUrl("~/modules/orchard.themes/styles/admin.css");
manifest.DefineStyle("Classic").SetUrl("~/themes/classic/styles/site.css");
manifest.DefineStyle("Classic_Blog").SetUrl("~/themes/classic/styles/blog.css");
manifest.DefineStyle("ClassicDark").SetUrl("~/themes/classicdark/styles/site.css");
manifest.DefineStyle("ClassicDark_Blog").SetUrl("~/themes/classicdark/styles/blog.css");
manifest.DefineStyle("Contoso").SetUrl("~/themes/contoso/styles/site.css");
manifest.DefineStyle("Contoso_Search").SetUrl("~/themes/contoso/styles/search.css");
// todo: include and define the min.js version too
// todo: move EasySlider to common location
// todo: move EasySlider to common location, although it does not appear to be used anywhere right now
manifest.DefineScript("EasySlider").SetUrl("~/themes/contoso/scripts/easySlider.js").SetDependencies("jQuery");
manifest.DefineStyle("Corporate").SetUrl("~/themes/corporate/styles/site.css");
manifest.DefineStyle("Green").SetUrl("~/themes/green/styles/site.css");
manifest.DefineStyle("Green_Blog").SetUrl("~/themes/green/styles/blog.css");
manifest.DefineStyle("Green_YUI").SetUrl("~/themes/green/styles/yui.css");
manifest.DefineStyle("SafeMode").SetUrl("~/themes/safemode/styles/site.css");
manifest.DefineStyle("TheAdmin").SetUrl("~/themes/theadmin/styles/site.css");
manifest.DefineStyle("TheAdmin_IE").SetUrl("~/themes/theadmin/styles/ie.css");
manifest.DefineStyle("TheAdmin_IE6").SetUrl("~/themes/theadmin/styles/ie6.css");
manifest.DefineScript("TheAdmin").SetUrl("~/themes/theadmin/scripts/admin.js").SetDependencies("jQuery");
}
}
}