mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-12-02 11:44:41 +08:00
#18634: Fixing Safe Mode Document shape
Work Item: 18634 --HG-- branch : 1.x
This commit is contained in:
@@ -149,7 +149,7 @@ namespace Orchard.Setup {
|
|||||||
|
|
||||||
class SafeModeSite : ContentPart, ISite {
|
class SafeModeSite : ContentPart, ISite {
|
||||||
public string PageTitleSeparator {
|
public string PageTitleSeparator {
|
||||||
get { return "*"; }
|
get { return " - "; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public string SiteName {
|
public string SiteName {
|
||||||
|
|||||||
@@ -2,22 +2,21 @@
|
|||||||
@using Orchard.UI.Resources;
|
@using Orchard.UI.Resources;
|
||||||
@{
|
@{
|
||||||
RegisterLink(new LinkEntry {Type = "image/x-icon", Rel = "shortcut icon", Href = Url.Content("~/modules/orchard.themes/Content/orchard.ico")});
|
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);
|
||||||
}
|
}
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="@WorkContext.CurrentCulture" class="static @Html.ClassForPage()">
|
<html lang="@WorkContext.CurrentCulture" class="static @Html.ClassForPage()">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<title>@Html.Title()</title>
|
<title>@Html.Title(title, siteName)</title>
|
||||||
@{
|
|
||||||
//todo: (heskew) have resource modules that can be leaned on (like a jQuery module that knows about various CDNs and jQuery's version and min naming schemes)
|
|
||||||
//todo: (heskew) this is an interim solution to inlude jQuery in every page and still allow that to be overriden in some theme by it containing a headScripts partial
|
|
||||||
}
|
|
||||||
@*Model.Zones.AddRenderPartial("head:before", "HeadPreload", Model);*@
|
|
||||||
@*Html.Zone("head", ":metas :styles :scripts"); %>*@
|
|
||||||
@Display(Model.Head)
|
@Display(Model.Head)
|
||||||
<script>(function(d){d.className="dyn "+d.className.substring(7,d.length);})(document.documentElement);</script>
|
<script> (function (d) { d.className = "dyn" + d.className.substring(6, d.className.length); })(document.documentElement);</script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
@* Layout (template) is in the Body zone @ the default position (nothing, zero, zilch) *@
|
||||||
@Display(Model.Body)
|
@Display(Model.Body)
|
||||||
@Display(Model.Tail)
|
@Display(Model.Tail)
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
Reference in New Issue
Block a user