mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Theming items
Changing the extension to hide several old files Adjusting BuildDisplayModel family to return shape for display --HG-- branch : theming
This commit is contained in:
3
src/Orchard.Web/Modules/Orchard.Themes/Views/Menu.cshtml
Normal file
3
src/Orchard.Web/Modules/Orchard.Themes/Views/Menu.cshtml
Normal file
@@ -0,0 +1,3 @@
|
||||
<ul id="Menu-@Model.MenuName" class="Menu Menu-@Model.MenuName">
|
||||
@foreach(var item in Model) {@Display(item);}
|
||||
</ul><!-- /Menu-@Model.MenuName -->
|
@@ -0,0 +1,9 @@
|
||||
@{
|
||||
// odd formatting in this file is to cause more attractive results in the output.
|
||||
var items = (IEnumerable<dynamic>)Enumerable.Cast<dynamic>(Model);
|
||||
}
|
||||
<li><a href="@Model.Href">@Model.Text</a>@{ if (items.Any()) {
|
||||
<ul>
|
||||
@foreach(var item in Model) {@Display(item);}
|
||||
</ul>}}
|
||||
</li>
|
Reference in New Issue
Block a user