Moved base templates from the Themes module to a new (Orchard.Core) Shapes module (to become core shape templates)

--HG--
branch : theming
This commit is contained in:
Nathan Heskew
2010-09-07 16:00:04 -07:00
parent 3813431ab8
commit e758d63fb7
33 changed files with 85 additions and 29 deletions

View File

@@ -320,6 +320,26 @@
<Content Include="Settings\Views\Admin\Culture.ascx" />
<Content Include="Settings\Views\DisplayTemplates\CurrentCulture.ascx" />
<Content Include="Settings\Views\DisplayTemplates\RemovableCulture.ascx" />
<Content Include="Shapes\Module.txt" />
<Content Include="Shapes\Scripts\base.js" />
<Content Include="Shapes\Scripts\jquery-1.4.2.js" />
<Content Include="Shapes\Scripts\jquery-1.4.2.min.js" />
<Content Include="Shapes\Scripts\jquery.switchable.js" />
<Content Include="Shapes\Styles\Images\detail-view-on.gif" />
<Content Include="Shapes\Styles\Images\detail-view.gif" />
<Content Include="Shapes\Styles\Images\summary-view-on.gif" />
<Content Include="Shapes\Styles\Images\summary-view.gif" />
<Content Include="Shapes\Styles\Images\toolBarActiveButtonBackground.gif" />
<Content Include="Shapes\Styles\Images\toolBarBackground.gif" />
<Content Include="Shapes\Styles\Images\toolBarHoverButtonBackground.gif" />
<Content Include="Shapes\Styles\jquery.switchable.css" />
<Content Include="Shapes\Styles\special.css" />
<Content Include="Shapes\Views\DisplayTemplates\Items\ContentItem.ascx" />
<Content Include="Shapes\Views\EditorTemplates\Items\ContentItem.ascx" />
<Content Include="Shapes\Views\Header.ascx" />
<Content Include="Shapes\Views\HeadPreload.ascx" />
<Content Include="Shapes\Views\NotFound.ascx" />
<Content Include="Shapes\Views\UI\Switchable.ascx" />
<Content Include="Web.config" />
<Content Include="XmlRpc\Module.txt" />
<Content Include="XmlRpc\Views\Home\Index.aspx" />
@@ -377,6 +397,16 @@
<None Include="Contents\Views\Content.cshtml" />
<None Include="Contents\Views\Item\Display.cshtml" />
<None Include="HomePage\Views\HomePage.cshtml" />
<None Include="Shapes\Views\Document.aspx_" />
<None Include="Shapes\Views\Document.cshtml" />
<None Include="Shapes\Views\Layout.ascx_" />
<None Include="Shapes\Views\Menu.ascx_" />
<None Include="Shapes\Views\Menu.cshtml" />
<None Include="Shapes\Views\MenuItem.cshtml" />
<None Include="Shapes\Views\Messages.ascx_" />
<None Include="Shapes\Views\User.ascx_" />
<Content Include="Shapes\Views\Web.config" />
<None Include="Shapes\Views\Zone.cshtml" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />

View File

@@ -0,0 +1,11 @@
name: Shapes
antiforgery: enabled
author: The Orchard Team
website: http://orchardproject.net
version: 0.5.0
orchardversion: 0.5.0
description: The shapes module contains core shape templates and display hooks.
features:
Shapes:
Description: Core shape templates and display hooks.
Category: Core

View File

Before

Width:  |  Height:  |  Size: 123 B

After

Width:  |  Height:  |  Size: 123 B

View File

Before

Width:  |  Height:  |  Size: 123 B

After

Width:  |  Height:  |  Size: 123 B

View File

Before

Width:  |  Height:  |  Size: 156 B

After

Width:  |  Height:  |  Size: 156 B

View File

Before

Width:  |  Height:  |  Size: 156 B

After

Width:  |  Height:  |  Size: 156 B

View File

@@ -0,0 +1,42 @@
<?xml version="1.0"?>
<configuration>
<system.web>
<httpHandlers>
<add path="*" verb="*"
type="System.Web.HttpNotFoundHandler"/>
</httpHandlers>
<!--
Enabling request validation in view pages would cause validation to occur
after the input has already been processed by the controller. By default
MVC performs request validation before a controller processes the input.
To change this behavior apply the ValidateInputAttribute to a
controller or action.
-->
<pages
validateRequest="false"
pageParserFilterType="System.Web.Mvc.ViewTypeParserFilter, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"
pageBaseType="System.Web.Mvc.ViewPage, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"
userControlBaseType="System.Web.Mvc.ViewUserControl, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<controls>
<add assembly="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" namespace="System.Web.Mvc" tagPrefix="mvc" />
</controls>
</pages>
</system.web>
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<handlers>
<remove name="BlockViewHandler"/>
<add name="BlockViewHandler" path="*" verb="*" preCondition="integratedMode" type="System.Web.HttpNotFoundHandler"/>
</handlers>
</system.webServer>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="2.0.0.0" newVersion="3.0.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>

View File

@@ -63,6 +63,7 @@ namespace Orchard.Setup.Services {
string[] hardcoded = {
"Orchard.Framework",
"Common",
"Shapes",
//"PublishLater",
"Contents",
//"ContentsLocation",

View File

@@ -88,41 +88,14 @@
</ItemGroup>
<ItemGroup>
<Content Include="Content\orchard.ico" />
<Content Include="Scripts\base.js" />
<Content Include="Scripts\jquery.switchable.js" />
<Content Include="Styles\admin.css" />
<Content Include="Styles\Images\detail-view-on.gif" />
<Content Include="Styles\Images\detail-view.gif" />
<Content Include="Styles\Images\summary-view-on.gif" />
<Content Include="Styles\Images\summary-view.gif" />
<Content Include="Styles\Images\toolBarActiveButtonBackground.gif" />
<Content Include="Styles\Images\toolBarBackground.gif" />
<Content Include="Styles\Images\toolBarHoverButtonBackground.gif" />
<Content Include="Styles\jquery.switchable.css" />
<Content Include="Styles\special.css" />
<Content Include="Views\Admin\Index.aspx" />
<Content Include="Views\Admin\Install.aspx" />
<Content Include="Views\Admin\ThemePreview.ascx" />
<Content Include="Views\DisplayTemplates\Items\ContentItem.ascx" />
<None Include="Views\Document.aspx_" />
<Content Include="Views\EditorTemplates\Items\ContentItem.ascx" />
<Content Include="Views\Header.ascx" />
<Content Include="Views\HeadPreload.ascx" />
<None Include="Views\Layout.ascx_" />
<None Include="Views\Menu.ascx_" />
<None Include="Views\Menu.cshtml" />
<None Include="Views\MenuItem.cshtml" />
<None Include="Views\Messages.ascx_" />
<Content Include="Views\NotFound.ascx" />
<Content Include="Views\UI\Switchable.ascx" />
<None Include="Views\User.ascx_" />
<Content Include="Web.config" />
</ItemGroup>
<ItemGroup>
<Content Include="Module.txt" />
<Content Include="Scripts\jquery-1.4.2.js" />
<Content Include="Scripts\jquery-1.4.2.min.js" />
<Content Include="Views\Web.config" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\Orchard\Orchard.Framework.csproj">
@@ -131,8 +104,7 @@
</ProjectReference>
</ItemGroup>
<ItemGroup>
<None Include="Views\Document.cshtml" />
<None Include="Views\Zone.cshtml" />
<Content Include="Views\Web.config" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />