mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
This enables exporting the current theme setting and restoring it during import.
19 lines
488 B
C#
19 lines
488 B
C#
using System.Collections.Generic;
|
|
using Orchard.Environment.Extensions;
|
|
using Orchard.Events;
|
|
|
|
namespace Orchard.Themes.ImportExport {
|
|
public interface ICustomExportStep : IEventHandler {
|
|
void Register(IList<string> steps);
|
|
}
|
|
|
|
[OrchardFeature("Orchard.Themes.ImportExportCurrentTheme")]
|
|
public class CurrentThemeStep : ICustomExportStep {
|
|
|
|
void ICustomExportStep.Register(IList<string> steps) {
|
|
steps.Add("CurrentTheme");
|
|
}
|
|
}
|
|
}
|
|
|