From 0e738055f16082a62b6a8d9774ba7d4aaefc479b Mon Sep 17 00:00:00 2001 From: Dan Tovbein Date: Fri, 1 Jul 2022 11:29:09 -0300 Subject: [PATCH] PLANET-6825: Page creation UI integration (#882) Page creation UI integration - Create a "new blank" page as a pattern Co-authored-by: Dan Tovbein --- classes/patterns/class-blankpage.php | 42 ++++++++++++++++++++++++ classes/patterns/class-block-pattern.php | 1 + 2 files changed, 43 insertions(+) create mode 100644 classes/patterns/class-blankpage.php diff --git a/classes/patterns/class-blankpage.php b/classes/patterns/class-blankpage.php new file mode 100644 index 000000000..22d17a020 --- /dev/null +++ b/classes/patterns/class-blankpage.php @@ -0,0 +1,42 @@ + __( 'Blank page', 'planet4-blocks-backend' ), + 'blockTypes' => [ 'core/post-content' ], + 'categories' => [ 'pages' ], + 'content' => ' + +

+ + ', + ]; + } +} diff --git a/classes/patterns/class-block-pattern.php b/classes/patterns/class-block-pattern.php index 9a1bc78ae..f69029877 100644 --- a/classes/patterns/class-block-pattern.php +++ b/classes/patterns/class-block-pattern.php @@ -35,6 +35,7 @@ public static function register_all() { } $patterns = [ + BlankPage::class, SideImageWithTextAndCta::class, HighlightedCta::class, RealityCheck::class,