File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 1616if ( ! defined ( 'WP_TEMPLATE_PART_AREA_SIDEBAR ' ) ) {
1717 define ( 'WP_TEMPLATE_PART_AREA_SIDEBAR ' , 'sidebar ' );
1818}
19+ if ( ! defined ( 'WP_TEMPLATE_PART_AREA_OVERLAY ' ) ) {
20+ define ( 'WP_TEMPLATE_PART_AREA_OVERLAY ' , 'overlay ' );
21+ }
1922if ( ! defined ( 'WP_TEMPLATE_PART_AREA_UNCATEGORIZED ' ) ) {
2023 define ( 'WP_TEMPLATE_PART_AREA_UNCATEGORIZED ' , 'uncategorized ' );
2124}
@@ -96,6 +99,15 @@ function get_allowed_block_template_part_areas() {
9699 'icon ' => 'footer ' ,
97100 'area_tag ' => 'footer ' ,
98101 ),
102+ array (
103+ 'area ' => WP_TEMPLATE_PART_AREA_OVERLAY ,
104+ 'label ' => _x ( 'Overlay ' , 'template part area ' ),
105+ 'description ' => __ (
106+ 'The Overlay template defines areas that can be used to overlay the content of the page. '
107+ ),
108+ 'icon ' => 'overlay ' ,
109+ 'area_tag ' => 'div ' ,
110+ ),
99111 );
100112
101113 /**
You can’t perform that action at this time.
0 commit comments