Some cleanup on Theme Machine layout file.

--HG--
branch : dev
This commit is contained in:
Jonathan Wall
2010-10-14 10:01:41 -07:00
parent 8f8d3ba9e6
commit 09a82b8791
2 changed files with 6 additions and 14 deletions

View File

@@ -112,7 +112,9 @@
<None Include="Views\Admin\AddLayer.cshtml" />
<None Include="Views\Admin\AddWidget.cshtml" />
<None Include="Views\Admin\EditWidget.cshtml" />
<None Include="Views\Admin\EditLayer.cshtml" />
<None Include="Views\Admin\EditLayer.cshtml">
<SubType>Designer</SubType>
</None>
<None Include="Views\Admin\Index.cshtml" />
<Content Include="Views\Items_Widget.Editor.cshtml" />
<None Include="Views\Widget.Manage.cshtml" />

View File

@@ -8,10 +8,6 @@
// Zone is an alias for Display
Func<dynamic, dynamic> Zone = x => Display(x);
//Use the two lines below to test the sidebar zones.
//WorkContext.Layout.AsideFirst.Add("This test text will render in Sidebar1.");
//WorkContext.Layout.AsideSecond.Add("This test text will render in Sidebar2.");
//Add classes to the wrapper div to toggle zones on and off
if (Model.AsideFirst != null && Model.AsideSecond == null) {
Model.Classes.Add("has-sidebar");
@@ -26,15 +22,9 @@
}
//Model.Attributes.Add("onclick", "javscript:alert('woot')");
Model.Id = "layout-wrapper";
var tag = Tag (Model, "div");
}
@* Add a wrapping div around everything *@
@tag.StartElement
<div id="layout-wrapper">
@* needs to be the page title, not page (head) title... *@
@* Adds text and html to the header zone *@
@@ -88,11 +78,11 @@
<span class="poweredby">Powered by Orchard</span> <span class="copyright">&#169; The Theme Machine 2010.</span>
}
@if(Model.Footer != null) {
@if(Model.Footer != null) {
<footer id="layout-footer" class="group">
@Zone(Model.Footer)
@Display.User()
</footer>
}
@tag.EndElement
</div>