@@ -3,9 +3,9 @@ |
||
3 | 3 | * Logo, navigation, and social links header with black background block pattern |
4 | 4 | */ |
5 | 5 | return array( |
6 | - 'title' => __( 'Logo, navigation, and social links header with black background', 'twentytwentytwo' ), |
|
7 | - 'categories' => array( 'header' ), |
|
8 | - 'blockTypes' => array( 'core/template-part/header' ), |
|
6 | + 'title' => __('Logo, navigation, and social links header with black background', 'twentytwentytwo'), |
|
7 | + 'categories' => array('header'), |
|
8 | + 'blockTypes' => array('core/template-part/header'), |
|
9 | 9 | 'content' => '<!-- wp:group {"align":"full","style":{"elements":{"link":{"color":{"text":"var:preset|color|background"}}},"spacing":{"padding":{"top":"var(--wp--custom--spacing--small, 1.25rem)","bottom":"var(--wp--custom--spacing--small, 1.25rem)"}}},"backgroundColor":"foreground","textColor":"background","layout":{"inherit":true}} --> |
10 | 10 | <div class="wp-block-group alignfull has-background-color has-foreground-background-color has-text-color has-background has-link-color" style="padding-top:var(--wp--custom--spacing--small, 1.25rem);padding-bottom:var(--wp--custom--spacing--small, 1.25rem)"><!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"bottom":"0rem","top":"0px","right":"0px","left":"0px"}}},"layout":{"type":"flex","justifyContent":"space-between"}} --> |
11 | 11 | <div class="wp-block-group alignwide" style="padding-top:0px;padding-right:0px;padding-bottom:0rem;padding-left:0px"><!-- wp:site-logo {"width":64} /--> |
@@ -3,12 +3,12 @@ discard block |
||
3 | 3 | * Large list of names block pattern |
4 | 4 | */ |
5 | 5 | return array( |
6 | - 'title' => __( 'Large list of names', 'twentytwentytwo' ), |
|
7 | - 'categories' => array( 'featured', 'text' ), |
|
6 | + 'title' => __('Large list of names', 'twentytwentytwo'), |
|
7 | + 'categories' => array('featured', 'text'), |
|
8 | 8 | 'content' => '<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"6rem","bottom":"6rem"}},"elements":{"link":{"color":{"text":"var:preset|color|primary"}}}},"backgroundColor":"tertiary","textColor":"primary","layout":{"inherit":true}} --> |
9 | 9 | <div class="wp-block-group alignfull has-primary-color has-tertiary-background-color has-text-color has-background has-link-color" style="padding-top:6rem;padding-bottom:6rem"><!-- wp:group {"align":"wide"} --> |
10 | 10 | <div class="wp-block-group alignwide"><!-- wp:image {"width":175,"height":82,"sizeSlug":"full","linkDestination":"none"} --> |
11 | - <figure class="wp-block-image size-full is-resized"><img src="' . esc_url( get_template_directory_uri() ) . '/assets/images/icon-binoculars.png" alt="' . esc_attr__( 'An icon representing binoculars.', 'twentytwentytwo' ) . '" width="175" height="82"/></figure> |
|
11 | + <figure class="wp-block-image size-full is-resized"><img src="' . esc_url(get_template_directory_uri()).'/assets/images/icon-binoculars.png" alt="'.esc_attr__('An icon representing binoculars.', 'twentytwentytwo').'" width="175" height="82"/></figure> |
|
12 | 12 | <!-- /wp:image --></div> |
13 | 13 | <!-- /wp:group --> |
14 | 14 | |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | <!-- /wp:spacer --> |
19 | 19 | |
20 | 20 | <!-- wp:paragraph {"style":{"typography":{"fontWeight":"300"}},"fontSize":"x-large"} --> |
21 | - <p class="has-x-large-font-size" style="font-weight:300">' . esc_html__( 'Jesús Rodriguez, Doug Stilton, Emery Driscoll, Megan Perry, Rowan Price, Angelo Tso, Edward Stilton, Amy Jensen, Boston Bell, Shay Ford, Lee Cunningham, Evelynn Ray, Landen Reese, Ewan Hart, Jenna Chan, Phoenix Murray, Mel Saunders, Aldo Davidson, Zain Hall.', 'twentytwentytwo' ) . '</p> |
|
21 | + <p class="has-x-large-font-size" style="font-weight:300">' . esc_html__('Jesús Rodriguez, Doug Stilton, Emery Driscoll, Megan Perry, Rowan Price, Angelo Tso, Edward Stilton, Amy Jensen, Boston Bell, Shay Ford, Lee Cunningham, Evelynn Ray, Landen Reese, Ewan Hart, Jenna Chan, Phoenix Murray, Mel Saunders, Aldo Davidson, Zain Hall.', 'twentytwentytwo').'</p> |
|
22 | 22 | <!-- /wp:paragraph --> |
23 | 23 | |
24 | 24 | <!-- wp:spacer {"height":32} --> |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | |
28 | 28 | <!-- wp:buttons --> |
29 | 29 | <div class="wp-block-buttons"><!-- wp:button {"backgroundColor":"primary","textColor":"background"} --> |
30 | - <div class="wp-block-button"><a class="wp-block-button__link has-background-color has-primary-background-color has-text-color has-background">' . esc_html__( 'Read more', 'twentytwentytwo' ) . '</a></div> |
|
30 | + <div class="wp-block-button"><a class="wp-block-button__link has-background-color has-primary-background-color has-text-color has-background">' . esc_html__('Read more', 'twentytwentytwo').'</a></div> |
|
31 | 31 | <!-- /wp:button --></div> |
32 | 32 | <!-- /wp:buttons --></div> |
33 | 33 | <!-- /wp:group --></div> |
@@ -3,9 +3,9 @@ |
||
3 | 3 | * Simple blog posts block pattern |
4 | 4 | */ |
5 | 5 | return array( |
6 | - 'title' => __( 'Simple blog posts', 'twentytwentytwo' ), |
|
7 | - 'categories' => array( 'query' ), |
|
8 | - 'blockTypes' => array( 'core/query' ), |
|
6 | + 'title' => __('Simple blog posts', 'twentytwentytwo'), |
|
7 | + 'categories' => array('query'), |
|
8 | + 'blockTypes' => array('core/query'), |
|
9 | 9 | 'content' => '<!-- wp:query {"query":{"perPage":3,"pages":0,"offset":0,"postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true,"perPage":10},"layout":{"inherit":true}} --> |
10 | 10 | <div class="wp-block-query"><!-- wp:post-template --> |
11 | 11 | <!-- wp:post-title {"isLink":true,"style":{"spacing":{"margin":{"top":"1rem","bottom":"1rem"}},"typography":{"fontStyle":"normal","fontWeight":"300"},"elements":{"link":{"color":{"text":"var:preset|color|primary"}}}},"textColor":"primary","fontSize":"var(--wp--custom--typography--font-size--huge, clamp(2.25rem, 4vw, 2.75rem))"} /--> |
@@ -3,22 +3,22 @@ discard block |
||
3 | 3 | * About page links |
4 | 4 | */ |
5 | 5 | return array( |
6 | - 'title' => __( 'About page links', 'twentytwentytwo' ), |
|
7 | - 'categories' => array( 'pages', 'buttons' ), |
|
6 | + 'title' => __('About page links', 'twentytwentytwo'), |
|
7 | + 'categories' => array('pages', 'buttons'), |
|
8 | 8 | 'content' => '<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"10rem","bottom":"10rem"}}},"layout":{"inherit":false,"contentSize":"400px"}} --> |
9 | 9 | <div class="wp-block-group alignfull" style="padding-top:10rem;padding-bottom:10rem;"><!-- wp:image {"align":"center","width":100,"height":100,"sizeSlug":"full","linkDestination":"none","className":"is-style-rounded"} --> |
10 | - <div class="wp-block-image is-style-rounded"><figure class="aligncenter size-full is-resized"><img src="' . esc_url( get_template_directory_uri() ) . '/assets/images/icon-bird.jpg" alt="' . esc_attr__( 'Logo featuring a flying bird', 'twentytwentytwo' ) . '" width="100" height="100"/></figure></div> |
|
10 | + <div class="wp-block-image is-style-rounded"><figure class="aligncenter size-full is-resized"><img src="' . esc_url(get_template_directory_uri()).'/assets/images/icon-bird.jpg" alt="'.esc_attr__('Logo featuring a flying bird', 'twentytwentytwo').'" width="100" height="100"/></figure></div> |
|
11 | 11 | <!-- /wp:image --> |
12 | 12 | |
13 | 13 | <!-- wp:group --> |
14 | 14 | <div class="wp-block-group"> |
15 | 15 | |
16 | 16 | <!-- wp:heading {"textAlign":"center","style":{"typography":{"fontSize":"var(--wp--custom--typography--font-size--huge, clamp(2.25rem, 4vw, 2.75rem))"}}} --> |
17 | - <h2 class="has-text-align-center" style="font-size:var(--wp--custom--typography--font-size--huge, clamp(2.25rem, 4vw, 2.75rem))">' . esc_html__( 'Swoop', 'twentytwentytwo' ) . '</h2> |
|
17 | + <h2 class="has-text-align-center" style="font-size:var(--wp--custom--typography--font-size--huge, clamp(2.25rem, 4vw, 2.75rem))">' . esc_html__('Swoop', 'twentytwentytwo').'</h2> |
|
18 | 18 | <!-- /wp:heading --> |
19 | 19 | |
20 | 20 | <!-- wp:paragraph {"align":"center"} --> |
21 | - <p class="has-text-align-center">' . esc_html__( 'A podcast about birds', 'twentytwentytwo' ) . '</p> |
|
21 | + <p class="has-text-align-center">' . esc_html__('A podcast about birds', 'twentytwentytwo').'</p> |
|
22 | 22 | <!-- /wp:paragraph --> |
23 | 23 | |
24 | 24 | <!-- wp:spacer {"height":40} --> |
@@ -27,23 +27,23 @@ discard block |
||
27 | 27 | |
28 | 28 | <!-- wp:buttons {"contentJustification":"left"} --> |
29 | 29 | <div class="wp-block-buttons is-content-justification-left"><!-- wp:button {"width":100,"style":{"border":{"radius":"6px"}},"className":"is-style-fill"} --> |
30 | - <div class="wp-block-button has-custom-width wp-block-button__width-100 is-style-fill"><a class="wp-block-button__link" style="border-radius:6px">' . esc_html__( 'Watch our videos', 'twentytwentytwo' ) . '</a></div> |
|
30 | + <div class="wp-block-button has-custom-width wp-block-button__width-100 is-style-fill"><a class="wp-block-button__link" style="border-radius:6px">' . esc_html__('Watch our videos', 'twentytwentytwo').'</a></div> |
|
31 | 31 | <!-- /wp:button --> |
32 | 32 | |
33 | 33 | <!-- wp:button {"width":100,"style":{"border":{"radius":"6px"}},"className":"is-style-fill"} --> |
34 | - <div class="wp-block-button has-custom-width wp-block-button__width-100 is-style-fill"><a class="wp-block-button__link" style="border-radius:6px">' . esc_html__( 'Listen on iTunes Podcasts', 'twentytwentytwo' ) . '</a></div> |
|
34 | + <div class="wp-block-button has-custom-width wp-block-button__width-100 is-style-fill"><a class="wp-block-button__link" style="border-radius:6px">' . esc_html__('Listen on iTunes Podcasts', 'twentytwentytwo').'</a></div> |
|
35 | 35 | <!-- /wp:button --> |
36 | 36 | |
37 | 37 | <!-- wp:button {"width":100,"style":{"border":{"radius":"6px"}},"className":"is-style-fill"} --> |
38 | - <div class="wp-block-button has-custom-width wp-block-button__width-100 is-style-fill"><a class="wp-block-button__link" style="border-radius:6px">' . esc_html__( 'Listen on Spotify', 'twentytwentytwo' ) . '</a></div> |
|
38 | + <div class="wp-block-button has-custom-width wp-block-button__width-100 is-style-fill"><a class="wp-block-button__link" style="border-radius:6px">' . esc_html__('Listen on Spotify', 'twentytwentytwo').'</a></div> |
|
39 | 39 | <!-- /wp:button --> |
40 | 40 | |
41 | 41 | <!-- wp:button {"width":100,"style":{"border":{"radius":"6px"}},"className":"is-style-fill"} --> |
42 | - <div class="wp-block-button has-custom-width wp-block-button__width-100 is-style-fill"><a class="wp-block-button__link" style="border-radius:6px">' . esc_html__( 'Support the show', 'twentytwentytwo' ) . '</a></div> |
|
42 | + <div class="wp-block-button has-custom-width wp-block-button__width-100 is-style-fill"><a class="wp-block-button__link" style="border-radius:6px">' . esc_html__('Support the show', 'twentytwentytwo').'</a></div> |
|
43 | 43 | <!-- /wp:button --> |
44 | 44 | |
45 | 45 | <!-- wp:button {"width":100,"style":{"border":{"radius":"6px"}},"className":"is-style-fill"} --> |
46 | - <div class="wp-block-button has-custom-width wp-block-button__width-100 is-style-fill"><a class="wp-block-button__link" style="border-radius:6px">' . esc_html__( 'About the hosts', 'twentytwentytwo' ) . '</a></div> |
|
46 | + <div class="wp-block-button has-custom-width wp-block-button__width-100 is-style-fill"><a class="wp-block-button__link" style="border-radius:6px">' . esc_html__('About the hosts', 'twentytwentytwo').'</a></div> |
|
47 | 47 | <!-- /wp:button --></div> |
48 | 48 | <!-- /wp:buttons --></div> |
49 | 49 | <!-- /wp:group --> |
@@ -3,9 +3,9 @@ |
||
3 | 3 | * Grid of image posts block pattern |
4 | 4 | */ |
5 | 5 | return array( |
6 | - 'title' => __( 'Grid of image posts', 'twentytwentytwo' ), |
|
7 | - 'categories' => array( 'query' ), |
|
8 | - 'blockTypes' => array( 'core/query' ), |
|
6 | + 'title' => __('Grid of image posts', 'twentytwentytwo'), |
|
7 | + 'categories' => array('query'), |
|
8 | + 'blockTypes' => array('core/query'), |
|
9 | 9 | 'content' => '<!-- wp:query {"query":{"offset":0,"postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","sticky":"","inherit":false,"perPage":12},"displayLayout":{"type":"flex","columns":3},"layout":{"inherit":true}} --> |
10 | 10 | <div class="wp-block-query"><!-- wp:post-template --> |
11 | 11 | <!-- wp:post-featured-image {"isLink":true,"width":"100%","height":"200px"} /--> |
@@ -6,9 +6,9 @@ |
||
6 | 6 | * It does not appear in the inserter. |
7 | 7 | */ |
8 | 8 | return array( |
9 | - 'title' => __( 'Heading and bird image', 'twentytwentytwo' ), |
|
9 | + 'title' => __('Heading and bird image', 'twentytwentytwo'), |
|
10 | 10 | 'inserter' => false, |
11 | 11 | 'content' => '<!-- wp:image {"align":"wide","sizeSlug":"full","linkDestination":"none"} --> |
12 | - <figure class="wp-block-image alignwide size-full"><img src="' . esc_url( get_template_directory_uri() ) . '/assets/images/flight-path-on-transparent-d.png" alt="' . esc_attr__( 'Illustration of a bird flying.', 'twentytwentytwo' ) . '"/></figure> |
|
12 | + <figure class="wp-block-image alignwide size-full"><img src="' . esc_url(get_template_directory_uri()).'/assets/images/flight-path-on-transparent-d.png" alt="'.esc_attr__('Illustration of a bird flying.', 'twentytwentytwo').'"/></figure> |
|
13 | 13 | <!-- /wp:image -->', |
14 | 14 | ); |
@@ -3,9 +3,9 @@ |
||
3 | 3 | * Text-only header with green background block pattern |
4 | 4 | */ |
5 | 5 | return array( |
6 | - 'title' => __( 'Text-only header with green background', 'twentytwentytwo' ), |
|
7 | - 'categories' => array( 'header' ), |
|
8 | - 'blockTypes' => array( 'core/template-part/header' ), |
|
6 | + 'title' => __('Text-only header with green background', 'twentytwentytwo'), |
|
7 | + 'categories' => array('header'), |
|
8 | + 'blockTypes' => array('core/template-part/header'), |
|
9 | 9 | 'content' => '<!-- wp:group {"align":"full","style":{"elements":{"link":{"color":{"text":"var:preset|color|background"}}},"spacing":{"padding":{"top":"var(--wp--custom--spacing--small, 1.25rem)","bottom":"var(--wp--custom--spacing--small, 1.25rem)"}}},"backgroundColor":"primary","textColor":"background","layout":{"inherit":true}} --> |
10 | 10 | <div class="wp-block-group alignfull has-background-color has-primary-background-color has-text-color has-background has-link-color" style="padding-top:var(--wp--custom--spacing--small, 1.25rem);padding-bottom:var(--wp--custom--spacing--small, 1.25rem)"><!-- wp:group {"align":"wide","layout":{"type":"flex","justifyContent":"space-between"}} --> |
11 | 11 | <div class="wp-block-group alignwide"><!-- wp:group --> |
@@ -3,11 +3,11 @@ |
||
3 | 3 | * Layered images with duotone block pattern |
4 | 4 | */ |
5 | 5 | return array( |
6 | - 'title' => __( 'Layered images with duotone', 'twentytwentytwo' ), |
|
7 | - 'categories' => array( 'featured', 'gallery' ), |
|
8 | - 'content' => '<!-- wp:cover {"url":"' . esc_url( get_template_directory_uri() ) . '/assets/images/ducks.jpg","dimRatio":0,"minHeight":666,"contentPosition":"center center","isDark":false,"align":"wide","style":{"spacing":{"padding":{"top":"1em","right":"1em","bottom":"1em","left":"1em"}},"color":{"duotone":["#000000","#FFFFFF"]}}} --> |
|
9 | - <div class="wp-block-cover alignwide is-light" style="padding-top:1em;padding-right:1em;padding-bottom:1em;padding-left:1em;min-height:666px"><span aria-hidden="true" class="has-background-dim-0 wp-block-cover__gradient-background has-background-dim"></span><img class="wp-block-cover__image-background" alt="' . esc_attr__( 'Painting of ducks in the water.', 'twentytwentytwo' ) . '" src="' . esc_url( get_template_directory_uri() ) . '/assets/images/ducks.jpg" data-object-fit="cover"/><div class="wp-block-cover__inner-container"><!-- wp:image {"align":"center","width":384,"height":580,"sizeSlug":"large"} --> |
|
10 | - <div class="wp-block-image"><figure class="aligncenter size-large is-resized"><img src="' . esc_url( get_template_directory_uri() ) . '/assets/images/flight-path-on-salmon.jpg" alt="' . esc_attr__( 'Illustration of a flying bird.', 'twentytwentytwo' ) . '" width="384" height="580"/></figure></div> |
|
6 | + 'title' => __('Layered images with duotone', 'twentytwentytwo'), |
|
7 | + 'categories' => array('featured', 'gallery'), |
|
8 | + 'content' => '<!-- wp:cover {"url":"'.esc_url(get_template_directory_uri()).'/assets/images/ducks.jpg","dimRatio":0,"minHeight":666,"contentPosition":"center center","isDark":false,"align":"wide","style":{"spacing":{"padding":{"top":"1em","right":"1em","bottom":"1em","left":"1em"}},"color":{"duotone":["#000000","#FFFFFF"]}}} --> |
|
9 | + <div class="wp-block-cover alignwide is-light" style="padding-top:1em;padding-right:1em;padding-bottom:1em;padding-left:1em;min-height:666px"><span aria-hidden="true" class="has-background-dim-0 wp-block-cover__gradient-background has-background-dim"></span><img class="wp-block-cover__image-background" alt="' . esc_attr__('Painting of ducks in the water.', 'twentytwentytwo').'" src="'.esc_url(get_template_directory_uri()).'/assets/images/ducks.jpg" data-object-fit="cover"/><div class="wp-block-cover__inner-container"><!-- wp:image {"align":"center","width":384,"height":580,"sizeSlug":"large"} --> |
|
10 | + <div class="wp-block-image"><figure class="aligncenter size-large is-resized"><img src="' . esc_url(get_template_directory_uri()).'/assets/images/flight-path-on-salmon.jpg" alt="'.esc_attr__('Illustration of a flying bird.', 'twentytwentytwo').'" width="384" height="580"/></figure></div> |
|
11 | 11 | <!-- /wp:image --></div></div> |
12 | 12 | <!-- /wp:cover -->', |
13 | 13 | ); |
@@ -3,9 +3,9 @@ |
||
3 | 3 | * Logo and navigation header with gray background |
4 | 4 | */ |
5 | 5 | return array( |
6 | - 'title' => __( 'Logo and navigation header with gray background', 'twentytwentytwo' ), |
|
7 | - 'categories' => array( 'header' ), |
|
8 | - 'blockTypes' => array( 'core/template-part/header' ), |
|
6 | + 'title' => __('Logo and navigation header with gray background', 'twentytwentytwo'), |
|
7 | + 'categories' => array('header'), |
|
8 | + 'blockTypes' => array('core/template-part/header'), |
|
9 | 9 | 'content' => '<!-- wp:group {"align":"full","style":{"elements":{"link":{"color":{"text":"var:preset|color|foreground"}}},"spacing":{"padding":{"top":"var(--wp--custom--spacing--small, 1.25rem)","bottom":"var(--wp--custom--spacing--small, 1.25rem)"}}},"backgroundColor":"tertiary","textColor":"foreground","layout":{"inherit":true}} --> |
10 | 10 | <div class="wp-block-group alignfull has-foreground-color has-tertiary-background-color has-text-color has-background has-link-color" style="padding-top:var(--wp--custom--spacing--small, 1.25rem);padding-bottom:var(--wp--custom--spacing--small, 1.25rem)"><!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"bottom":"0rem","top":"0px","right":"0px","left":"0px"}}},"layout":{"type":"flex","justifyContent":"space-between"}} --> |
11 | 11 | <div class="wp-block-group alignwide" style="padding-top:0px;padding-right:0px;padding-bottom:0rem;padding-left:0px"><!-- wp:site-logo {"width":64} /--> |