From 1186e53b45a533ea3a47740e79a832553ebe3d8e Mon Sep 17 00:00:00 2001 From: Dan Tovbein Date: Wed, 29 Jun 2022 09:39:55 -0300 Subject: [PATCH] Page creation UI integration - Create a "new blank" page as a pattern --- 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 0000000000..8639b0784e --- /dev/null +++ b/classes/patterns/class-blankpage.php @@ -0,0 +1,42 @@ + __( 'Blank page', 'planet4-blocks-backend' ), + 'blockTypes' => [ 'core/post-content' ], + 'categories' => [ 'planet4' ], + 'content' => ' + +

+ + ', + ]; + } +} diff --git a/classes/patterns/class-block-pattern.php b/classes/patterns/class-block-pattern.php index 9a1bc78ae7..f69029877e 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,