-
Notifications
You must be signed in to change notification settings - Fork 865
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fe88d39
commit 35401e8
Showing
13 changed files
with
40 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 19 additions & 20 deletions
39
src/ZKEACMS.WebHost/Views/Shared/Partial.PageHeader.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,53 @@ | ||
@{ | ||
foreach (var item in this.WorkContext().CurrentPage.StyleSource) | ||
@inject IApplicationSettingService applicationSettingService | ||
@{ | ||
var currentPage = this.WorkContext().CurrentPage; | ||
foreach (var item in currentPage.StyleNames) | ||
{ | ||
Style.Reqiured(item).AtHead(); | ||
} | ||
foreach (var item in this.WorkContext().CurrentPage.ScriptSource) | ||
foreach (var item in currentPage.ScriptNames) | ||
{ | ||
Script.Reqiured(item).AtFoot(); | ||
} | ||
var favicon = applicationSettingService.Get(SettingKeys.Favicon, "~/favicon.ico"); | ||
} | ||
@inject IApplicationSettingService applicationSettingService | ||
<title> | ||
@this.WorkContext().CurrentPage.Title | ||
</title> | ||
<meta name="keywords" content="@this.WorkContext().CurrentPage.MetaKeyWorlds" /> | ||
<meta name="description" content="@this.WorkContext().CurrentPage.MetaDescription" /> | ||
<title>@currentPage.Title</title> | ||
<meta name="keywords" content="@currentPage.MetaKeyWorlds" /> | ||
<meta name="description" content="@currentPage.MetaDescription" /> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||
<meta charset="utf-8" /> | ||
<meta name="author" content="ZKEASOFT" /> | ||
<meta name="about" content="@ZKEACMS.Version.CurrentVersion" /> | ||
<meta name="website" content="http://www.zkea.net" /> | ||
<link rel="author" href="http://www.zkea.net" /> | ||
<link href="@Url.Content(favicon)" rel="shortcut icon" type="image/x-icon" /> | ||
@if (this.WorkContext().EnableResponsiveDesign) | ||
{ | ||
<meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no,maximum-scale=1.0" /> | ||
} | ||
@if (this.WorkContext().OuterChainPicture) | ||
{ | ||
<meta name="referrer" content="same-origin" /> | ||
} | ||
@foreach (var item in this.WorkContext().CurrentPage.Meta) | ||
@foreach (var item in currentPage.Meta) | ||
{ | ||
@item.Render() | ||
} | ||
@if (this.WorkContext().EnableResponsiveDesign) | ||
{ | ||
<meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no,maximum-scale=1.0" /> | ||
} | ||
<link rel="author" href="http://www.zkea.net" /> | ||
<link href="@Url.Content(favicon)" rel="shortcut icon" type="image/x-icon" /> | ||
@StyleAtHead() | ||
@ScriptAtHead() | ||
@foreach (var item in this.WorkContext().CurrentPage.Header) | ||
@foreach (var item in currentPage.Header) | ||
{ | ||
@item | ||
} | ||
@foreach (var item in this.WorkContext().CurrentPage.StyleSheets) | ||
@foreach (var item in currentPage.StyleSheets) | ||
{ | ||
@item.Render() | ||
} | ||
@foreach (var item in this.WorkContext().CurrentPage.Style) | ||
@foreach (var item in currentPage.Style) | ||
{ | ||
@item.Render() | ||
} | ||
@foreach (var item in this.WorkContext().CurrentPage.HeaderScripts) | ||
@foreach (var item in currentPage.HeaderScripts) | ||
{ | ||
@item.Render() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters