mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
17 lines
573 B
C#
17 lines
573 B
C#
using Orchard.DisplayManagement.Implementation;
|
|
|
|
namespace Orchard.DevTools {
|
|
public class Shapes : IShapeFactoryEvents {
|
|
public void Creating(ShapeCreatingContext context) {
|
|
|
|
}
|
|
|
|
public void Created(ShapeCreatedContext context) {
|
|
if (context.ShapeType != "Layout" && context.ShapeType != "DocumentZone")
|
|
context.Shape.Metadata.Wrappers.Add("ThinBorder");
|
|
if (context.ShapeType == "Header")
|
|
context.Shape.Metadata.Wrappers.Add("HackStyle");
|
|
}
|
|
}
|
|
}
|