mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Some updates to the classic theme. Added a zone test file.
--HG-- branch : dev
This commit is contained in:
@@ -19,7 +19,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</form>--%>
|
</form>--%>
|
||||||
|
|
||||||
|
|
||||||
<div class="actions"><a href="<%=Url.BlogPostCreate(Model.Item) %>" class="add button primaryAction"><%=_Encoded("New Post")%></a></div>
|
<div class="actions"><a href="<%=Url.BlogPostCreate(Model.Item) %>" class="add button primaryAction"><%=_Encoded("New Post")%></a></div>
|
||||||
|
|
||||||
|
|
||||||
<% Html.Zone("primary");
|
<% Html.Zone("primary");
|
||||||
Html.ZonesAny(); %>
|
Html.ZonesAny(); %>
|
@@ -182,6 +182,7 @@
|
|||||||
<Content Include="Themes\Classic\Views\DisplayTemplates\Parts\Pages.Page.Metadata.ascx" />
|
<Content Include="Themes\Classic\Views\DisplayTemplates\Parts\Pages.Page.Metadata.ascx" />
|
||||||
<Content Include="Themes\Classic\Views\Footer.ascx" />
|
<Content Include="Themes\Classic\Views\Footer.ascx" />
|
||||||
<Content Include="Themes\Classic\Views\Layout.ascx" />
|
<Content Include="Themes\Classic\Views\Layout.ascx" />
|
||||||
|
<Content Include="Themes\Classic\Views\ZoneTest.ascx" />
|
||||||
<Content Include="Themes\Green\Content\Images\bodyBackground.gif" />
|
<Content Include="Themes\Green\Content\Images\bodyBackground.gif" />
|
||||||
<Content Include="Themes\Green\Content\Images\bodyBackground.png" />
|
<Content Include="Themes\Green\Content\Images\bodyBackground.png" />
|
||||||
<Content Include="Themes\Green\Content\Images\commentpointer.gif" />
|
<Content Include="Themes\Green\Content\Images\commentpointer.gif" />
|
||||||
|
@@ -3,8 +3,7 @@
|
|||||||
<%@ Import Namespace="Orchard.Mvc.ViewModels"%>
|
<%@ Import Namespace="Orchard.Mvc.ViewModels"%>
|
||||||
<%@ Import Namespace="Orchard.Blogs.Extensions"%>
|
<%@ Import Namespace="Orchard.Blogs.Extensions"%>
|
||||||
<%@ Import Namespace="Orchard.Blogs.Models"%>
|
<%@ Import Namespace="Orchard.Blogs.Models"%>
|
||||||
<h2><%=Html.TitleForPage(Model.Item.Name) %></h2>
|
<h1><%=Html.TitleForPage(Model.Item.Name) %></h1>
|
||||||
<% Html.RegisterLink(new LinkEntry { Rel = "wlwmanifest", Type = "application/wlwmanifest+xml", Href = Url.BlogLiveWriterManifest(Model.Item.Slug) });%>
|
<% Html.RegisterLink(new LinkEntry { Rel = "wlwmanifest", Type = "application/wlwmanifest+xml", Href = Url.BlogLiveWriterManifest(Model.Item.Slug) });%>
|
||||||
<% Html.RegisterLink(new LinkEntry { Rel = "EditURI", Type = "application/rsd+xml", Title = "RSD", Href = Url.BlogRsd(Model.Item.Slug) });%>
|
<% Html.RegisterLink(new LinkEntry { Rel = "EditURI", Type = "application/rsd+xml", Title = "RSD", Href = Url.BlogRsd(Model.Item.Slug) });%>
|
||||||
<% Html.Zone("primary", ":manage :metadata");
|
<% Html.Zone("primary");%>
|
||||||
Html.ZonesAny(); %>
|
|
@@ -4,8 +4,9 @@
|
|||||||
<%@ Import Namespace="Orchard.Mvc.ViewModels"%>
|
<%@ Import Namespace="Orchard.Mvc.ViewModels"%>
|
||||||
<%@ Import Namespace="Orchard.Blogs.Extensions"%>
|
<%@ Import Namespace="Orchard.Blogs.Extensions"%>
|
||||||
<%@ Import Namespace="Orchard.Blogs.Models"%>
|
<%@ Import Namespace="Orchard.Blogs.Models"%>
|
||||||
|
<%Model.Zones.AddRenderPartial("zonetest", "ZoneTest", Model); %>
|
||||||
<h2><%=Html.Link(Html.Encode(Model.Item.Title), Url.BlogPost(Model.Item)) %></h2>
|
<h2><%=Html.Link(Html.Encode(Model.Item.Title), Url.BlogPost(Model.Item)) %></h2>
|
||||||
<div class="meta"><%=Html.PublishedState(Model.Item) %> | <%Html.Zone("meta");%></div>
|
<div class="meta"><%=Html.PublishedState(Model.Item) %> | <%Html.Zone("meta");%> <% Html.Zone("zonetest");%></div>
|
||||||
<div class="postsummary">
|
<div class="postsummary">
|
||||||
<% Html.Zone("primary", ":manage :metadata"); %>
|
<% Html.Zone("primary"); %>
|
||||||
</div>
|
</div>
|
@@ -11,5 +11,4 @@
|
|||||||
} %>
|
} %>
|
||||||
</div>
|
</div>
|
||||||
--%>
|
--%>
|
||||||
<% Html.Zone("primary", ":metadata :manage"); // <- flipping metadata and manage to get closer to the desired markup
|
<% Html.Zone("primary"); %>
|
||||||
Html.ZonesAny(); %>
|
|
@@ -1,6 +1,10 @@
|
|||||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<BaseViewModel>" %>
|
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<BaseViewModel>" %>
|
||||||
<%@ Import Namespace="Orchard.Mvc.ViewModels" %>
|
|
||||||
<%@ Import Namespace="Orchard.Mvc.Html" %>
|
<%@ Import Namespace="Orchard.Mvc.Html" %>
|
||||||
|
<%@ Import Namespace="Orchard.Mvc.ViewModels" %>
|
||||||
|
<%@ Import Namespace="Orchard.ContentManagement"%>
|
||||||
|
<%@ Import Namespace="Orchard.Core.Common.Models"%>
|
||||||
|
<%@ Import Namespace="Orchard.Blogs.Extensions"%>
|
||||||
|
<%@ Import Namespace="Orchard.Blogs.Models"%>
|
||||||
<%
|
<%
|
||||||
Html.RegisterStyle("site.css");
|
Html.RegisterStyle("site.css");
|
||||||
Html.RegisterStyle("blog.css");
|
Html.RegisterStyle("blog.css");
|
||||||
@@ -41,7 +45,6 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<%-- End Content --%>
|
<%-- End Content --%>
|
||||||
<%Html.Zone("footer");%>
|
|
||||||
<% Html.Include("Footer"); %>
|
<% Html.Include("Footer"); %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
3
src/Orchard.Web/Themes/Classic/Views/ZoneTest.ascx
Normal file
3
src/Orchard.Web/Themes/Classic/Views/ZoneTest.ascx
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<ContentItemViewModel<BlogPost>>" %>
|
||||||
|
<%@ Import Namespace="Orchard.Blogs.Models"%>
|
||||||
|
<%@ Import Namespace="Orchard.Mvc.ViewModels"%>
|
Reference in New Issue
Block a user