mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-22 20:13:50 +08:00
Updated the Green theme with an example of a HomePage layout
HomePage layout == Layout.HomePage; default layout == Layout --HG-- branch : dev
This commit is contained in:
@@ -195,6 +195,7 @@
|
||||
<Content Include="Themes\Green\Styles\yui.css" />
|
||||
<Content Include="Themes\Green\Theme.png" />
|
||||
<Content Include="Themes\Green\Theme.txt" />
|
||||
<Content Include="Themes\Green\Views\Layout.HomePage.ascx" />
|
||||
<Content Include="Themes\Green\Views\DisplayTemplates\Items\Blogs.Blog.ascx" />
|
||||
<Content Include="Themes\Green\Views\DisplayTemplates\Items\Blogs.Blog.Summary.ascx" />
|
||||
<Content Include="Themes\Green\Views\DisplayTemplates\Items\Blogs.BlogPost.Summary.ascx" />
|
||||
|
46
src/Orchard.Web/Themes/Green/Views/Layout.HomePage.ascx
Normal file
46
src/Orchard.Web/Themes/Green/Views/Layout.HomePage.ascx
Normal file
@@ -0,0 +1,46 @@
|
||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<BaseViewModel>" %>
|
||||
<%@ Import Namespace="Orchard.Mvc.ViewModels"%>
|
||||
<%@ Import Namespace="Orchard.Mvc.Html" %>
|
||||
|
||||
<%
|
||||
Html.RegisterStyle("yui.css");
|
||||
Html.RegisterStyle("site.css");
|
||||
Html.RegisterStyle("blog.css");
|
||||
%>
|
||||
|
||||
<div id="doc4" class="yui-t6">
|
||||
|
||||
<% Html.Zone("header"); Html.Zone("menu"); %>
|
||||
|
||||
<div id="hd" role="banner">
|
||||
<div class="yui-g" id="branding">
|
||||
<div class="yui-u first">
|
||||
<h1><a href="/" title="Go to Home"><span class="displayText">AdventureWorks</span></a></h1>
|
||||
</div>
|
||||
<div class="yui-u">
|
||||
<div id="logIn">
|
||||
<%-- todo:(nheskew) this will need to all go in the header zone (user widget) --%>
|
||||
<% Html.Include("User"); %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<%--Top Navigation--%>
|
||||
<%-- todo:(nheskew) this will need to be a generated menu --%>
|
||||
<% Html.Include("Menu"); %>
|
||||
</div>
|
||||
|
||||
<%-- Begin Page Content --%>
|
||||
<div id="bd" role="main">
|
||||
<div id="yui-main">
|
||||
<div id="maincolumn">
|
||||
<div class="yui-g">
|
||||
<%--Main Content--%>
|
||||
<%Html.ZoneBody("content");%>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<%-- End Content --%>
|
||||
<%Html.Zone("footer");%>
|
||||
<% Html.Include("Footer"); %>
|
||||
</div>
|
Reference in New Issue
Block a user