24 'query-medium-posts', |
24 'query-medium-posts', |
25 'query-small-posts', |
25 'query-small-posts', |
26 'query-grid-posts', |
26 'query-grid-posts', |
27 'query-large-title-posts', |
27 'query-large-title-posts', |
28 'query-offset-posts', |
28 'query-offset-posts', |
29 'social-links-shared-background-color', |
|
30 ); |
29 ); |
31 |
30 |
32 foreach ( $core_block_patterns as $core_block_pattern ) { |
31 foreach ( $core_block_patterns as $core_block_pattern ) { |
33 $pattern = require __DIR__ . '/block-patterns/' . $core_block_pattern . '.php'; |
32 $pattern = require __DIR__ . '/block-patterns/' . $core_block_pattern . '.php'; |
34 $pattern['source'] = 'core'; |
33 $pattern['source'] = 'core'; |
35 register_block_pattern( 'core/' . $core_block_pattern, $pattern ); |
34 register_block_pattern( 'core/' . $core_block_pattern, $pattern ); |
36 } |
35 } |
37 } |
36 } |
38 |
37 |
39 register_block_pattern_category( 'banner', array( 'label' => _x( 'Banners', 'Block pattern category' ) ) ); |
38 register_block_pattern_category( |
|
39 'banner', |
|
40 array( |
|
41 'label' => _x( 'Banners', 'Block pattern category' ), |
|
42 'description' => __( 'Bold sections designed to showcase key content.' ), |
|
43 ) |
|
44 ); |
40 register_block_pattern_category( |
45 register_block_pattern_category( |
41 'buttons', |
46 'buttons', |
42 array( |
47 array( |
43 'label' => _x( 'Buttons', 'Block pattern category' ), |
48 'label' => _x( 'Buttons', 'Block pattern category' ), |
44 'description' => __( 'Patterns that contain buttons and call to actions.' ), |
49 'description' => __( 'Patterns that contain buttons and call to actions.' ), |
73 ) |
78 ) |
74 ); |
79 ); |
75 register_block_pattern_category( |
80 register_block_pattern_category( |
76 'call-to-action', |
81 'call-to-action', |
77 array( |
82 array( |
78 'label' => _x( 'Call to Action', 'Block pattern category' ), |
83 'label' => _x( 'Call to action', 'Block pattern category' ), |
79 'description' => __( 'Sections whose purpose is to trigger a specific action.' ), |
84 'description' => __( 'Sections whose purpose is to trigger a specific action.' ), |
80 ) |
85 ) |
81 ); |
86 ); |
82 register_block_pattern_category( |
87 register_block_pattern_category( |
83 'team', |
88 'team', |