diff --git a/theme/inc/Block_Patterns/Block_Patterns.php b/theme/inc/Block_Patterns/Block_Patterns.php index 72ce67fe..6acf1d14 100644 --- a/theme/inc/Block_Patterns/Block_Patterns.php +++ b/theme/inc/Block_Patterns/Block_Patterns.php @@ -64,41 +64,19 @@ public function register_block_pattern_categories() { * @return void */ public function register_block_patterns() { - /* - Reminder: Remove Image IDs! - BOILERPLATE: - register_block_pattern( - 'lhpbpt/my-pattern-name', - array( - 'title' => _x( 'Pattern Name', 'pattern title', 'lhpbpt' ), - 'description' => __( 'Pattern Description', 'lhpbpt' ), - // phpcs:disable - 'content' => ' - -
Hanlo, I bims, 1 weld, lol :>
- - ', - // phpcs:enable - 'categories' => array( 'lhpbpt' ), - 'keywords' => array( - _x( 'Keyword name', 'block pattern keywords', 'lhpbpt' ), - _x( 'Keyword name', 'block pattern keywords', 'lhpbpt' ), - ), - ) - ); - */ register_block_pattern( 'lhpbpt/example-pattern', array( - 'title' => _x( 'Example Pattern', 'pattern title', 'lhpbpt' ), - 'description' => __( 'A simple example pattern. If you can read this at prod call an admin.', 'lhpbpt' ), + 'title' => _x( 'Example Pattern', 'pattern title', 'lhpbpt' ), + 'description' => __( 'A simple example pattern. If you can read this at prod call an admin.', 'lhpbpt' ), // phpcs:disable - 'content' => $this->get_block_pattern_string( get_stylesheet_directory() . '/inc/Block_Patterns/bp-example.php' ), + 'content' => $this->get_block_pattern_string( get_stylesheet_directory() . '/inc/Block_Patterns/bp-example.php' ), // phpcs:enable - 'categories' => array( 'lhpbpt-pattern' ), - 'keywords' => array( + 'categories' => array( 'lhpbpt-pattern' ), + 'keywords' => array( _x( 'Example', 'block pattern keywords', 'lhpbpt' ), ), + 'viewportWidth' => 1440, ) ); } diff --git a/theme/inc/Block_Patterns/bp-example.php b/theme/inc/Block_Patterns/bp-example.php index 268c9497..6848267f 100644 --- a/theme/inc/Block_Patterns/bp-example.php +++ b/theme/inc/Block_Patterns/bp-example.php @@ -6,11 +6,14 @@ */ ?> + +A simple example pattern. If you can read this at prod call an admin.
+ - -A simple example pattern. If you can read this at prod call an admin.
- - - - - + + + +