2011-02-08 17:52:53 -08:00
|
|
|
|
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) {
|
2011-02-14 17:19:44 -08:00
|
|
|
|
if (context.ShapeType != "Layout"
|
|
|
|
|
|
&& context.ShapeType != "DocumentZone"
|
|
|
|
|
|
&& context.ShapeType != "PlaceChildContent"
|
|
|
|
|
|
&& context.ShapeType != "ContentZone"
|
|
|
|
|
|
)
|
|
|
|
|
|
{
|
2011-02-08 17:52:53 -08:00
|
|
|
|
context.Shape.Metadata.Wrappers.Add("ShapeTracing_Wrapper");
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|