mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-04-05 21:01:35 +08:00
18 lines
619 B
C#
18 lines
619 B
C#
using Orchard.DisplayManagement.Implementation;
|
|
using Orchard.Environment.Extensions;
|
|
|
|
namespace Orchard.DesignerTools.Services {
|
|
[OrchardFeature("Orchard.DesignerTools")]
|
|
public class ShapeTracingFactory : IShapeFactoryEvents {
|
|
public void Creating(ShapeCreatingContext context) {
|
|
}
|
|
|
|
public void Created(ShapeCreatedContext context) {
|
|
if (context.ShapeType != "Layout"
|
|
&& context.ShapeType != "DocumentZone"
|
|
) {
|
|
context.Shape.Metadata.Wrappers.Add("ShapeTracing_Wrapper");
|
|
}
|
|
}
|
|
}
|
|
} |