mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Updates to the new theme.
--HG-- branch : dev
This commit is contained in:
@@ -8,14 +8,10 @@
|
||||
Func<dynamic, dynamic> Zone = x => Display(x);
|
||||
|
||||
if (Model.Sidebar != null) {
|
||||
Html.AddPageClassNames(new[]{"icanhassidebar"});
|
||||
Html.AddPageClassNames(new[]{"has-sidebar"});
|
||||
}
|
||||
|
||||
WorkContext.Layout.Featured.Add(New.TempFeatured(Hello:"bob"));
|
||||
WorkContext.Layout.Featured.Add("just some text in featured");
|
||||
}
|
||||
<div id="layout-wrapper">
|
||||
@Display.User()
|
||||
<header id="layout-header">
|
||||
@* needs to be the page title, not page (head) title... *@
|
||||
<h1><a href="@homeUrl">@WorkContext.CurrentSite.SiteName</a></h1>
|
||||
@@ -35,25 +31,57 @@
|
||||
@Zone(Model.Messages)
|
||||
</div>
|
||||
}
|
||||
@if(Model.Featured != null) {
|
||||
<div id="featured">
|
||||
|
||||
@* This code would inject text into the Featured zone.
|
||||
@{WorkContext.Layout.Featured.Add("just some text in featured");}
|
||||
*@
|
||||
|
||||
@{
|
||||
WorkContext.Layout.Featured.Add(New.Featured(insertMessage:"This is a featured blog post."));
|
||||
}
|
||||
@if(Model.Featured != null) {
|
||||
<div class="zone-featured group">
|
||||
@Zone(Model.Featured)
|
||||
</div>
|
||||
}
|
||||
|
||||
@{
|
||||
WorkContext.Layout.Recent.Add(New.Recent());
|
||||
}
|
||||
@if(Model.Featured != null) {
|
||||
<div class="group">
|
||||
@Zone(Model.Recent)
|
||||
</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">
|
||||
<div id="content" class="group">
|
||||
@Zone(Model.Content)
|
||||
</div>
|
||||
}
|
||||
else {
|
||||
<div id="content" class="group">
|
||||
Let's take over the home page
|
||||
</div>
|
||||
}
|
||||
|
||||
@if(Model.Sidebar != null) {
|
||||
<aside class="sidebar">
|
||||
@Zone(Model.Sidebar)
|
||||
</aside>
|
||||
}
|
||||
|
||||
<footer id="sitemap">
|
||||
Powered by Awesomeness...
|
||||
@if(Model.Footer != null) {
|
||||
<footer>
|
||||
@Zone(Model.Footer)
|
||||
</footer>
|
||||
}
|
||||
else {
|
||||
<footer id="sitemap">
|
||||
Powered by Orchard @Display.User()
|
||||
</footer>
|
||||
}
|
||||
|
||||
|
||||
</div>
|
Reference in New Issue
Block a user