mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-12-03 12:03:51 +08:00
41 lines
1.6 KiB
Plaintext
41 lines
1.6 KiB
Plaintext
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl" %>
|
|
<%@ Import Namespace="Orchard.Security" %>
|
|
<%@ Import Namespace="Orchard.DisplayManagement.Descriptors" %>
|
|
<%@ Import Namespace="Orchard" %>
|
|
<%@ Import Namespace="Orchard.ContentManagement" %>
|
|
<%
|
|
// these are just hacked together to fire existing partials... can change
|
|
Model.Header.Add(Display.Header());
|
|
|
|
// <experimentation>
|
|
var thisUser = Html.Resolve<IAuthenticationService>().GetAuthenticatedUser();
|
|
Model.Header.Add(Display.User(CurrentUser: thisUser), "after");
|
|
|
|
// </experimentation>
|
|
|
|
Html.RegisterStyle("site.css", "1");
|
|
Html.RegisterStyle("ie.css", "1").WithCondition("if (lte IE 8)").ForMedia("screen, projection");
|
|
Html.RegisterStyle("ie6.css", "1").WithCondition("if (lte IE 6)").ForMedia("screen, projection");
|
|
Html.RegisterFootScript("admin.js", "1");
|
|
|
|
// these are just hacked together to fire existing partials... can change
|
|
|
|
//Model.Zones.AddRenderPartial("header", "Header", Model);
|
|
//Model.Zones.AddRenderPartial("header:after", "User", Model); // todo: (heskew) should be a user display or widget
|
|
%>
|
|
<div id="header" role="banner">
|
|
<%: Display(Model.Header) %></div>
|
|
<div id="content">
|
|
<div id="navshortcut">
|
|
<a href="#Menu-admin">
|
|
<%: T("Skip to navigation") %></a></div>
|
|
<div id="main" role="main">
|
|
<%: Display(Model.Content) %></div>
|
|
<div id="menu">
|
|
<%: Display(Model.Navigation) %></div>
|
|
</div>
|
|
<div id="footer" role="contentinfo">
|
|
<%: Display(Model.Footer) %></div>
|
|
|
|
<%: Display.DumpShapeTable() %>
|