mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-21 19:34:40 +08:00
Added new ResourceManager and converted modules to use it. See sln notes ResourceManager.txt for open items.
--HG-- branch : dev
This commit is contained in:
@@ -67,6 +67,7 @@
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="AdminMenu.cs" />
|
||||
<Compile Include="ThemesResourceManifest.cs" />
|
||||
<Compile Include="Controllers\AdminController.cs" />
|
||||
<Compile Include="DataMigrations\ThemesDataMigration.cs" />
|
||||
<Compile Include="DesignerNotes\ZoneManagerEvents.cs" />
|
||||
|
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using Orchard.UI.Resources;
|
||||
|
||||
namespace Orchard.Themes {
|
||||
public class ThemesResourceManifest : ResourceManifest {
|
||||
public ThemesResourceManifest() {
|
||||
DefineStyle("ThemesAdmin").SetUrl("admin.css");
|
||||
|
||||
// todo: used by core\shapes -- move it?
|
||||
DefineScript("Switchable").SetUrl("jquery.switchable.js").SetDependencies("jQuery");
|
||||
|
||||
DefineStyle("Switchable").SetUrl("jquery.switchable.css");
|
||||
}
|
||||
}
|
||||
}
|
@@ -1,8 +1,5 @@
|
||||
@model Orchard.Themes.ViewModels.ThemesIndexViewModel
|
||||
@{
|
||||
Html.RegisterStyle("admin.css");
|
||||
}
|
||||
|
||||
@Style.Require("ThemesAdmin");
|
||||
<h1>@Html.TitleForPage(T("Manage Themes").ToString())</h1>
|
||||
@if (Model.CurrentTheme == null) {
|
||||
<p>
|
||||
|
Reference in New Issue
Block a user