mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
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:
@@ -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>
|
||||
|
9
src/Orchard.Web/Modules/Orchard.Themes/Views/Zone.cshtml
Normal file
9
src/Orchard.Web/Modules/Orchard.Themes/Views/Zone.cshtml
Normal 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 -->
|
Reference in New Issue
Block a user