2010-10-05 08:28:06 -07:00
|
|
|
@{
|
2010-10-06 14:02:37 -07:00
|
|
|
Style.Include("site.css");
|
|
|
|
|
2010-10-05 08:28:06 -07:00
|
|
|
// cool stuff goes up here
|
|
|
|
var homeUrl = Href("~/");
|
2010-09-30 13:03:48 -07:00
|
|
|
|
2010-10-05 08:28:06 -07:00
|
|
|
// Zone is an alias for Display
|
|
|
|
Func<dynamic, dynamic> Zone = x => Display(x);
|
2010-10-06 14:02:37 -07:00
|
|
|
|
|
|
|
if (Model.Sidebar != null) {
|
|
|
|
Html.AddPageClassNames(new[]{"icanhassidebar"});
|
|
|
|
}
|
2010-10-05 08:28:06 -07:00
|
|
|
}
|
|
|
|
<div id="layout-wrapper">
|
2010-10-07 11:09:37 -07:00
|
|
|
@Display.User()
|
2010-10-05 08:28:06 -07:00
|
|
|
<header id="layout-header">
|
|
|
|
@// needs to be the page title, not page (head) title...
|
2010-10-06 14:02:37 -07:00
|
|
|
<h1><a href="@homeUrl">@WorkContext.CurrentSite.SiteName</a></h1>
|
2010-10-05 08:28:06 -07:00
|
|
|
@if(Model.Header != null) {
|
|
|
|
<div id="header">
|
|
|
|
@Zone(Model.Header)
|
2010-09-30 13:03:48 -07:00
|
|
|
</div>
|
2010-10-05 08:28:06 -07:00
|
|
|
}
|
|
|
|
@if(Model.Navigation != null) {
|
|
|
|
<div id="navigation">
|
|
|
|
@Zone(Model.Navigation)
|
2010-09-30 13:03:48 -07:00
|
|
|
</div>
|
2010-10-05 08:28:06 -07:00
|
|
|
}
|
|
|
|
</header>
|
|
|
|
@if(Model.Messages != null) {
|
|
|
|
<div id="messages">
|
|
|
|
@Zone(Model.Messages)
|
|
|
|
</div>
|
|
|
|
}
|
|
|
|
@if(Model.Featured != null) {
|
|
|
|
<div id="featured">
|
|
|
|
@Zone(Model.Featured)
|
|
|
|
</div>
|
|
|
|
}
|
|
|
|
@// the model content for the page is in the Content zone @ the default position (nothing, zero, zilch)
|
|
|
|
@if(Model.Content != null) {
|
|
|
|
<div id="content">
|
|
|
|
@Zone(Model.Content)
|
2010-09-30 13:03:48 -07:00
|
|
|
</div>
|
2010-10-05 08:28:06 -07:00
|
|
|
}
|
|
|
|
@if(Model.Sidebar != null) {
|
|
|
|
<aside>
|
|
|
|
@Zone(Model.Sidebar)
|
|
|
|
</aside>
|
|
|
|
}
|
|
|
|
@if(Model.Footer != null) {
|
|
|
|
<footer>
|
|
|
|
@Zone(Model.Footer)
|
|
|
|
</footer>
|
|
|
|
}
|
|
|
|
</div>
|