From 64c1bdf243eaffd9312d6aea513613d345e20e59 Mon Sep 17 00:00:00 2001 From: Nathan Heskew Date: Thu, 14 Oct 2010 13:21:46 -0700 Subject: [PATCH] Updating TheThemeMachine's layout with zone awesomeness --HG-- branch : dev --- .../Themes/TheThemeMachine/Styles/Site.css | 7 +- .../TheThemeMachine/Views/Layout.cshtml | 149 ++++++++++++------ 2 files changed, 111 insertions(+), 45 deletions(-) diff --git a/src/Orchard.Web/Themes/TheThemeMachine/Styles/Site.css b/src/Orchard.Web/Themes/TheThemeMachine/Styles/Site.css index 50658a503..e4601950d 100644 --- a/src/Orchard.Web/Themes/TheThemeMachine/Styles/Site.css +++ b/src/Orchard.Web/Themes/TheThemeMachine/Styles/Site.css @@ -222,7 +222,12 @@ nav ul } /* Zones */ -/* .zone { background-color: yellow; } Used for visualizing zones */ +.zone { + background-color: yellow; + box-shadow:inset 0 0 1px red; + -moz-box-shadow:inset 0 0 1px red; + -webkit-box-shadow:inset 0 0 1px red; +} /* Used for visualizing zones */ .zone-header { } .zone-footer { padding: 24px 0 12px 0px; float: left; font-size: 1.3em; color: #999999; } .zone-content { padding: 12px 0 12px 0px; } diff --git a/src/Orchard.Web/Themes/TheThemeMachine/Views/Layout.cshtml b/src/Orchard.Web/Themes/TheThemeMachine/Views/Layout.cshtml index 6eccdfc8c..83c70e1da 100644 --- a/src/Orchard.Web/Themes/TheThemeMachine/Views/Layout.cshtml +++ b/src/Orchard.Web/Themes/TheThemeMachine/Views/Layout.cshtml @@ -25,67 +25,128 @@ Model.Id = "layout-wrapper"; var tag = Tag (Model, "div"); + // needs to be the page title, not page (head) title... + // Adds text and html to the header zone + using(Capture(branding => WorkContext.Layout.Header.Add(branding) )) { +

@WorkContext.CurrentSite.SiteName

+ } + using(Capture(pbo => WorkContext.Layout.Footer.Add(pbo) )) { + Powered by Orchard © The Theme Machine 2010. + } + WorkContext.Layout.Footer.Add(New.User()); } @tag.StartElement - -@* needs to be the page title, not page (head) title... *@ -@* Adds text and html to the header zone *@ - -@using(Capture(branding => WorkContext.Layout.Header.Add(branding) )) { -

@WorkContext.CurrentSite.SiteName

-} -@if(Model.Header != null) { -
+@if (Model.Header != null) { +
} -@if(Model.Navigation != null) { -