Adding some widget wrapper auto-classification

--HG--
branch : dev
This commit is contained in:
Nathan Heskew
2010-10-19 15:33:51 -07:00
parent 7cd5deb899
commit 6df8a35fb1
2 changed files with 9 additions and 2 deletions

View File

@@ -2,8 +2,9 @@
@using Orchard.Widgets.Models;
@{
var title = ((IContent)Model.ContentItem).As<WidgetPart>().Title;
var tag = Tag(Model, "article");
}
<article class="widget">
@tag.StartElement
<header>
<h1>@title</h1>
@Display(Model.Header)
@@ -14,4 +15,4 @@
@Display(Model.Footer)
</footer>
}
</article>
@tag.EndElement