Adding some sophistication to rendering

Doing some work with Zone, MenuItem, Menu shapes
Adjusting some shape usage in the TheAdmin theme

--HG--
branch : theming
This commit is contained in:
Louis DeJardin
2010-09-07 00:20:11 -07:00
parent ef7abae721
commit aa8cac9323
17 changed files with 130 additions and 64 deletions

View File

@@ -1,4 +1,8 @@
@using Orchard.Mvc.Html
@{
Model.Body.Add(Model.Metadata.ChildContent, "5");
}
<!DOCTYPE html>
@//"en" needs to change to the current culture, btw
@//all inline styles for tmp reference only
@@ -18,7 +22,7 @@
<body class="@Html.ClassForPage()">
<section>
<h1>document template</h1>
@Html.RenderOrchardBody()
@Display(Model.Body)
</section>
</body>
</html>

View File

@@ -0,0 +1,9 @@
@{
var id = Model.Id;
if (id == null) {
id = (Model.Parent.Id == null ? "" : Model.Parent.Id + "-") + "Zone-" + Model.ZoneName;
}
}
<div id="@id" class="Zone Zone-@Model.ZoneName">
@foreach (var item in Model) {@Display(item)}
</div><!-- /@id -->