@@ -3,11 +3,11 @@ |
||
3 | 3 | * Divider with image and color (light) block pattern |
4 | 4 | */ |
5 | 5 | return array( |
6 | - 'title' => __( 'Divider with image and color (light)', 'twentytwentytwo' ), |
|
7 | - 'categories' => array( 'featured' ), |
|
6 | + 'title' => __('Divider with image and color (light)', 'twentytwentytwo'), |
|
7 | + 'categories' => array('featured'), |
|
8 | 8 | 'content' => '<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"1rem","right":"0px","bottom":"1rem","left":"0px"}}},"backgroundColor":"secondary"} --> |
9 | 9 | <div class="wp-block-group alignfull has-secondary-background-color has-background" style="padding-top:1rem;padding-right:0px;padding-bottom:1rem;padding-left:0px"><!-- wp:image {"id":473,"sizeSlug":"full","linkDestination":"none"} --> |
10 | - <figure class="wp-block-image size-full"><img src="' . esc_url( get_template_directory_uri() ) . '/assets/images/divider-black.png" alt="" class="wp-image-473"/></figure> |
|
10 | + <figure class="wp-block-image size-full"><img src="' . esc_url(get_template_directory_uri()).'/assets/images/divider-black.png" alt="" class="wp-image-473"/></figure> |
|
11 | 11 | <!-- /wp:image --></div> |
12 | 12 | <!-- /wp:group -->', |
13 | 13 | ); |
@@ -3,9 +3,9 @@ |
||
3 | 3 | * Title and button header block pattern |
4 | 4 | */ |
5 | 5 | return array( |
6 | - 'title' => __( 'Title and button header', 'twentytwentytwo' ), |
|
7 | - 'categories' => array( 'header' ), |
|
8 | - 'blockTypes' => array( 'core/template-part/header' ), |
|
6 | + 'title' => __('Title and button header', 'twentytwentytwo'), |
|
7 | + 'categories' => array('header'), |
|
8 | + 'blockTypes' => array('core/template-part/header'), |
|
9 | 9 | 'content' => '<!-- wp:group {"align":"full","layout":{"inherit":true}} --> |
10 | 10 | <div class="wp-block-group alignfull"><!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"bottom":"var(--wp--custom--spacing--large, 8rem)","top":"var(--wp--custom--spacing--small, 1.25rem)"}}},"layout":{"type":"flex","justifyContent":"space-between"}} --> |
11 | 11 | <div class="wp-block-group alignwide" style="padding-top:var(--wp--custom--spacing--small, 1.25rem);padding-bottom:var(--wp--custom--spacing--large, 8rem)"><!-- wp:site-title {"style":{"spacing":{"margin":{"top":"0px","bottom":"0px"}},"typography":{"fontStyle":"normal","fontWeight":"700"}}} /--> |
@@ -3,23 +3,23 @@ discard block |
||
3 | 3 | * Wide image with introduction and buttons block pattern |
4 | 4 | */ |
5 | 5 | return array( |
6 | - 'title' => __( 'Wide image with introduction and buttons', 'twentytwentytwo' ), |
|
7 | - 'categories' => array( 'featured', 'columns' ), |
|
6 | + 'title' => __('Wide image with introduction and buttons', 'twentytwentytwo'), |
|
7 | + 'categories' => array('featured', 'columns'), |
|
8 | 8 | 'content' => '<!-- wp:group {"align":"wide"} --> |
9 | 9 | <div class="wp-block-group alignwide"><!-- wp:image {"sizeSlug":"large"} --> |
10 | - <figure class="wp-block-image size-large"><img src="' . esc_url( get_template_directory_uri() ) . '/assets/images/flight-path-on-gray-a.jpg" alt="' . esc_attr__( 'Illustration of a bird flying.', 'twentytwentytwo' ) . '"/></figure> |
|
10 | + <figure class="wp-block-image size-large"><img src="' . esc_url(get_template_directory_uri()).'/assets/images/flight-path-on-gray-a.jpg" alt="'.esc_attr__('Illustration of a bird flying.', 'twentytwentytwo').'"/></figure> |
|
11 | 11 | <!-- /wp:image --> |
12 | 12 | |
13 | 13 | <!-- wp:columns {"verticalAlignment":null} --> |
14 | 14 | <div class="wp-block-columns"><!-- wp:column {"verticalAlignment":"bottom"} --> |
15 | 15 | <div class="wp-block-column is-vertically-aligned-bottom"><!-- wp:heading {"style":{"typography":{"fontSize":"clamp(3.25rem, 8vw, 6.25rem)","lineHeight":"1.15"}}} --> |
16 | - <h2 style="font-size:clamp(3.25rem, 8vw, 6.25rem);line-height:1.15"><em>' . wp_kses_post( __( 'Welcome to<br>the Aviary', 'twentytwentytwo' ) ) . '</em></h2> |
|
16 | + <h2 style="font-size:clamp(3.25rem, 8vw, 6.25rem);line-height:1.15"><em>' . wp_kses_post(__('Welcome to<br>the Aviary', 'twentytwentytwo')).'</em></h2> |
|
17 | 17 | <!-- /wp:heading --></div> |
18 | 18 | <!-- /wp:column --> |
19 | 19 | |
20 | 20 | <!-- wp:column {"verticalAlignment":"bottom","style":{"spacing":{"padding":{"bottom":"6rem"}}}} --> |
21 | 21 | <div class="wp-block-column is-vertically-aligned-bottom" style="padding-bottom:6rem"><!-- wp:paragraph --> |
22 | - <p>' . esc_html__( 'A film about hobbyist bird watchers, a catalog of different birds, paired with the noises they make. Each bird is listed by their scientific name so things seem more official.', 'twentytwentytwo' ) . '</p> |
|
22 | + <p>' . esc_html__('A film about hobbyist bird watchers, a catalog of different birds, paired with the noises they make. Each bird is listed by their scientific name so things seem more official.', 'twentytwentytwo').'</p> |
|
23 | 23 | <!-- /wp:paragraph --> |
24 | 24 | |
25 | 25 | <!-- wp:spacer {"height":20} --> |
@@ -28,11 +28,11 @@ discard block |
||
28 | 28 | |
29 | 29 | <!-- wp:buttons --> |
30 | 30 | <div class="wp-block-buttons"><!-- wp:button {"className":"is-style-outline"} --> |
31 | - <div class="wp-block-button is-style-outline"><a class="wp-block-button__link">' . esc_html__( 'Learn More', 'twentytwentytwo' ) . '</a></div> |
|
31 | + <div class="wp-block-button is-style-outline"><a class="wp-block-button__link">' . esc_html__('Learn More', 'twentytwentytwo').'</a></div> |
|
32 | 32 | <!-- /wp:button --> |
33 | 33 | |
34 | 34 | <!-- wp:button {"className":"is-style-outline"} --> |
35 | - <div class="wp-block-button is-style-outline"><a class="wp-block-button__link">' . esc_html__( 'Buy Tickets', 'twentytwentytwo' ) . '</a></div> |
|
35 | + <div class="wp-block-button is-style-outline"><a class="wp-block-button__link">' . esc_html__('Buy Tickets', 'twentytwentytwo').'</a></div> |
|
36 | 36 | <!-- /wp:button --></div> |
37 | 37 | <!-- /wp:buttons --></div> |
38 | 38 | <!-- /wp:column --></div> |
@@ -3,8 +3,8 @@ discard block |
||
3 | 3 | * Blog posts with right sidebar block pattern |
4 | 4 | */ |
5 | 5 | return array( |
6 | - 'title' => __( 'Blog posts with right sidebar', 'twentytwentytwo' ), |
|
7 | - 'categories' => array( 'pages' ), |
|
6 | + 'title' => __('Blog posts with right sidebar', 'twentytwentytwo'), |
|
7 | + 'categories' => array('pages'), |
|
8 | 8 | 'content' => '<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"var(--wp--custom--spacing--small, 1.25rem)","bottom":"var(--wp--custom--spacing--small, 1.25rem)"}}},"layout":{"inherit":true}} --> |
9 | 9 | <div class="wp-block-group alignfull" 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":"2rem","top":"0px","right":"0px","left":"0px"}}},"layout":{"type":"flex","justifyContent":"space-between"}} --> |
10 | 10 | <div class="wp-block-group alignwide" style="padding-top:0px;padding-right:0px;padding-bottom:2rem;padding-left:0px"><!-- wp:group {"layout":{"type":"flex"}} --> |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | |
56 | 56 | <!-- wp:column {"width":"33.33%"} --> |
57 | 57 | <div class="wp-block-column" style="flex-basis:33.33%"><!-- wp:image {"sizeSlug":"large","linkDestination":"none"} --> |
58 | - <figure class="wp-block-image size-large"><img src="' . esc_url( get_template_directory_uri() ) . '/assets/images/flight-path-on-salmon.jpg" alt="' . esc_attr__( 'Illustration of a flying bird.', 'twentytwentytwo' ) . '"/></figure> |
|
58 | + <figure class="wp-block-image size-large"><img src="' . esc_url(get_template_directory_uri()).'/assets/images/flight-path-on-salmon.jpg" alt="'.esc_attr__('Illustration of a flying bird.', 'twentytwentytwo').'"/></figure> |
|
59 | 59 | <!-- /wp:image --> |
60 | 60 | |
61 | 61 | <!-- wp:spacer {"height":4} --> |
@@ -71,13 +71,13 @@ discard block |
||
71 | 71 | <!-- /wp:spacer --> |
72 | 72 | |
73 | 73 | <!-- wp:heading {"level":4,"fontSize":"large"} --> |
74 | - <h4 class="has-large-font-size"><em>' . esc_html__( 'Categories', 'twentytwentytwo' ) . '</em></h4> |
|
74 | + <h4 class="has-large-font-size"><em>' . esc_html__('Categories', 'twentytwentytwo').'</em></h4> |
|
75 | 75 | <!-- /wp:heading --> |
76 | 76 | |
77 | 77 | <!-- wp:tag-cloud {"taxonomy":"category","showTagCounts":true} /--> |
78 | 78 | |
79 | 79 | <!-- wp:heading {"level":4,"fontSize":"large"} --> |
80 | - <h4 class="has-large-font-size"><em>' . esc_html__( 'Tags', 'twentytwentytwo' ) . '</em></h4> |
|
80 | + <h4 class="has-large-font-size"><em>' . esc_html__('Tags', 'twentytwentytwo').'</em></h4> |
|
81 | 81 | <!-- /wp:heading --> |
82 | 82 | |
83 | 83 | <!-- wp:tag-cloud {"showTagCounts":true} /--></div> |
@@ -3,18 +3,18 @@ discard block |
||
3 | 3 | * About page with large image and buttons |
4 | 4 | */ |
5 | 5 | return array( |
6 | - 'title' => __( 'About page with large image and buttons', 'twentytwentytwo' ), |
|
7 | - 'categories' => array( 'pages', 'buttons' ), |
|
6 | + 'title' => __('About page with large image and buttons', 'twentytwentytwo'), |
|
7 | + 'categories' => array('pages', 'buttons'), |
|
8 | 8 | 'content' => '<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"var(--wp--custom--spacing--small, 1.25rem)","bottom":"var(--wp--custom--spacing--small, 1.25rem)"}}},"layout":{"inherit":true}} --> |
9 | 9 | <div class="wp-block-group alignfull" style="padding-top:var(--wp--custom--spacing--small, 1.25rem);padding-bottom:var(--wp--custom--spacing--small, 1.25rem)"><!-- wp:image {"align":"wide","sizeSlug":"full","linkDestination":"none"} --> |
10 | - <figure class="wp-block-image alignwide size-full"><img src="' . esc_url( get_template_directory_uri() ) . '/assets/images/flight-path-on-gray-b.jpg" alt=""/></figure> |
|
10 | + <figure class="wp-block-image alignwide size-full"><img src="' . esc_url(get_template_directory_uri()).'/assets/images/flight-path-on-gray-b.jpg" alt=""/></figure> |
|
11 | 11 | <!-- /wp:image --> |
12 | 12 | |
13 | 13 | <!-- wp:columns {"align":"wide"} --> |
14 | 14 | <div class="wp-block-columns alignwide"><!-- wp:column --> |
15 | 15 | <div class="wp-block-column"><!-- wp:buttons --> |
16 | 16 | <div class="wp-block-buttons"><!-- wp:button {"width":100} --> |
17 | - <div class="wp-block-button has-custom-width wp-block-button__width-100"><a class="wp-block-button__link">' . esc_html__( 'Purchase my work', 'twentytwentytwo' ) . '</a></div> |
|
17 | + <div class="wp-block-button has-custom-width wp-block-button__width-100"><a class="wp-block-button__link">' . esc_html__('Purchase my work', 'twentytwentytwo').'</a></div> |
|
18 | 18 | <!-- /wp:button --></div> |
19 | 19 | <!-- /wp:buttons --></div> |
20 | 20 | <!-- /wp:column --> |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | <!-- wp:column --> |
23 | 23 | <div class="wp-block-column"><!-- wp:buttons --> |
24 | 24 | <div class="wp-block-buttons"><!-- wp:button {"width":100} --> |
25 | - <div class="wp-block-button has-custom-width wp-block-button__width-100"><a class="wp-block-button__link">' . esc_html__( 'Support my studio', 'twentytwentytwo' ) . '</a></div> |
|
25 | + <div class="wp-block-button has-custom-width wp-block-button__width-100"><a class="wp-block-button__link">' . esc_html__('Support my studio', 'twentytwentytwo').'</a></div> |
|
26 | 26 | <!-- /wp:button --></div> |
27 | 27 | <!-- /wp:buttons --></div> |
28 | 28 | <!-- /wp:column --> |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | <!-- wp:column --> |
31 | 31 | <div class="wp-block-column"><!-- wp:buttons --> |
32 | 32 | <div class="wp-block-buttons"><!-- wp:button {"width":100} --> |
33 | - <div class="wp-block-button has-custom-width wp-block-button__width-100"><a class="wp-block-button__link">' . esc_html__( 'Take a class', 'twentytwentytwo' ) . '</a></div> |
|
33 | + <div class="wp-block-button has-custom-width wp-block-button__width-100"><a class="wp-block-button__link">' . esc_html__('Take a class', 'twentytwentytwo').'</a></div> |
|
34 | 34 | <!-- /wp:button --></div> |
35 | 35 | <!-- /wp:buttons --></div> |
36 | 36 | <!-- /wp:column --></div> |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | <div class="wp-block-columns alignwide"><!-- wp:column --> |
41 | 41 | <div class="wp-block-column"><!-- wp:buttons --> |
42 | 42 | <div class="wp-block-buttons"><!-- wp:button {"width":100} --> |
43 | - <div class="wp-block-button has-custom-width wp-block-button__width-100"><a class="wp-block-button__link">' . esc_html__( 'Read about me', 'twentytwentytwo' ) . '</a></div> |
|
43 | + <div class="wp-block-button has-custom-width wp-block-button__width-100"><a class="wp-block-button__link">' . esc_html__('Read about me', 'twentytwentytwo').'</a></div> |
|
44 | 44 | <!-- /wp:button --></div> |
45 | 45 | <!-- /wp:buttons --></div> |
46 | 46 | <!-- /wp:column --> |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | <!-- wp:column --> |
49 | 49 | <div class="wp-block-column"><!-- wp:buttons --> |
50 | 50 | <div class="wp-block-buttons"><!-- wp:button {"width":100} --> |
51 | - <div class="wp-block-button has-custom-width wp-block-button__width-100"><a class="wp-block-button__link">' . esc_html__( 'Learn about my process', 'twentytwentytwo' ) . '</a></div> |
|
51 | + <div class="wp-block-button has-custom-width wp-block-button__width-100"><a class="wp-block-button__link">' . esc_html__('Learn about my process', 'twentytwentytwo').'</a></div> |
|
52 | 52 | <!-- /wp:button --></div> |
53 | 53 | <!-- /wp:buttons --></div> |
54 | 54 | <!-- /wp:column --> |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | <!-- wp:column --> |
57 | 57 | <div class="wp-block-column"><!-- wp:buttons --> |
58 | 58 | <div class="wp-block-buttons"><!-- wp:button {"width":100} --> |
59 | - <div class="wp-block-button has-custom-width wp-block-button__width-100"><a class="wp-block-button__link">' . esc_html__( 'Join my mailing list', 'twentytwentytwo' ) . '</a></div> |
|
59 | + <div class="wp-block-button has-custom-width wp-block-button__width-100"><a class="wp-block-button__link">' . esc_html__('Join my mailing list', 'twentytwentytwo').'</a></div> |
|
60 | 60 | <!-- /wp:button --></div> |
61 | 61 | <!-- /wp:buttons --></div> |
62 | 62 | <!-- /wp:column --></div> |
@@ -3,9 +3,9 @@ |
||
3 | 3 | * Centered header with navigation, social links, and salmon background block pattern |
4 | 4 | */ |
5 | 5 | return array( |
6 | - 'title' => __( 'Centered header with navigation, social links, and salmon background', 'twentytwentytwo' ), |
|
7 | - 'categories' => array( 'header' ), |
|
8 | - 'blockTypes' => array( 'core/template-part/header' ), |
|
6 | + 'title' => __('Centered header with navigation, social links, and salmon 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|primary"}}},"spacing":{"padding":{"top":"var(--wp--custom--spacing--small, 1.25rem)","bottom":"var(--wp--custom--spacing--small, 1.25rem)"}}},"backgroundColor":"secondary","textColor":"primary","layout":{"inherit":true}} --> |
10 | 10 | <div class="wp-block-group alignfull has-primary-color has-secondary-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:columns {"verticalAlignment":"center","align":"wide"} --> |
11 | 11 | <div class="wp-block-columns alignwide are-vertically-aligned-center"><!-- wp:column {"verticalAlignment":"center"} --> |
@@ -3,15 +3,15 @@ discard block |
||
3 | 3 | * About page on solid color background |
4 | 4 | */ |
5 | 5 | return array( |
6 | - 'title' => __( 'About page on solid color background', 'twentytwentytwo' ), |
|
7 | - 'categories' => array( 'pages' ), |
|
6 | + 'title' => __('About page on solid color background', 'twentytwentytwo'), |
|
7 | + 'categories' => array('pages'), |
|
8 | 8 | 'content' => '<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"1.25rem","right":"1.25rem","bottom":"1.25rem","left":"1.25rem"}}}} --> |
9 | 9 | <div class="wp-block-group alignfull" style="padding-top:1.25rem;padding-right:1.25rem;padding-bottom:1.25rem;padding-left:1.25rem"><!-- wp:cover {"overlayColor":"secondary","minHeight":80,"minHeightUnit":"vh","isDark":false,"align":"full"} --> |
10 | 10 | <div class="wp-block-cover alignfull is-light" style="min-height:80vh"><span aria-hidden="true" class="has-secondary-background-color has-background-dim-100 wp-block-cover__gradient-background has-background-dim"></span><div class="wp-block-cover__inner-container"><!-- wp:group {"layout":{"inherit":false,"contentSize":"400px"}} --> |
11 | 11 | <div class="wp-block-group"><!-- wp:spacer {"height":64} --> |
12 | 12 | <div style="height:64px" aria-hidden="true" class="wp-block-spacer"></div> |
13 | 13 | <!-- /wp:spacer --><!-- wp:heading {"style":{"typography":{"lineHeight":"1","textTransform":"uppercase","fontSize":"clamp(2.75rem, 6vw, 3.25rem)"}}} --> |
14 | - <h2 id="edvard-smith" style="font-size:clamp(2.75rem, 6vw, 3.25rem);line-height:1;text-transform:uppercase">' . wp_kses_post( __( 'Edvard<br>Smith', 'twentytwentytwo' ) ) . '</h2> |
|
14 | + <h2 id="edvard-smith" style="font-size:clamp(2.75rem, 6vw, 3.25rem);line-height:1;text-transform:uppercase">' . wp_kses_post(__('Edvard<br>Smith', 'twentytwentytwo')).'</h2> |
|
15 | 15 | <!-- /wp:heading --> |
16 | 16 | |
17 | 17 | <!-- wp:spacer {"height":8} --> |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | <!-- /wp:spacer --> |
20 | 20 | |
21 | 21 | <!-- wp:paragraph {"fontSize":"small"} --> |
22 | - <p class="has-small-font-size">' . esc_html__( 'Oh hello. My name’s Edvard, and you’ve found your way to my website. I’m an avid bird watcher, and I also broadcast my own radio show every Tuesday evening at 11PM EDT. Listen in sometime!', 'twentytwentytwo' ) . '</p> |
|
22 | + <p class="has-small-font-size">' . esc_html__('Oh hello. My name’s Edvard, and you’ve found your way to my website. I’m an avid bird watcher, and I also broadcast my own radio show every Tuesday evening at 11PM EDT. Listen in sometime!', 'twentytwentytwo').'</p> |
|
23 | 23 | <!-- /wp:paragraph --> |
24 | 24 | |
25 | 25 | <!-- wp:spacer {"height":8} --> |
@@ -3,9 +3,9 @@ |
||
3 | 3 | * Header with tagline block pattern |
4 | 4 | */ |
5 | 5 | return array( |
6 | - 'title' => __( 'Header with tagline', 'twentytwentytwo' ), |
|
7 | - 'categories' => array( 'header' ), |
|
8 | - 'blockTypes' => array( 'core/template-part/header' ), |
|
6 | + 'title' => __('Header with tagline', 'twentytwentytwo'), |
|
7 | + 'categories' => array('header'), |
|
8 | + 'blockTypes' => array('core/template-part/header'), |
|
9 | 9 | 'content' => '<!-- wp:group {"align":"full","layout":{"inherit":true}} --> |
10 | 10 | <div class="wp-block-group alignfull"><!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"bottom":"var(--wp--custom--spacing--large, 8rem)","top":"var(--wp--custom--spacing--small, 1.25rem)"}}},"layout":{"type":"flex","justifyContent":"space-between"}} --> |
11 | 11 | <div class="wp-block-group alignwide" style="padding-top:var(--wp--custom--spacing--small, 1.25rem);padding-bottom:var(--wp--custom--spacing--large, 8rem)"><!-- wp:group {"layout":{"type":"flex"}} --> |
@@ -3,9 +3,9 @@ |
||
3 | 3 | * Irregular grid of posts block pattern |
4 | 4 | */ |
5 | 5 | return array( |
6 | - 'title' => __( 'Irregular grid of posts', 'twentytwentytwo' ), |
|
7 | - 'categories' => array( 'query' ), |
|
8 | - 'blockTypes' => array( 'core/query' ), |
|
6 | + 'title' => __('Irregular grid of posts', 'twentytwentytwo'), |
|
7 | + 'categories' => array('query'), |
|
8 | + 'blockTypes' => array('core/query'), |
|
9 | 9 | 'content' => '<!-- wp:group {"align":"wide"} --> |
10 | 10 | <div class="wp-block-group alignwide"><!-- wp:columns {"align":"wide"} --> |
11 | 11 | <div class="wp-block-columns alignwide"><!-- wp:column --> |