Making the widget wrapper an <article/>

--HG--
branch : dev
This commit is contained in:
Nathan Heskew
2010-10-15 16:28:45 -07:00
parent ac4c1c8f80
commit 0e59891b16
7 changed files with 19 additions and 47 deletions

View File

@@ -1,2 +1 @@
@Display(Model.Header)
@Display(Model.Content)
@Display(Model.Content)

View File

@@ -1,3 +1,17 @@
<div class="widget">
@using Orchard.ContentManagement;
@using Orchard.Widgets.Models;
@{
var title = ((IContent)Model.ContentItem).As<WidgetPart>().Title;
}
<article class="widget">
<header>
<h1>@title</h1>
@Display(Model.Header)
</header>
@Display.PlaceChildContent(Source: Model)
</div>
@if(Model.Footer != null) {
<footer>
@Display(Model.Footer)
</footer>
}
</article>