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:
Nathan Heskew
2010-02-25 14:51:19 -08:00
parent fe55012b77
commit 46efd063bf
2 changed files with 47 additions and 0 deletions

View File

@@ -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" />

View 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>