mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
More progress on defining new UI capabilities..
--HG-- branch : dev
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
@using Orchard.Blogs.Extensions
|
||||
@using Orchard.UI.Resources
|
||||
@{
|
||||
RegisterLink(new LinkEntry { Rel = "wlwmanifest", Type = "application/wlwmanifest+xml", Href = Url.BlogLiveWriterManifest((string)Model.Slug) });
|
||||
RegisterLink(new LinkEntry { Rel = "EditURI", Type = "application/rsd+xml", Title = "RSD", Href = Url.BlogRsd((string)Model.Slug) });
|
||||
}
|
||||
<h1>@Html.TitleForPage((string)Model.Title)</h1>
|
||||
@Display(Model.manage)
|
||||
@Display(Model.metadata)
|
||||
@Display(Model.primary)
|
@@ -1,14 +1,20 @@
|
||||
@{
|
||||
Style.Include("site.css");
|
||||
|
||||
// cool stuff goes up here
|
||||
var homeUrl = Href("~/");
|
||||
|
||||
// Zone is an alias for Display
|
||||
Func<dynamic, dynamic> Zone = x => Display(x);
|
||||
|
||||
if (Model.Sidebar != null) {
|
||||
Html.AddPageClassNames(new[]{"icanhassidebar"});
|
||||
}
|
||||
}
|
||||
<div id="layout-wrapper">
|
||||
<header id="layout-header">
|
||||
@// needs to be the page title, not page (head) title...
|
||||
<h1><a href="@homeUrl">@Model.Title</a></h1>
|
||||
<h1><a href="@homeUrl">@WorkContext.CurrentSite.SiteName</a></h1>
|
||||
@if(Model.Header != null) {
|
||||
<div id="header">
|
||||
@Zone(Model.Header)
|
||||
|
Reference in New Issue
Block a user