@@ -3,9 +3,9 @@ |
||
3 | 3 | * Text-based grid of posts block pattern |
4 | 4 | */ |
5 | 5 | return array( |
6 | - 'title' => __( 'Text-based grid of posts', 'twentytwentytwo' ), |
|
7 | - 'categories' => array( 'query' ), |
|
8 | - 'blockTypes' => array( 'core/query' ), |
|
6 | + 'title' => __('Text-based grid of 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":"","perPage":12},"displayLayout":{"type":"flex","columns":3},"align":"wide","layout":{"inherit":true}} --> |
10 | 10 | <div class="wp-block-query alignwide"><!-- wp:post-template {"align":"wide"} --> |
11 | 11 |
@@ -3,9 +3,9 @@ |
||
3 | 3 | * Logo, navigation, and offset tagline Header block pattern |
4 | 4 | */ |
5 | 5 | return array( |
6 | - 'title' => __( 'Logo, navigation, and offset tagline Header', 'twentytwentytwo' ), |
|
7 | - 'categories' => array( 'header' ), |
|
8 | - 'blockTypes' => array( 'core/template-part/header' ), |
|
6 | + 'title' => __('Logo, navigation, and offset tagline 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)"}}}} --> |
11 | 11 | <div class="wp-block-group alignwide" style="padding-bottom:var(--wp--custom--spacing--large, 8rem)"><!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"top":"var(--wp--custom--spacing--small, 1.25rem)"}}},"layout":{"type":"flex","justifyContent":"space-between"}} --> |
@@ -3,9 +3,9 @@ discard block |
||
3 | 3 | * Default footer with logo |
4 | 4 | */ |
5 | 5 | return array( |
6 | - 'title' => __( 'Footer with logo and citation', 'twentytwentytwo' ), |
|
7 | - 'categories' => array( 'footer' ), |
|
8 | - 'blockTypes' => array( 'core/template-part/footer' ), |
|
6 | + 'title' => __('Footer with logo and citation', '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-logo {"width":60} /--> |
@@ -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,9 +3,9 @@ discard block |
||
3 | 3 | * Footer with navigation and citation |
4 | 4 | */ |
5 | 5 | return array( |
6 | - 'title' => __( 'Footer with navigation and citation', 'twentytwentytwo' ), |
|
7 | - 'categories' => array( 'footer' ), |
|
8 | - 'blockTypes' => array( 'core/template-part/footer' ), |
|
6 | + 'title' => __('Footer with navigation and citation', '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:navigation --> |
@@ -16,9 +16,9 @@ discard block |
||
16 | 16 | <p class="has-text-align-right">' . |
17 | 17 | sprintf( |
18 | 18 | /* Translators: WordPress link. */ |
19 | - esc_html__( 'Proudly powered by %s', 'twentytwentytwo' ), |
|
20 | - '<a href="' . esc_url( __( 'https://wordpress.org', 'twentytwentytwo' ) ) . '" rel="nofollow">WordPress</a>' |
|
21 | - ) . '</p> |
|
19 | + esc_html__('Proudly powered by %s', 'twentytwentytwo'), |
|
20 | + '<a href="'.esc_url(__('https://wordpress.org', 'twentytwentytwo')).'" rel="nofollow">WordPress</a>' |
|
21 | + ).'</p> |
|
22 | 22 | <!-- /wp:paragraph --></div> |
23 | 23 | <!-- /wp:group --></div> |
24 | 24 | <!-- /wp:group -->', |
@@ -3,9 +3,9 @@ |
||
3 | 3 | * Title, navigation, and social links header block pattern |
4 | 4 | */ |
5 | 5 | return array( |
6 | - 'title' => __( 'Title, navigation, and social links header', 'twentytwentytwo' ), |
|
7 | - 'categories' => array( 'header' ), |
|
8 | - 'blockTypes' => array( 'core/template-part/header' ), |
|
6 | + 'title' => __('Title, navigation, and social links 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":{"typography":{"fontStyle":"italic","fontWeight":"400"}}} /--> |
@@ -3,21 +3,21 @@ |
||
3 | 3 | * About page with media on the right |
4 | 4 | */ |
5 | 5 | return array( |
6 | - 'title' => __( 'About page with media on the right', 'twentytwentytwo' ), |
|
7 | - 'categories' => array( 'pages' ), |
|
8 | - 'content' => '<!-- wp:media-text {"align":"full","mediaPosition":"right","mediaLink":"' . esc_url( get_template_directory_uri() ) . '/assets/images/bird-on-black.jpg","mediaType":"image","style":{"elements":{"link":{"color":{"text":"var:preset|color|background"}}}},"backgroundColor":"foreground","textColor":"background"} --> |
|
9 | - <div class="wp-block-media-text alignfull has-media-on-the-right is-stacked-on-mobile has-background-color has-foreground-background-color has-text-color has-background has-link-color"><figure class="wp-block-media-text__media"><img src="' . esc_url( get_template_directory_uri() ) . '/assets/images/bird-on-black.jpg" alt="' . esc_attr__( 'An image of a bird flying', 'twentytwentytwo' ) . '"/></figure><div class="wp-block-media-text__content"><!-- wp:spacer {"height":32} --> |
|
6 | + 'title' => __('About page with media on the right', 'twentytwentytwo'), |
|
7 | + 'categories' => array('pages'), |
|
8 | + 'content' => '<!-- wp:media-text {"align":"full","mediaPosition":"right","mediaLink":"'.esc_url(get_template_directory_uri()).'/assets/images/bird-on-black.jpg","mediaType":"image","style":{"elements":{"link":{"color":{"text":"var:preset|color|background"}}}},"backgroundColor":"foreground","textColor":"background"} --> |
|
9 | + <div class="wp-block-media-text alignfull has-media-on-the-right is-stacked-on-mobile has-background-color has-foreground-background-color has-text-color has-background has-link-color"><figure class="wp-block-media-text__media"><img src="' . esc_url(get_template_directory_uri()).'/assets/images/bird-on-black.jpg" alt="'.esc_attr__('An image of a bird flying', 'twentytwentytwo').'"/></figure><div class="wp-block-media-text__content"><!-- wp:spacer {"height":32} --> |
|
10 | 10 | <div style="height:32px" aria-hidden="true" class="wp-block-spacer"></div> |
11 | 11 | <!-- /wp:spacer --> |
12 | 12 | <!-- wp:site-logo {"width":60} /--> |
13 | 13 | |
14 | 14 | <!-- wp:group {"style":{"spacing":{"padding":{"right":"min(8rem, 5vw)","top":"min(20rem, 20vw)"}}}} --> |
15 | 15 | <div class="wp-block-group" style="padding-top:min(20rem, 20vw);padding-right:min(8rem, 5vw)"><!-- wp:heading {"style":{"typography":{"fontWeight":"300","lineHeight":"1.115","fontSize":"clamp(3rem, 6vw, 4.5rem)"}}} --> |
16 | - <h2 style="font-size:clamp(3rem, 6vw, 4.5rem);font-weight:300;line-height:1.115"><em>' . wp_kses_post( __( 'Emery<br>Driscoll', 'twentytwentytwo' ) ) . '</em></h2> |
|
16 | + <h2 style="font-size:clamp(3rem, 6vw, 4.5rem);font-weight:300;line-height:1.115"><em>' . wp_kses_post(__('Emery<br>Driscoll', 'twentytwentytwo')).'</em></h2> |
|
17 | 17 | <!-- /wp:heading --> |
18 | 18 | |
19 | 19 | <!-- wp:paragraph {"style":{"typography":{"lineHeight":"1.6"}}} --> |
20 | - <p style="line-height:1.6">' . esc_html__( 'Oh hello. My name’s Emery, and you’ve found your way to my website. I’m an avid bird watcher, and I also broadcast my own radio show on Tuesday evenings at 11PM EDT.', 'twentytwentytwo' ) . '</p> |
|
20 | + <p style="line-height:1.6">' . esc_html__('Oh hello. My name’s Emery, and you’ve found your way to my website. I’m an avid bird watcher, and I also broadcast my own radio show on Tuesday evenings at 11PM EDT.', 'twentytwentytwo').'</p> |
|
21 | 21 | <!-- /wp:paragraph --> |
22 | 22 | |
23 | 23 | <!-- wp:spacer {"height":40} --> |
@@ -3,12 +3,12 @@ |
||
3 | 3 | * Header with image background block pattern |
4 | 4 | */ |
5 | 5 | return array( |
6 | - 'title' => __( 'Header with image background', 'twentytwentytwo' ), |
|
7 | - 'categories' => array( 'header' ), |
|
8 | - 'blockTypes' => array( 'core/template-part/header' ), |
|
6 | + 'title' => __('Header with image background', 'twentytwentytwo'), |
|
7 | + 'categories' => array('header'), |
|
8 | + 'blockTypes' => array('core/template-part/header'), |
|
9 | 9 | 'content' => '<!-- wp:group {"align":"full","layout":{"inherit":true}} --> |
10 | - <div class="wp-block-group alignfull"><!-- wp:cover {"url":"' . esc_url( get_template_directory_uri() ) . '/assets/images/flight-path-on-gray-c.jpg","dimRatio":0,"focalPoint":{"x":"0.58","y":"0.58"},"minHeight":400,"contentPosition":"center center","align":"full","style":{"spacing":{"padding":{"top":"var(--wp--custom--spacing--small, 1.25rem)","bottom":"var(--wp--custom--spacing--large, 8rem)"}},"color":{}}} --> |
|
11 | - <div class="wp-block-cover alignfull" style="padding-top:var(--wp--custom--spacing--small, 1.25rem);padding-bottom:var(--wp--custom--spacing--large, 8rem);min-height:400px"><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__( 'Illustration of a flying bird', 'twentytwentytwo' ) . '" src="' . esc_url( get_template_directory_uri() ) . '/assets/images/flight-path-on-gray-c.jpg" style="object-position:58% 58%" data-object-fit="cover" data-object-position="58% 58%"/><div class="wp-block-cover__inner-container"><!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"bottom":"0rem","top":"0px","right":"0px","left":"0px"}},"elements":{"link":{"color":{"text":"var:preset|color|foreground"}}}},"textColor":"foreground","layout":{"type":"flex","justifyContent":"space-between"}} --> |
|
10 | + <div class="wp-block-group alignfull"><!-- wp:cover {"url":"' . esc_url(get_template_directory_uri()).'/assets/images/flight-path-on-gray-c.jpg","dimRatio":0,"focalPoint":{"x":"0.58","y":"0.58"},"minHeight":400,"contentPosition":"center center","align":"full","style":{"spacing":{"padding":{"top":"var(--wp--custom--spacing--small, 1.25rem)","bottom":"var(--wp--custom--spacing--large, 8rem)"}},"color":{}}} --> |
|
11 | + <div class="wp-block-cover alignfull" style="padding-top:var(--wp--custom--spacing--small, 1.25rem);padding-bottom:var(--wp--custom--spacing--large, 8rem);min-height:400px"><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__('Illustration of a flying bird', 'twentytwentytwo').'" src="'.esc_url(get_template_directory_uri()).'/assets/images/flight-path-on-gray-c.jpg" style="object-position:58% 58%" data-object-fit="cover" data-object-position="58% 58%"/><div class="wp-block-cover__inner-container"><!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"bottom":"0rem","top":"0px","right":"0px","left":"0px"}},"elements":{"link":{"color":{"text":"var:preset|color|foreground"}}}},"textColor":"foreground","layout":{"type":"flex","justifyContent":"space-between"}} --> |
|
12 | 12 | <div class="wp-block-group alignwide has-foreground-color has-text-color has-link-color" style="padding-top:0px;padding-right:0px;padding-bottom:0rem;padding-left:0px"><!-- wp:site-title {"style":{"typography":{"fontStyle":"normal","fontWeight":"700"}}} /--> |
13 | 13 | |
14 | 14 | <!-- wp:navigation {"layout":{"type":"flex","setCascadingProperties":true,"justifyContent":"right"}} --> |
@@ -3,16 +3,16 @@ |
||
3 | 3 | * Image with caption block pattern |
4 | 4 | */ |
5 | 5 | return array( |
6 | - 'title' => __( 'Image with caption', 'twentytwentytwo' ), |
|
7 | - 'categories' => array( 'featured', 'columns', 'gallery' ), |
|
6 | + 'title' => __('Image with caption', 'twentytwentytwo'), |
|
7 | + 'categories' => array('featured', 'columns', 'gallery'), |
|
8 | 8 | 'content' => '<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"6rem","bottom":"6rem"}},"elements":{"link":{"color":{"text":"var:preset|color|background"}}}},"backgroundColor":"primary","textColor":"background","layout":{"inherit":true}} --> |
9 | - <div class="wp-block-group alignfull has-background-color has-primary-background-color has-text-color has-background has-link-color" style="padding-top:6rem;padding-bottom:6rem"><!-- wp:media-text {"mediaId":202,"mediaLink":"' . esc_url( get_template_directory_uri() ) . '/assets/images/bird-on-gray.jpg","mediaType":"image","verticalAlignment":"bottom","imageFill":false} --> |
|
10 | - <div class="wp-block-media-text alignwide is-stacked-on-mobile is-vertically-aligned-bottom"><figure class="wp-block-media-text__media"><img src="' . esc_url( get_template_directory_uri() ) . '/assets/images/bird-on-gray.jpg" alt="' . esc_attr__( 'Hummingbird illustration', 'twentytwentytwo' ) . '" class="wp-image-202 size-full"/></figure><div class="wp-block-media-text__content"><!-- wp:paragraph --> |
|
11 | - <p><strong>' . esc_html__( 'Hummingbird', 'twentytwentytwo' ) . '</strong></p> |
|
9 | + <div class="wp-block-group alignfull has-background-color has-primary-background-color has-text-color has-background has-link-color" style="padding-top:6rem;padding-bottom:6rem"><!-- wp:media-text {"mediaId":202,"mediaLink":"' . esc_url(get_template_directory_uri()).'/assets/images/bird-on-gray.jpg","mediaType":"image","verticalAlignment":"bottom","imageFill":false} --> |
|
10 | + <div class="wp-block-media-text alignwide is-stacked-on-mobile is-vertically-aligned-bottom"><figure class="wp-block-media-text__media"><img src="' . esc_url(get_template_directory_uri()).'/assets/images/bird-on-gray.jpg" alt="'.esc_attr__('Hummingbird illustration', 'twentytwentytwo').'" class="wp-image-202 size-full"/></figure><div class="wp-block-media-text__content"><!-- wp:paragraph --> |
|
11 | + <p><strong>' . esc_html__('Hummingbird', 'twentytwentytwo').'</strong></p> |
|
12 | 12 | <!-- /wp:paragraph --> |
13 | 13 | |
14 | 14 | <!-- wp:paragraph --> |
15 | - <p>' . esc_html__( 'A beautiful bird featuring a surprising set of color feathers.', 'twentytwentytwo' ) . '</p> |
|
15 | + <p>' . esc_html__('A beautiful bird featuring a surprising set of color feathers.', 'twentytwentytwo').'</p> |
|
16 | 16 | <!-- /wp:paragraph --></div></div> |
17 | 17 | <!-- /wp:media-text --></div> |
18 | 18 | <!-- /wp:group -->', |
@@ -3,9 +3,9 @@ |
||
3 | 3 | * Default posts block pattern |
4 | 4 | */ |
5 | 5 | return array( |
6 | - 'title' => __( 'Default posts', 'twentytwentytwo' ), |
|
7 | - 'categories' => array( 'query' ), |
|
8 | - 'blockTypes' => array( 'core/query' ), |
|
6 | + 'title' => __('Default posts', 'twentytwentytwo'), |
|
7 | + 'categories' => array('query'), |
|
8 | + 'blockTypes' => array('core/query'), |
|
9 | 9 | 'content' => '<!-- wp:query {"query":{"perPage":10,"pages":0,"offset":0,"postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":""},"align":"wide","layout":{"inherit":true}} --> |
10 | 10 | <div class="wp-block-query alignwide"><!-- wp:post-template {"align":"wide"} --> |
11 | 11 | <!-- wp:group {"layout":{"inherit":true}} --> |