Core/Shapes: creating static resource for html5.js

This commit is contained in:
Lombiq
2015-02-28 18:11:59 +01:00
committed by Benedek Farkas
parent 9c2e1f9e56
commit 9f9ed92fdd
2 changed files with 3 additions and 1 deletions

View File

@@ -8,6 +8,8 @@ namespace Orchard.Core.Shapes {
manifest.DefineStyle("Shapes").SetUrl("site.css"); // todo: missing
manifest.DefineStyle("ShapesSpecial").SetUrl("special.css");
manifest.DefineScript("Html5Shiv").SetUrl("html5.js");
manifest.DefineScript("Switchable").SetUrl("jquery.switchable.js")
.SetDependencies("jQuery")
.SetDependencies("ShapesBase");

View File

@@ -3,7 +3,7 @@
@using Orchard.UI.Resources;
@{
RegisterLink(new LinkEntry {Type = "image/x-icon", Rel = "shortcut icon", Href = Url.Content("~/modules/orchard.themes/Content/orchard.ico")});
Script.Include("html5.js").UseCondition("lt IE 9").AtHead();
Script.Require("Html5Shiv").UseCondition("lt IE 9").AtHead();
string title = Convert.ToString(Model.Title);
string siteName = Convert.ToString(WorkContext.CurrentSite.SiteName);