@@ -3,9 +3,9 @@ |
||
3 | 3 | * Default header block pattern |
4 | 4 | */ |
5 | 5 | return array( |
6 | - 'title' => __( 'Default header', 'twentytwentytwo' ), |
|
7 | - 'categories' => array( 'header' ), |
|
8 | - 'blockTypes' => array( 'core/template-part/header' ), |
|
6 | + 'title' => __('Default 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:group {"layout":{"type":"flex"}} --> |
@@ -3,11 +3,11 @@ |
||
3 | 3 | * Divider with image and color (dark) block pattern |
4 | 4 | */ |
5 | 5 | return array( |
6 | - 'title' => __( 'Divider with image and color (dark)', 'twentytwentytwo' ), |
|
7 | - 'categories' => array( 'featured' ), |
|
6 | + 'title' => __('Divider with image and color (dark)', 'twentytwentytwo'), |
|
7 | + 'categories' => array('featured'), |
|
8 | 8 | 'content' => '<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"1rem","right":"0px","bottom":"1rem","left":"0px"}}},"backgroundColor":"primary"} --> |
9 | 9 | <div class="wp-block-group alignfull has-primary-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-white.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-white.png" alt="" class="wp-image-473"/></figure> |
|
11 | 11 | <!-- /wp:image --></div> |
12 | 12 | <!-- /wp:group -->', |
13 | 13 | ); |
@@ -3,9 +3,9 @@ discard block |
||
3 | 3 | * Default footer |
4 | 4 | */ |
5 | 5 | return array( |
6 | - 'title' => __( 'Default footer', 'twentytwentytwo' ), |
|
7 | - 'categories' => array( 'footer' ), |
|
8 | - 'blockTypes' => array( 'core/template-part/footer' ), |
|
6 | + 'title' => __('Default footer', 'twentytwentytwo'), |
|
7 | + 'categories' => array('footer'), |
|
8 | + 'blockTypes' => array('core/template-part/footer'), |
|
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":{"top":"4rem","bottom":"4rem"}}},"layout":{"type":"flex","justifyContent":"space-between"}} --> |
11 | 11 | <div class="wp-block-group alignwide" style="padding-top:4rem;padding-bottom:4rem"><!-- wp:site-title {"level":0} /--> |
@@ -14,9 +14,9 @@ discard block |
||
14 | 14 | <p class="has-text-align-right">' . |
15 | 15 | sprintf( |
16 | 16 | /* Translators: WordPress link. */ |
17 | - esc_html__( 'Proudly powered by %s', 'twentytwentytwo' ), |
|
18 | - '<a href="' . esc_url( __( 'https://wordpress.org', 'twentytwentytwo' ) ) . '" rel="nofollow">WordPress</a>' |
|
19 | - ) . '</p> |
|
17 | + esc_html__('Proudly powered by %s', 'twentytwentytwo'), |
|
18 | + '<a href="'.esc_url(__('https://wordpress.org', 'twentytwentytwo')).'" rel="nofollow">WordPress</a>' |
|
19 | + ).'</p> |
|
20 | 20 | <!-- /wp:paragraph --></div> |
21 | 21 | <!-- /wp:group --></div> |
22 | 22 | <!-- /wp:group -->', |
@@ -3,8 +3,8 @@ |
||
3 | 3 | * Blog posts with left sidebar block pattern |
4 | 4 | */ |
5 | 5 | return array( |
6 | - 'title' => __( 'Blog posts with left sidebar', 'twentytwentytwo' ), |
|
7 | - 'categories' => array( 'pages' ), |
|
6 | + 'title' => __('Blog posts with left 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:columns {"align":"wide","style":{"spacing":{"margin":{"top":"0px","bottom":"0px"},"blockGap":"5%"},"elements":{"link":{"color":{"text":"var:preset|color|primary"}}}},"textColor":"primary"} --> |
10 | 10 | <div class="wp-block-columns alignwide has-primary-color has-text-color has-link-color" style="margin-top:0px;margin-bottom:0px"><!-- wp:column {"width":"33.33%"} --> |
@@ -3,23 +3,23 @@ |
||
3 | 3 | * Video trailer block pattern |
4 | 4 | */ |
5 | 5 | return array( |
6 | - 'title' => __( 'Video trailer', 'twentytwentytwo' ), |
|
7 | - 'categories' => array( 'featured', 'columns' ), |
|
6 | + 'title' => __('Video trailer', 'twentytwentytwo'), |
|
7 | + 'categories' => array('featured', 'columns'), |
|
8 | 8 | 'content' => '<!-- wp:group {"align":"full","style":{"elements":{"link":{"color":{"text":"var:preset|color|foreground"}}},"spacing":{"padding":{"top":"6rem","bottom":"4rem"}}},"backgroundColor":"secondary","textColor":"foreground","layout":{"inherit":true}} --> |
9 | 9 | <div class="wp-block-group alignfull has-foreground-color has-secondary-background-color has-text-color has-background has-link-color" style="padding-top:6rem;padding-bottom:4rem"><!-- wp:columns {"align":"wide"} --> |
10 | 10 | <div class="wp-block-columns alignwide"><!-- wp:column {"width":"33.33%"} --> |
11 | 11 | <div class="wp-block-column" style="flex-basis:33.33%"><!-- wp:heading {"fontSize":"x-large"} --> |
12 | - <h2 class="has-x-large-font-size" id="extended-trailer">' . esc_html__( 'Extended Trailer', 'twentytwentytwo' ) . '</h2> |
|
12 | + <h2 class="has-x-large-font-size" id="extended-trailer">' . esc_html__('Extended Trailer', 'twentytwentytwo').'</h2> |
|
13 | 13 | <!-- /wp:heading --> |
14 | 14 | |
15 | 15 | <!-- wp:paragraph --> |
16 | - <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> |
|
16 | + <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> |
|
17 | 17 | <!-- /wp:paragraph --></div> |
18 | 18 | <!-- /wp:column --> |
19 | 19 | |
20 | 20 | <!-- wp:column {"width":"66.66%"} --> |
21 | 21 | <div class="wp-block-column" style="flex-basis:66.66%"><!-- wp:video --> |
22 | - <figure class="wp-block-video"><video controls src="' . esc_url( get_template_directory_uri() ) . '/assets/videos/birds.mp4"></video></figure> |
|
22 | + <figure class="wp-block-video"><video controls src="' . esc_url(get_template_directory_uri()).'/assets/videos/birds.mp4"></video></figure> |
|
23 | 23 | <!-- /wp:video --></div> |
24 | 24 | <!-- /wp:column --></div> |
25 | 25 | <!-- /wp:columns --></div> |
@@ -3,9 +3,9 @@ |
||
3 | 3 | * Large post titles block pattern |
4 | 4 | */ |
5 | 5 | return array( |
6 | - 'title' => __( 'Large post titles', 'twentytwentytwo' ), |
|
7 | - 'categories' => array( 'query' ), |
|
8 | - 'blockTypes' => array( 'core/query' ), |
|
6 | + 'title' => __('Large post titles', 'twentytwentytwo'), |
|
7 | + 'categories' => array('query'), |
|
8 | + 'blockTypes' => array('core/query'), |
|
9 | 9 | 'content' => '<!-- wp:query {"query":{"pages":0,"offset":0,"postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false,"perPage":8},"align":"wide"} --> |
10 | 10 | <div class="wp-block-query alignwide"><!-- wp:post-template --> |
11 | 11 | <!-- wp:columns --> |
@@ -3,18 +3,18 @@ |
||
3 | 3 | * Footer with text, title, and logo |
4 | 4 | */ |
5 | 5 | return array( |
6 | - 'title' => __( 'Footer with text, title, and logo', 'twentytwentytwo' ), |
|
7 | - 'categories' => array( 'footer' ), |
|
8 | - 'blockTypes' => array( 'core/template-part/footer' ), |
|
6 | + 'title' => __('Footer with text, title, and logo', 'twentytwentytwo'), |
|
7 | + 'categories' => array('footer'), |
|
8 | + 'blockTypes' => array('core/template-part/footer'), |
|
9 | 9 | 'content' => '<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"var(--wp--custom--spacing--large, 8rem)","bottom":"6rem"}}},"backgroundColor":"secondary","layout":{"inherit":true}} --> |
10 | 10 | <div class="wp-block-group alignfull has-secondary-background-color has-background" style="padding-top:var(--wp--custom--spacing--large, 8rem);padding-bottom:6rem"><!-- wp:columns {"align":"wide"} --> |
11 | 11 | <div class="wp-block-columns alignwide"><!-- wp:column {"width":"33%"} --> |
12 | 12 | <div class="wp-block-column" style="flex-basis:33%"><!-- wp:paragraph {"style":{"typography":{"textTransform":"uppercase"}}} --> |
13 | - <p style="text-transform:uppercase">' . esc_html__( 'About us', 'twentytwentytwo' ) . '</p> |
|
13 | + <p style="text-transform:uppercase">' . esc_html__('About us', 'twentytwentytwo').'</p> |
|
14 | 14 | <!-- /wp:paragraph --> |
15 | 15 | |
16 | 16 | <!-- wp:paragraph {"style":{"fontSize":"small"} --> |
17 | - <p class="has-small-font-size">' . esc_html__( 'We are a rogue collective of bird watchers. We’ve been known to sneak through fences, climb perimeter walls, and generally trespass in order to observe the rarest of birds.', 'twentytwentytwo' ) . '</p> |
|
17 | + <p class="has-small-font-size">' . esc_html__('We are a rogue collective of bird watchers. We’ve been known to sneak through fences, climb perimeter walls, and generally trespass in order to observe the rarest of birds.', 'twentytwentytwo').'</p> |
|
18 | 18 | <!-- /wp:paragraph --> |
19 | 19 | |
20 | 20 | <!-- wp:spacer {"height":180} --> |
@@ -3,8 +3,8 @@ discard block |
||
3 | 3 | * Pricing table block pattern |
4 | 4 | */ |
5 | 5 | return array( |
6 | - 'title' => __( 'Pricing table', 'twentytwentytwo' ), |
|
7 | - 'categories' => array( 'featured', 'columns', 'buttons' ), |
|
6 | + 'title' => __('Pricing table', 'twentytwentytwo'), |
|
7 | + 'categories' => array('featured', 'columns', 'buttons'), |
|
8 | 8 | 'content' => '<!-- wp:columns {"align":"wide"} --> |
9 | 9 | <div class="wp-block-columns alignwide"><!-- wp:column --> |
10 | 10 | <div class="wp-block-column"><!-- wp:separator {"className":"is-style-wide"} --> |
@@ -12,20 +12,20 @@ discard block |
||
12 | 12 | <!-- /wp:separator --> |
13 | 13 | |
14 | 14 | <!-- wp:heading {"style":{"typography":{"fontSize":"var(--wp--custom--typography--font-size--gigantic, clamp(2.75rem, 6vw, 3.25rem))","lineHeight":"0.5"}}} --> |
15 | - <h2 id="1" style="font-size:var(--wp--custom--typography--font-size--gigantic, clamp(2.75rem, 6vw, 3.25rem));line-height:0.5">' . esc_html( _x( '1', 'First item in a numbered list.', 'twentytwentytwo' ) ) . '</h2> |
|
15 | + <h2 id="1" style="font-size:var(--wp--custom--typography--font-size--gigantic, clamp(2.75rem, 6vw, 3.25rem));line-height:0.5">' . esc_html(_x('1', 'First item in a numbered list.', 'twentytwentytwo')).'</h2> |
|
16 | 16 | <!-- /wp:heading --> |
17 | 17 | |
18 | 18 | <!-- wp:heading {"level":3,"fontSize":"x-large"} --> |
19 | - <h3 class="has-x-large-font-size" id="pigeon"><em>' . esc_html__( 'Pigeon', 'twentytwentytwo' ) . '</em></h3> |
|
19 | + <h3 class="has-x-large-font-size" id="pigeon"><em>' . esc_html__('Pigeon', 'twentytwentytwo').'</em></h3> |
|
20 | 20 | <!-- /wp:heading --> |
21 | 21 | |
22 | 22 | <!-- wp:paragraph --> |
23 | - <p>' . esc_html__( 'Help support our growing community by joining at the Pigeon level. Your support will help pay our writers, and you’ll get access to our exclusive newsletter.', 'twentytwentytwo' ) . '</p> |
|
23 | + <p>' . esc_html__('Help support our growing community by joining at the Pigeon level. Your support will help pay our writers, and you’ll get access to our exclusive newsletter.', 'twentytwentytwo').'</p> |
|
24 | 24 | <!-- /wp:paragraph --> |
25 | 25 | |
26 | 26 | <!-- wp:buttons --> |
27 | 27 | <div class="wp-block-buttons"><!-- wp:button {"backgroundColor":"foreground","width":100} --> |
28 | - <div class="wp-block-button has-custom-width wp-block-button__width-100"><a class="wp-block-button__link has-foreground-background-color has-background">' . esc_html__( '$25', 'twentytwentytwo' ) . '</a></div> |
|
28 | + <div class="wp-block-button has-custom-width wp-block-button__width-100"><a class="wp-block-button__link has-foreground-background-color has-background">' . esc_html__('$25', 'twentytwentytwo').'</a></div> |
|
29 | 29 | <!-- /wp:button --></div> |
30 | 30 | <!-- /wp:buttons --> |
31 | 31 | |
@@ -40,20 +40,20 @@ discard block |
||
40 | 40 | <!-- /wp:separator --> |
41 | 41 | |
42 | 42 | <!-- wp:heading {"style":{"typography":{"fontSize":"clamp(2.75rem, 6vw, 3.25rem)","lineHeight":"0.5"}}} --> |
43 | - <h2 id="2" style="font-size:clamp(2.75rem, 6vw, 3.25rem);line-height:0.5">' . esc_html( _x( '2', 'Second item in a numbered list.', 'twentytwentytwo' ) ) . '</h2> |
|
43 | + <h2 id="2" style="font-size:clamp(2.75rem, 6vw, 3.25rem);line-height:0.5">' . esc_html(_x('2', 'Second item in a numbered list.', 'twentytwentytwo')).'</h2> |
|
44 | 44 | <!-- /wp:heading --> |
45 | 45 | |
46 | 46 | <!-- wp:heading {"level":3,"fontSize":"x-large"} --> |
47 | - <h3 class="has-x-large-font-size" id="sparrow"><meta charset="utf-8"><em>' . esc_html__( 'Sparrow', 'twentytwentytwo' ) . '</em></h3> |
|
47 | + <h3 class="has-x-large-font-size" id="sparrow"><meta charset="utf-8"><em>' . esc_html__('Sparrow', 'twentytwentytwo').'</em></h3> |
|
48 | 48 | <!-- /wp:heading --> |
49 | 49 | |
50 | 50 | <!-- wp:paragraph --> |
51 | - <p>' . esc_html__( 'Join at the Sparrow level and become a member of our flock! You’ll receive our newsletter, plus a bird pin that you can wear with pride when you’re out in nature.', 'twentytwentytwo' ) . '</p> |
|
51 | + <p>' . esc_html__('Join at the Sparrow level and become a member of our flock! You’ll receive our newsletter, plus a bird pin that you can wear with pride when you’re out in nature.', 'twentytwentytwo').'</p> |
|
52 | 52 | <!-- /wp:paragraph --> |
53 | 53 | |
54 | 54 | <!-- wp:buttons --> |
55 | 55 | <div class="wp-block-buttons"><!-- wp:button {"backgroundColor":"foreground","width":100} --> |
56 | - <div class="wp-block-button has-custom-width wp-block-button__width-100"><a class="wp-block-button__link has-foreground-background-color has-background">' . esc_html__( '$75', 'twentytwentytwo' ) . '</a></div> |
|
56 | + <div class="wp-block-button has-custom-width wp-block-button__width-100"><a class="wp-block-button__link has-foreground-background-color has-background">' . esc_html__('$75', 'twentytwentytwo').'</a></div> |
|
57 | 57 | <!-- /wp:button --></div> |
58 | 58 | <!-- /wp:buttons --> |
59 | 59 | |
@@ -68,20 +68,20 @@ discard block |
||
68 | 68 | <!-- /wp:separator --> |
69 | 69 | |
70 | 70 | <!-- wp:heading {"style":{"typography":{"fontSize":"clamp(2.75rem, 6vw, 3.25rem)","lineHeight":"0.5"}}} --> |
71 | - <h2 id="3" style="font-size:clamp(2.75rem, 6vw, 3.25rem);line-height:0.5">' . esc_html( _x( '3', 'Third item in a numbered list.', 'twentytwentytwo' ) ) . '</h2> |
|
71 | + <h2 id="3" style="font-size:clamp(2.75rem, 6vw, 3.25rem);line-height:0.5">' . esc_html(_x('3', 'Third item in a numbered list.', 'twentytwentytwo')).'</h2> |
|
72 | 72 | <!-- /wp:heading --> |
73 | 73 | |
74 | 74 | <!-- wp:heading {"level":3,"fontSize":"x-large"} --> |
75 | - <h3 class="has-x-large-font-size" id="falcon"><meta charset="utf-8"><em>' . esc_html__( 'Falcon', 'twentytwentytwo' ) . '</em></h3> |
|
75 | + <h3 class="has-x-large-font-size" id="falcon"><meta charset="utf-8"><em>' . esc_html__('Falcon', 'twentytwentytwo').'</em></h3> |
|
76 | 76 | <!-- /wp:heading --> |
77 | 77 | |
78 | 78 | <!-- wp:paragraph --> |
79 | - <p>' . esc_html__( 'Play a leading role for our community by joining at the Falcon level. This level earns you a seat on our board, where you can help plan future birdwatching expeditions.', 'twentytwentytwo' ) . '</p> |
|
79 | + <p>' . esc_html__('Play a leading role for our community by joining at the Falcon level. This level earns you a seat on our board, where you can help plan future birdwatching expeditions.', 'twentytwentytwo').'</p> |
|
80 | 80 | <!-- /wp:paragraph --> |
81 | 81 | |
82 | 82 | <!-- wp:buttons --> |
83 | 83 | <div class="wp-block-buttons"><!-- wp:button {"backgroundColor":"foreground","width":100} --> |
84 | - <div class="wp-block-button has-custom-width wp-block-button__width-100"><a class="wp-block-button__link has-foreground-background-color has-background">' . esc_html__( '$150', 'twentytwentytwo' ) . '</a></div> |
|
84 | + <div class="wp-block-button has-custom-width wp-block-button__width-100"><a class="wp-block-button__link has-foreground-background-color has-background">' . esc_html__('$150', 'twentytwentytwo').'</a></div> |
|
85 | 85 | <!-- /wp:button --></div> |
86 | 86 | <!-- /wp:buttons --> |
87 | 87 |
@@ -3,9 +3,9 @@ discard block |
||
3 | 3 | * Footer with navigation and copyright |
4 | 4 | */ |
5 | 5 | return array( |
6 | - 'title' => __( 'Footer with navigation and copyright', 'twentytwentytwo' ), |
|
7 | - 'categories' => array( 'footer' ), |
|
8 | - 'blockTypes' => array( 'core/template-part/footer' ), |
|
6 | + 'title' => __('Footer with navigation and copyright', 'twentytwentytwo'), |
|
7 | + 'categories' => array('footer'), |
|
8 | + 'blockTypes' => array('core/template-part/footer'), |
|
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":{"top":"4rem","bottom":"4rem"}}}} --> |
11 | 11 | <div class="wp-block-group alignwide" style="padding-top:4rem;padding-bottom:4rem"><!-- wp:navigation {"layout":{"type":"flex","setCascadingProperties":true,"justifyContent":"center"}} --> |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | <!-- /wp:spacer --> |
18 | 18 | |
19 | 19 | <!-- wp:paragraph {"align":"center","style":{"typography":{"fontSize":"16px"}}} --> |
20 | - <p class="has-text-align-center" style="font-size:16px">' . esc_html__( '© Site Title', 'twentytwentytwo' ) . '</p> |
|
20 | + <p class="has-text-align-center" style="font-size:16px">' . esc_html__('© Site Title', 'twentytwentytwo').'</p> |
|
21 | 21 | <!-- /wp:paragraph --></div> |
22 | 22 | <!-- /wp:group --></div> |
23 | 23 | <!-- /wp:group -->', |