src/ZKEACMS.WebHost/Views/Shared/_LayoutGeneric.cshtml
(完整代码) 1KB@using Microsoft.AspNetCore.Hosting
@using Microsoft.Extensions.Hosting
@using Microsoft.Extensions.Options
@using Easy.Options
@{
ThemeEntity theme = themeService.GetCurrentTheme();
if (theme == null)
{
Style.Reqiured("bootStrap").AtHead();
}
}
@inject IThemeService themeService
@inject IOptions<CultureOption> cultureOption
<!DOCTYPE html>
<html lang="@cultureOption.Value.Code">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta charset="utf-8" />
<title>@ViewBag.Title</title>
<link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
@if (this.WorkContext().OuterChainPicture)
{
<meta name="referrer" content="same-origin" />
}
@if (this.WorkContext().EnableResponsiveDesign)
{
<meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no,maximum-scale=1.0" />
}
@StyleAtHead()
@ScriptAtHead()
@if (theme != null)
{
string themeFile = ApplicationContext.HostingEnvironment.IsDevelopment() ? theme.UrlDebugger : theme.Url;
<link type="text/css" async rel="stylesheet" href="@Url.Content(themeFile)" />
}
</head>
<body>
@RenderBody()
@StyleAtFoot()
@ScriptAtFoot()
</body>
</html>
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。