From 87b352e439c4be2af086a67f88a6bfcb787a4477 Mon Sep 17 00:00:00 2001 From: Sipke Schoorstra Date: Sat, 21 Feb 2015 12:27:28 +0100 Subject: [PATCH] Revert "#20983: Removing unneeded and wrong SafeMode Document template" This reverts commit 1c1bc9d8519f82a6cc8ed292436a4b0e69299532. --- .../Themes/SafeMode/Views/Document.cshtml | 23 +++++++++++++++++++ src/Orchard.Web/Themes/Themes.csproj | 1 + 2 files changed, 24 insertions(+) create mode 100644 src/Orchard.Web/Themes/SafeMode/Views/Document.cshtml diff --git a/src/Orchard.Web/Themes/SafeMode/Views/Document.cshtml b/src/Orchard.Web/Themes/SafeMode/Views/Document.cshtml new file mode 100644 index 000000000..694dea582 --- /dev/null +++ b/src/Orchard.Web/Themes/SafeMode/Views/Document.cshtml @@ -0,0 +1,23 @@ +@using Orchard.Mvc.Html; +@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(); + + string title = Convert.ToString(Model.Title); + string siteName = Convert.ToString(WorkContext.CurrentSite.SiteName); +} + + + + + @Html.Title(title, siteName) + @Display(Model.Head) + + + +@* Layout (template) is in the Body zone @ the default position (nothing, zero, zilch) *@ +@Display(Model.Body) +@Display(Model.Tail) + + \ No newline at end of file diff --git a/src/Orchard.Web/Themes/Themes.csproj b/src/Orchard.Web/Themes/Themes.csproj index c9fdc1750..d98317d1e 100644 --- a/src/Orchard.Web/Themes/Themes.csproj +++ b/src/Orchard.Web/Themes/Themes.csproj @@ -109,6 +109,7 @@ +