Changeset 52375
- Timestamp:
- 12/14/2021 05:09:04 PM (3 years ago)
- Location:
- trunk/src/wp-content/themes/twentytwentytwo
- Files:
-
- 81 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentytwentytwo/inc/block-patterns.php
r52222 r52375 13 13 function twentytwentytwo_register_block_patterns() { 14 14 $block_pattern_categories = array( 15 ' twentytwentytwo-general' => array( 'label' => __( 'Twenty Twenty-Two General', 'twentytwentytwo' ) ),16 ' twentytwentytwo-footers' => array( 'label' => __( 'Twenty Twenty-TwoFooters', 'twentytwentytwo' ) ),17 ' twentytwentytwo-headers' => array( 'label' => __( 'Twenty Twenty-TwoHeaders', 'twentytwentytwo' ) ),18 ' twentytwentytwo-query' => array( 'label' => __( 'Twenty Twenty-Two Posts', 'twentytwentytwo' ) ),19 ' twentytwentytwo-pages' => array( 'label' => __( 'Twenty Twenty-TwoPages', 'twentytwentytwo' ) ),15 'featured' => array( 'label' => __( 'Featured', 'twentytwentytwo' ) ), 16 'footer' => array( 'label' => __( 'Footers', 'twentytwentytwo' ) ), 17 'header' => array( 'label' => __( 'Headers', 'twentytwentytwo' ) ), 18 'query' => array( 'label' => __( 'Query', 'twentytwentytwo' ) ), 19 'pages' => array( 'label' => __( 'Pages', 'twentytwentytwo' ) ), 20 20 ); 21 21 … … 38 38 39 39 foreach ( $block_pattern_categories as $name => $properties ) { 40 register_block_pattern_category( $name, $properties ); 40 if ( ! WP_Block_Pattern_Categories_Registry::get_instance()->is_registered( $name ) ) { 41 register_block_pattern_category( $name, $properties ); 42 } 41 43 } 42 44 … … 121 123 122 124 foreach ( $block_patterns as $block_pattern ) { 125 $pattern_file = get_theme_file_path( '/inc/patterns/' . $block_pattern . '.php' ); 126 123 127 register_block_pattern( 124 128 'twentytwentytwo/' . $block_pattern, 125 require __DIR__ . '/patterns/' . $block_pattern . '.php'129 require $pattern_file 126 130 ); 127 131 } -
trunk/src/wp-content/themes/twentytwentytwo/inc/patterns/footer-about-title-logo.php
r52081 r52375 5 5 return array( 6 6 'title' => __( 'Footer with text, title, and logo', 'twentytwentytwo' ), 7 'categories' => array( ' twentytwentytwo-footers' ),7 'categories' => array( 'footer' ), 8 8 'blockTypes' => array( 'core/template-part/footer' ), 9 9 'content' => '<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"8rem","bottom":"6rem"}}},"backgroundColor":"secondary","layout":{"inherit":true}} --> … … 22 22 <!-- /wp:spacer --> 23 23 24 <!-- wp:site-title /--></div>24 <!-- wp:site-title {"level":0} /--></div> 25 25 <!-- /wp:column --> 26 26 -
trunk/src/wp-content/themes/twentytwentytwo/inc/patterns/footer-blog.php
r52081 r52375 5 5 return array( 6 6 'title' => __( 'Blog footer', 'twentytwentytwo' ), 7 'categories' => array( ' twentytwentytwo-footers' ),7 'categories' => array( 'footer' ), 8 8 'blockTypes' => array( 'core/template-part/footer' ), 9 9 'content' => '<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"8rem","bottom":"8rem"}}},"layout":{"inherit":true}} --> 10 <div class="wp-block-group alignfull" style="padding-top:8rem;padding-bottom:8rem"><!-- wp:columns -->11 <div class="wp-block-columns "><!-- wp:column -->10 <div class="wp-block-group alignfull" style="padding-top:8rem;padding-bottom:8rem"><!-- wp:columns {"align":"wide"} --> 11 <div class="wp-block-columns alignwide"><!-- wp:column --> 12 12 <div class="wp-block-column"><!-- wp:paragraph {"style":{"typography":{"textTransform":"uppercase"}}} --> 13 13 <p style="text-transform:uppercase">' . esc_html__( 'About us', 'twentytwentytwo' ) . '</p> … … 41 41 42 42 <!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"top":"4rem","bottom":"4rem"}}},"layout":{"type":"flex","justifyContent":"space-between"}} --> 43 <div class="wp-block-group alignwide" style="padding-top:4rem;padding-bottom:4rem"><!-- wp:site-title /-->43 <div class="wp-block-group alignwide" style="padding-top:4rem;padding-bottom:4rem"><!-- wp:site-title {"level":0} /--> 44 44 45 45 <!-- wp:paragraph {"align":"right"} --> -
trunk/src/wp-content/themes/twentytwentytwo/inc/patterns/footer-dark.php
r52081 r52375 5 5 return array( 6 6 'title' => __( 'Dark footer with title and citation', 'twentytwentytwo' ), 7 'categories' => array( ' twentytwentytwo-footers' ),7 'categories' => array( 'footer' ), 8 8 'blockTypes' => array( 'core/template-part/footer' ), 9 9 'content' => '<!-- wp:group {"align":"full","style":{"elements":{"link":{"color":{"text":"var:preset|color|background"}}},"spacing":{"padding":{"top":"max(1.25rem, 5vw)","bottom":"max(1.25rem, 5vw)","left":"max(1.25rem, 5vw)","right":"max(1.25rem, 5vw)"}}},"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:max(1.25rem, 5vw);padding-right:max(1.25rem, 5vw);padding-bottom:max(1.25rem, 5vw);padding-left:max(1.25rem, 5vw)"><!-- wp:group {"align":"wide","layout":{"type":"flex","justifyContent":"space-between"}} --> 11 <div class="wp-block-group alignwide"><!-- wp:site-title /-->11 <div class="wp-block-group alignwide"><!-- wp:site-title {"level":0} /--> 12 12 13 13 <!-- wp:paragraph {"align":"right"} --> -
trunk/src/wp-content/themes/twentytwentytwo/inc/patterns/footer-default.php
r52081 r52375 5 5 return array( 6 6 'title' => __( 'Default footer', 'twentytwentytwo' ), 7 'categories' => array( ' twentytwentytwo-footers' ),7 'categories' => array( 'footer' ), 8 8 'blockTypes' => array( 'core/template-part/footer' ), 9 'content' => '<!-- wp:group {"align":"full","layout":{"inherit":true}} --> 10 <div class="wp-block-group alignfull"><!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"top":"4rem","bottom":"4rem"}}},"layout":{"type":"flex","justifyContent":"space-between"}} --> 9 'content' => '<!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"top":"4rem","bottom":"4rem"}}},"layout":{"type":"flex","justifyContent":"space-between"}} --> 11 10 <div class="wp-block-group alignwide" style="padding-top:4rem;padding-bottom:4rem"><!-- wp:site-title /--> 12 11 … … 19 18 ) . '</p> 20 19 <!-- /wp:paragraph --></div> 21 <!-- /wp:group --></div>22 20 <!-- /wp:group -->', 23 21 ); -
trunk/src/wp-content/themes/twentytwentytwo/inc/patterns/footer-logo.php
r52081 r52375 5 5 return array( 6 6 'title' => __( 'Footer with logo and citation', 'twentytwentytwo' ), 7 'categories' => array( ' twentytwentytwo-footers' ),7 'categories' => array( 'footer' ), 8 8 'blockTypes' => array( 'core/template-part/footer' ), 9 9 'content' => '<!-- wp:group {"align":"full","layout":{"inherit":true}} --> -
trunk/src/wp-content/themes/twentytwentytwo/inc/patterns/footer-navigation-copyright.php
r52283 r52375 5 5 return array( 6 6 'title' => __( 'Footer with navigation and copyright', 'twentytwentytwo' ), 7 'categories' => array( ' twentytwentytwo-footers' ),7 'categories' => array( 'footer' ), 8 8 'blockTypes' => array( 'core/template-part/footer' ), 9 9 'content' => '<!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"top":"4rem","bottom":"4rem"}}}} --> -
trunk/src/wp-content/themes/twentytwentytwo/inc/patterns/footer-navigation.php
r52081 r52375 5 5 return array( 6 6 'title' => __( 'Footer with navigation and citation', 'twentytwentytwo' ), 7 'categories' => array( ' twentytwentytwo-footers' ),7 'categories' => array( 'footer' ), 8 8 'blockTypes' => array( 'core/template-part/footer' ), 9 9 'content' => '<!-- wp:group {"align":"full","layout":{"inherit":true}} --> -
trunk/src/wp-content/themes/twentytwentytwo/inc/patterns/footer-query-images-title-citation.php
r52081 r52375 5 5 return array( 6 6 'title' => __( 'Footer with query, featured images, title, and citation', 'twentytwentytwo' ), 7 'categories' => array( ' twentytwentytwo-footers' ),7 'categories' => array( 'footer' ), 8 8 'blockTypes' => array( 'core/template-part/footer' ), 9 9 'content' => '<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"4rem","bottom":"4rem"}},"elements":{"link":{"color":{"text":"var:preset|color|background"}}}},"backgroundColor":"foreground","textColor":"background","layout":{"inherit":true}} --> … … 25 25 26 26 <!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"top":"4rem","bottom":"4rem"}}},"layout":{"type":"flex","justifyContent":"space-between"}} --> 27 <div class="wp-block-group alignwide" style="padding-top:4rem;padding-bottom:4rem"><!-- wp:site-title /-->27 <div class="wp-block-group alignwide" style="padding-top:4rem;padding-bottom:4rem"><!-- wp:site-title {"level":0} /--> 28 28 <!-- wp:group {"layout":{"type":"flex","justifyContent":"right"}} --> 29 29 <div class="wp-block-group"> -
trunk/src/wp-content/themes/twentytwentytwo/inc/patterns/footer-query-title-citation.php
r52081 r52375 5 5 return array( 6 6 'title' => __( 'Footer with query, title, and citation', 'twentytwentytwo' ), 7 'categories' => array( ' twentytwentytwo-footers' ),7 'categories' => array( 'footer' ), 8 8 'blockTypes' => array( 'core/template-part/footer' ), 9 9 'content' => '<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"4rem","bottom":"4rem"}},"elements":{"link":{"color":{"text":"var:preset|color|background"}}}},"backgroundColor":"primary","textColor":"background","layout":{"inherit":true}} --> … … 23 23 24 24 <!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"top":"4rem","bottom":"4rem"}}},"layout":{"type":"flex","justifyContent":"space-between"}} --> 25 <div class="wp-block-group alignwide" style="padding-top:4rem;padding-bottom:4rem"><!-- wp:site-title /-->25 <div class="wp-block-group alignwide" style="padding-top:4rem;padding-bottom:4rem"><!-- wp:site-title {"level":0} /--> 26 26 <!-- wp:group {"layout":{"type":"flex","justifyContent":"right"}} --> 27 27 <div class="wp-block-group"> -
trunk/src/wp-content/themes/twentytwentytwo/inc/patterns/footer-social-copyright.php
r52081 r52375 5 5 return array( 6 6 'title' => __( 'Footer with social links and copyright', 'twentytwentytwo' ), 7 'categories' => array( ' twentytwentytwo-footers' ),7 'categories' => array( 'footer' ), 8 8 'blockTypes' => array( 'core/template-part/footer' ), 9 9 'content' => '<!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"top":"4rem","bottom":"4rem"}}}} --> -
trunk/src/wp-content/themes/twentytwentytwo/inc/patterns/footer-title-tagline-social.php
r52222 r52375 5 5 return array( 6 6 'title' => __( 'Footer with title, tagline, and social links on a dark background', 'twentytwentytwo' ), 7 'categories' => array( ' twentytwentytwo-footers' ),7 'categories' => array( 'footer' ), 8 8 'blockTypes' => array( 'core/template-part/footer' ), 9 9 'content' => '<!-- wp:group {"align":"full","style":{"elements":{"link":{"color":{"text":"var:preset|color|background"}}}},"backgroundColor":"foreground","textColor":"background","layout":{"inherit":true}} --> -
trunk/src/wp-content/themes/twentytwentytwo/inc/patterns/general-divider-dark.php
r52081 r52375 5 5 return array( 6 6 'title' => __( 'Divider with image and color (dark)', 'twentytwentytwo' ), 7 'categories' => array( ' twentytwentytwo-general' ),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"} --> -
trunk/src/wp-content/themes/twentytwentytwo/inc/patterns/general-divider-light.php
r52081 r52375 5 5 return array( 6 6 'title' => __( 'Divider with image and color (light)', 'twentytwentytwo' ), 7 'categories' => array( ' twentytwentytwo-general' ),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"} --> -
trunk/src/wp-content/themes/twentytwentytwo/inc/patterns/general-featured-posts.php
r52081 r52375 5 5 return array( 6 6 'title' => __( 'Featured posts', 'twentytwentytwo' ), 7 'categories' => array( ' twentytwentytwo-general' ),7 'categories' => array( 'featured', 'query' ), 8 8 'content' => '<!-- wp:group {"align":"wide","layout":{"inherit":false}} --> 9 9 <div class="wp-block-group alignwide"><!-- wp:paragraph {"style":{"typography":{"textTransform":"uppercase"}}} --> -
trunk/src/wp-content/themes/twentytwentytwo/inc/patterns/general-image-with-caption.php
r52081 r52375 5 5 return array( 6 6 'title' => __( 'Image with caption', 'twentytwentytwo' ), 7 'categories' => array( ' twentytwentytwo-general' ),7 'categories' => array( 'featured', 'columns', 'gallery' ), 8 8 'content' => '<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"6rem","right":"max(1.25rem, 5vw)","bottom":"6rem","left":"max(1.25rem, 5vw)"}},"elements":{"link":{"color":{"text":"var:preset|color|background"}}}},"backgroundColor":"primary","textColor":"background","layout":{"inherit":true}} --> 9 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-right:max(1.25rem, 5vw);padding-bottom:6rem;padding-left:max(1.25rem, 5vw)"><!-- wp:media-text {"mediaId":202,"mediaLink":"' . esc_url( get_template_directory_uri() ) . '/assets/images/bird-on-gray.jpg","mediaType":"image","verticalAlignment":"bottom","imageFill":false} --> -
trunk/src/wp-content/themes/twentytwentytwo/inc/patterns/general-large-list-names.php
r52081 r52375 5 5 return array( 6 6 'title' => __( 'Large list of names', 'twentytwentytwo' ), 7 'categories' => array( ' twentytwentytwo-general' ),7 'categories' => array( 'featured', 'text' ), 8 8 'content' => '<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"6rem","right":"max(1.25rem, 5vw)","bottom":"6rem","left":"max(1.25rem, 5vw)"}},"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-right:max(1.25rem, 5vw);padding-bottom:6rem;padding-left:max(1.25rem, 5vw)"><!-- wp:group {"align":"wide"} --> -
trunk/src/wp-content/themes/twentytwentytwo/inc/patterns/general-layered-images-with-duotone.php
r52081 r52375 5 5 return array( 6 6 'title' => __( 'Layered images with duotone', 'twentytwentytwo' ), 7 'categories' => array( ' twentytwentytwo-general' ),7 'categories' => array( 'featured', 'gallery' ), 8 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 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"} --> -
trunk/src/wp-content/themes/twentytwentytwo/inc/patterns/general-list-events.php
r52081 r52375 5 5 return array( 6 6 'title' => __( 'List of events', 'twentytwentytwo' ), 7 'categories' => array( ' twentytwentytwo-general' ),7 'categories' => array( 'featured', 'text' ), 8 8 'content' => '<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"8rem","bottom":"8rem","left":"0px","right":"0px"}},"elements":{"link":{"color":{"text":"var:preset|color|background"}}}},"backgroundColor":"primary","textColor":"background"} --> 9 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:8rem;padding-right:0px;padding-bottom:8rem;padding-left:0px"><!-- wp:group {"align":"full","style":{"spacing":{"padding":{"left":"max(1.25rem, 5vw)","right":"max(1.25rem, 5vw)"}}},"layout":{"inherit":true}} --> -
trunk/src/wp-content/themes/twentytwentytwo/inc/patterns/general-pricing-table.php
r52081 r52375 5 5 return array( 6 6 'title' => __( 'Pricing table', 'twentytwentytwo' ), 7 'categories' => array( ' twentytwentytwo-general' ),7 'categories' => array( 'featured', 'columns', 'buttons' ), 8 8 'content' => '<!-- wp:columns {"align":"wide"} --> 9 9 <div class="wp-block-columns alignwide"><!-- wp:column --> -
trunk/src/wp-content/themes/twentytwentytwo/inc/patterns/general-subscribe.php
r52222 r52375 5 5 return array( 6 6 'title' => __( 'Subscribe callout', 'twentytwentytwo' ), 7 'categories' => array( ' twentytwentytwo-general' ),7 'categories' => array( 'featured', 'buttons' ), 8 8 'content' => '<!-- wp:columns {"verticalAlignment":"center","align":"wide"} --> 9 9 <div class="wp-block-columns alignwide are-vertically-aligned-center"><!-- wp:column {"verticalAlignment":"center"} --> -
trunk/src/wp-content/themes/twentytwentytwo/inc/patterns/general-two-images-text.php
r52222 r52375 5 5 return array( 6 6 'title' => __( 'Two images with text', 'twentytwentytwo' ), 7 'categories' => array( ' twentytwentytwo-general' ),7 'categories' => array( 'featured', 'columns', 'gallery' ), 8 8 'content' => '<!-- wp:columns {"align":"wide"} --> 9 9 <div class="wp-block-columns alignwide"><!-- wp:column {"style":{"spacing":{"padding":{"top":"0rem","right":"0rem","bottom":"0rem","left":"0rem"}}}} --> -
trunk/src/wp-content/themes/twentytwentytwo/inc/patterns/general-video-header-details.php
r52081 r52375 5 5 return array( 6 6 'title' => __( 'Video with header and details', 'twentytwentytwo' ), 7 'categories' => array( ' twentytwentytwo-general' ),7 'categories' => array( 'featured', 'columns' ), 8 8 'content' => '<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"8rem","bottom":"8rem","left":"0px","right":"0px"}},"elements":{"link":{"color":{"text":"var:preset|color|secondary"}}}},"backgroundColor":"foreground","textColor":"secondary"} --> 9 9 <div class="wp-block-group alignfull has-secondary-color has-foreground-background-color has-text-color has-background has-link-color" style="padding-top:8rem;padding-right:0px;padding-bottom:8rem;padding-left:0px"><!-- wp:group {"align":"full","style":{"spacing":{"padding":{"left":"max(1.25rem, 5vw)","right":"max(1.25rem, 5vw)"}}},"layout":{"inherit":true}} --> -
trunk/src/wp-content/themes/twentytwentytwo/inc/patterns/general-video-trailer.php
r52081 r52375 5 5 return array( 6 6 'title' => __( 'Video trailer', 'twentytwentytwo' ), 7 'categories' => array( ' twentytwentytwo-general' ),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","right":"max(1.25rem, 5vw)","left":"max(1.25rem, 5vw)","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-right:max(1.25rem, 5vw);padding-bottom:4rem;padding-left:max(1.25rem, 5vw)"><!-- wp:columns {"align":"wide"} --> -
trunk/src/wp-content/themes/twentytwentytwo/inc/patterns/general-wide-image-intro-buttons.php
r52081 r52375 5 5 return array( 6 6 'title' => __( 'Wide image with introduction and buttons', 'twentytwentytwo' ), 7 'categories' => array( ' twentytwentytwo-general' ),7 'categories' => array( 'featured', 'columns' ), 8 8 'content' => '<!-- wp:group {"align":"wide"} --> 9 9 <div class="wp-block-group alignwide"><!-- wp:image {"sizeSlug":"large"} --> -
trunk/src/wp-content/themes/twentytwentytwo/inc/patterns/header-centered-logo-black-background.php
r52283 r52375 5 5 return array( 6 6 'title' => __( 'Header with centered logo and black background', 'twentytwentytwo' ), 7 'categories' => array( ' twentytwentytwo-headers' ),7 'categories' => array( 'header' ), 8 8 'blockTypes' => array( 'core/template-part/header' ), 9 9 'content' => '<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"bottom":"max(1.25rem, 5vw)","top":"max(1.25rem, 5vw)"}},"elements":{"link":{"color":{"text":"var:preset|color|background"}}}},"backgroundColor":"foreground","textColor":"background","layout":{"type":"flex","justifyContent":"center"}} --> -
trunk/src/wp-content/themes/twentytwentytwo/inc/patterns/header-centered-logo.php
r52283 r52375 5 5 return array( 6 6 'title' => __( 'Header with centered logo', 'twentytwentytwo' ), 7 'categories' => array( ' twentytwentytwo-headers' ),7 'categories' => array( 'header' ), 8 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":"max(1.25rem, 5vw)","bottom":"max(1.25rem, 5vw)","left":"max(1.25rem, 5vw)","right":"max(1.25rem, 5vw)"}}},"backgroundColor":"primary","textColor":"background","layout":{"inherit":true}} --> -
trunk/src/wp-content/themes/twentytwentytwo/inc/patterns/header-centered-title-navigation-social.php
r52283 r52375 5 5 return array( 6 6 'title' => __( 'Centered header with navigation, social links, and salmon background', 'twentytwentytwo' ), 7 'categories' => array( ' twentytwentytwo-headers' ),7 'categories' => array( 'header' ), 8 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":"max(1.25rem, 5vw)","bottom":"max(1.25rem, 5vw)","left":"max(1.25rem, 5vw)","right":"max(1.25rem, 5vw)"}}},"backgroundColor":"secondary","textColor":"primary","layout":{"inherit":true}} --> -
trunk/src/wp-content/themes/twentytwentytwo/inc/patterns/header-default.php
r52283 r52375 5 5 return array( 6 6 'title' => __( 'Default header', 'twentytwentytwo' ), 7 'categories' => array( ' twentytwentytwo-headers' ),7 'categories' => array( 'header' ), 8 8 'blockTypes' => array( 'core/template-part/header' ), 9 9 'content' => '<!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"bottom":"8rem","top":"max(1.25rem, 5vw)"}}},"layout":{"type":"flex","justifyContent":"space-between"}} --> -
trunk/src/wp-content/themes/twentytwentytwo/inc/patterns/header-image-background-overlay.php
r52283 r52375 5 5 return array( 6 6 'title' => __( 'Header with image background and overlay', 'twentytwentytwo' ), 7 'categories' => array( ' twentytwentytwo-headers' ),7 'categories' => array( 'header' ), 8 8 'blockTypes' => array( 'core/template-part/header' ), 9 'content' => '<!-- wp:cover {"url":"' . esc_url( get_ stylesheet_directory_uri() ) . '/assets/images/ducks.jpg","dimRatio":90,"overlayColor":"primary","focalPoint":{"x":"0.26","y":"0.34"},"minHeight":100,"minHeightUnit":"px","contentPosition":"center center","align":"full","style":{"spacing":{"padding":{"top":"max(1.25rem, 5vw)","right":"max(1.25rem, 5vw)","bottom":"max(1.25rem, 5vw)","left":"max(1.25rem, 5vw)"}},"color":{"duotone":["#000000","#ffffff"]}}} -->10 <div class="wp-block-cover alignfull" style="padding-top:max(1.25rem, 5vw);padding-right:max(1.25rem, 5vw);padding-bottom:max(1.25rem, 5vw);padding-left:max(1.25rem, 5vw);min-height:100px"><span aria-hidden="true" class="has-primary-background-color has-background-dim-90 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_ stylesheet_directory_uri() ) . '/assets/images/ducks.jpg" style="object-position:26% 34%" data-object-fit="cover" data-object-position="26% 34%"/><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|background"}}}},"textColor":"background","layout":{"type":"flex","justifyContent":"space-between"}} -->9 'content' => '<!-- wp:cover {"url":"' . esc_url( get_template_directory_uri() ) . '/assets/images/ducks.jpg","dimRatio":90,"overlayColor":"primary","focalPoint":{"x":"0.26","y":"0.34"},"minHeight":100,"minHeightUnit":"px","contentPosition":"center center","align":"full","style":{"spacing":{"padding":{"top":"max(1.25rem, 5vw)","right":"max(1.25rem, 5vw)","bottom":"max(1.25rem, 5vw)","left":"max(1.25rem, 5vw)"}},"color":{"duotone":["#000000","#ffffff"]}}} --> 10 <div class="wp-block-cover alignfull" style="padding-top:max(1.25rem, 5vw);padding-right:max(1.25rem, 5vw);padding-bottom:max(1.25rem, 5vw);padding-left:max(1.25rem, 5vw);min-height:100px"><span aria-hidden="true" class="has-primary-background-color has-background-dim-90 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" style="object-position:26% 34%" data-object-fit="cover" data-object-position="26% 34%"/><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|background"}}}},"textColor":"background","layout":{"type":"flex","justifyContent":"space-between"}} --> 11 11 <div class="wp-block-group alignwide has-background-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"}}} /--> 12 12 -
trunk/src/wp-content/themes/twentytwentytwo/inc/patterns/header-image-background.php
r52283 r52375 5 5 return array( 6 6 'title' => __( 'Header with image background', 'twentytwentytwo' ), 7 'categories' => array( ' twentytwentytwo-headers' ),7 'categories' => array( 'header' ), 8 8 'blockTypes' => array( 'core/template-part/header' ), 9 'content' => '<!-- wp:cover {"url":"' . esc_url( get_ stylesheet_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":"max(1.25rem, 5vw)","right":"max(1.25rem, 5vw)","bottom":"8rem","left":"max(1.25rem, 5vw)"}},"color":{}}} -->10 <div class="wp-block-cover alignfull" style="padding-top:max(1.25rem, 5vw);padding-right:max(1.25rem, 5vw);padding-bottom:8rem;padding-left:max(1.25rem, 5vw);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_ stylesheet_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"}} -->9 'content' => '<!-- 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":"max(1.25rem, 5vw)","right":"max(1.25rem, 5vw)","bottom":"8rem","left":"max(1.25rem, 5vw)"}},"color":{}}} --> 10 <div class="wp-block-cover alignfull" style="padding-top:max(1.25rem, 5vw);padding-right:max(1.25rem, 5vw);padding-bottom:8rem;padding-left:max(1.25rem, 5vw);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"}} --> 11 11 <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"}}} /--> 12 12 -
trunk/src/wp-content/themes/twentytwentytwo/inc/patterns/header-large-dark.php
r52283 r52375 5 5 return array( 6 6 'title' => __( 'Large header with dark background', 'twentytwentytwo' ), 7 'categories' => array( ' twentytwentytwo-headers' ),7 'categories' => array( 'header' ), 8 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":"0px","bottom":"8rem","right":"0px","left":"0px"},"margin":{"bottom":"8rem"}}},"backgroundColor":"foreground","textColor":"background","layout":{"inherit":true}} --> … … 27 27 28 28 <!-- wp:image {"align":"full","sizeSlug":"full","linkDestination":"none"} --> 29 <figure class="wp-block-image alignfull size-full"><img src="' . esc_url( get_ stylesheet_directory_uri() ) . '/assets/images/flight-path-on-transparent-c.png" alt="' . esc_attr__( 'Illustration of a bird flying.', 'twentytwentytwo' ) . '"/></figure>29 <figure class="wp-block-image alignfull size-full"><img src="' . esc_url( get_template_directory_uri() ) . '/assets/images/flight-path-on-transparent-c.png" alt="' . esc_attr__( 'Illustration of a bird flying.', 'twentytwentytwo' ) . '"/></figure> 30 30 <!-- /wp:image --></div> 31 31 <!-- /wp:group -->', -
trunk/src/wp-content/themes/twentytwentytwo/inc/patterns/header-logo-navigation-gray-background.php
r52081 r52375 5 5 return array( 6 6 'title' => __( 'Logo and navigation header with gray background', 'twentytwentytwo' ), 7 'categories' => array( ' twentytwentytwo-headers' ),7 'categories' => array( 'header' ), 8 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":"max(1.25rem, 5vw)","bottom":"max(1.25rem, 5vw)","left":"max(1.25rem, 5vw)","right":"max(1.25rem, 5vw)"}}},"backgroundColor":"secondary","textColor":"foreground","layout":{"inherit":true}} --> -
trunk/src/wp-content/themes/twentytwentytwo/inc/patterns/header-logo-navigation-offset-tagline.php
r52283 r52375 5 5 return array( 6 6 'title' => __( 'Logo, navigation, and offset tagline Header', 'twentytwentytwo' ), 7 'categories' => array( ' twentytwentytwo-headers' ),7 'categories' => array( 'header' ), 8 8 'blockTypes' => array( 'core/template-part/header' ), 9 9 'content' => '<!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"bottom":"8rem"}}}} --> -
trunk/src/wp-content/themes/twentytwentytwo/inc/patterns/header-logo-navigation-social-black-background.php
r52283 r52375 5 5 return array( 6 6 'title' => __( 'Logo, navigation, and social links header with black background', 'twentytwentytwo' ), 7 'categories' => array( ' twentytwentytwo-headers' ),7 'categories' => array( 'header' ), 8 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":"max(1.25rem, 5vw)","bottom":"max(1.25rem, 5vw)","left":"max(1.25rem, 5vw)","right":"max(1.25rem, 5vw)"}}},"backgroundColor":"tertiary","textColor":"foreground","layout":{"inherit":true}} --> -
trunk/src/wp-content/themes/twentytwentytwo/inc/patterns/header-small-dark.php
r52283 r52375 5 5 return array( 6 6 'title' => __( 'Small header with dark background', 'twentytwentytwo' ), 7 'categories' => array( ' twentytwentytwo-headers' ),7 'categories' => array( 'header' ), 8 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":"0px","bottom":"0px","right":"0px","left":"0px"},"margin":{"bottom":"8rem"}}},"backgroundColor":"foreground","textColor":"background","layout":{"inherit":true}} --> … … 23 23 24 24 <!-- wp:image {"align":"wide","sizeSlug":"full","linkDestination":"none"} --> 25 <figure class="wp-block-image alignwide size-full"><img src="' . esc_url( get_ stylesheet_directory_uri() ) . '/assets/images/flight-path-on-transparent-d.png" alt="' . esc_attr__( 'Illustration of a bird flying.', 'twentytwentytwo' ) . '"/></figure>25 <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> 26 26 <!-- /wp:image --></div> 27 27 <!-- /wp:group -->', -
trunk/src/wp-content/themes/twentytwentytwo/inc/patterns/header-stacked.php
r52283 r52375 5 5 return array( 6 6 'title' => __( 'Logo and navigation header', 'twentytwentytwo' ), 7 'categories' => array( ' twentytwentytwo-headers' ),7 'categories' => array( 'header' ), 8 8 'blockTypes' => array( 'core/template-part/header' ), 9 9 'content' => '<!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"bottom":"8rem","top":"max(1.25rem, 5vw)"}}}} --> -
trunk/src/wp-content/themes/twentytwentytwo/inc/patterns/header-text-only-green-background.php
r52283 r52375 5 5 return array( 6 6 'title' => __( 'Text-only header with green background', 'twentytwentytwo' ), 7 'categories' => array( ' twentytwentytwo-headers' ),7 'categories' => array( 'header' ), 8 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":"max(1.25rem, 5vw)","bottom":"max(1.25rem, 5vw)","left":"max(1.25rem, 5vw)","right":"max(1.25rem, 5vw)"}}},"backgroundColor":"primary","textColor":"background","layout":{"inherit":true}} --> -
trunk/src/wp-content/themes/twentytwentytwo/inc/patterns/header-text-only-salmon-background.php
r52283 r52375 5 5 return array( 6 6 'title' => __( 'Text-only header with salmon background', 'twentytwentytwo' ), 7 'categories' => array( ' twentytwentytwo-headers' ),7 'categories' => array( 'header' ), 8 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":"max(1.25rem, 5vw)","bottom":"max(1.25rem, 5vw)","left":"max(1.25rem, 5vw)","right":"max(1.25rem, 5vw)"}}},"backgroundColor":"secondary","textColor":"foreground","layout":{"inherit":true}} --> -
trunk/src/wp-content/themes/twentytwentytwo/inc/patterns/header-text-only-with-tagline-black-background.php
r52283 r52375 5 5 return array( 6 6 'title' => __( 'Text-only header with tagline and black background', 'twentytwentytwo' ), 7 'categories' => array( ' twentytwentytwo-headers' ),7 'categories' => array( 'header' ), 8 8 'blockTypes' => array( 'core/template-part/header' ), 9 9 'content' => '<!-- wp:group {"align":"full","style":{"elements":{"link":{"color":{"text":"var:preset|color|secondary"}}},"spacing":{"padding":{"top":"max(1.25rem, 5vw)","bottom":"max(1.25rem, 5vw)","left":"max(1.25rem, 5vw)","right":"max(1.25rem, 5vw)"}}},"backgroundColor":"foreground","textColor":"secondary","layout":{"inherit":true}} --> -
trunk/src/wp-content/themes/twentytwentytwo/inc/patterns/header-title-and-button.php
r52283 r52375 5 5 return array( 6 6 'title' => __( 'Title and button header', 'twentytwentytwo' ), 7 'categories' => array( ' twentytwentytwo-headers' ),7 'categories' => array( 'header' ), 8 8 'blockTypes' => array( 'core/template-part/header' ), 9 9 'content' => '<!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"bottom":"8rem","top":"max(1.25rem, 5vw)"}}},"layout":{"type":"flex","justifyContent":"space-between"}} --> -
trunk/src/wp-content/themes/twentytwentytwo/inc/patterns/header-title-navigation-social.php
r52283 r52375 5 5 return array( 6 6 'title' => __( 'Title, navigation, and social links header', 'twentytwentytwo' ), 7 'categories' => array( ' twentytwentytwo-headers' ),7 'categories' => array( 'header' ), 8 8 'blockTypes' => array( 'core/template-part/header' ), 9 9 'content' => '<!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"bottom":"8rem","top":"max(1.25rem, 5vw)"}}},"layout":{"type":"flex","justifyContent":"space-between"}} --> -
trunk/src/wp-content/themes/twentytwentytwo/inc/patterns/header-with-tagline.php
r52283 r52375 5 5 return array( 6 6 'title' => __( 'Header with tagline', 'twentytwentytwo' ), 7 'categories' => array( ' twentytwentytwo-headers' ),7 'categories' => array( 'header' ), 8 8 'blockTypes' => array( 'core/template-part/header' ), 9 9 'content' => '<!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"bottom":"8rem","top":"max(1.25rem, 5vw)"}}},"layout":{"type":"flex","justifyContent":"space-between"}} --> -
trunk/src/wp-content/themes/twentytwentytwo/inc/patterns/hidden-bird.php
r52222 r52375 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_ stylesheet_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 ); -
trunk/src/wp-content/themes/twentytwentytwo/inc/patterns/hidden-heading-and-bird.php
r52081 r52375 17 17 18 18 <!-- wp:image {"align":"full","sizeSlug":"full","linkDestination":"none"} --> 19 <figure class="wp-block-image alignfull size-full"><img src="' . esc_url( get_ stylesheet_directory_uri() ) . '/assets/images/flight-path-on-transparent-c.png" alt="' . esc_attr__( 'Illustration of a bird flying.', 'twentytwentytwo' ) . '"/></figure>19 <figure class="wp-block-image alignfull size-full"><img src="' . esc_url( get_template_directory_uri() ) . '/assets/images/flight-path-on-transparent-c.png" alt="' . esc_attr__( 'Illustration of a bird flying.', 'twentytwentytwo' ) . '"/></figure> 20 20 <!-- /wp:image -->', 21 21 ); -
trunk/src/wp-content/themes/twentytwentytwo/inc/patterns/page-about-large-image-and-buttons.php
r52222 r52375 5 5 return array( 6 6 'title' => __( 'About page with large image and buttons', 'twentytwentytwo' ), 7 'categories' => array( ' twentytwentytwo-pages' ),7 'categories' => array( 'pages', 'buttons' ), 8 8 'content' => '<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"max(1.25rem, 5vw)","right":"max(1.25rem, 5vw)","bottom":"max(1.25rem, 5vw)","left":"max(1.25rem, 5vw)"}}},"layout":{"inherit":true}} --> 9 9 <div class="wp-block-group alignfull" style="padding-top:max(1.25rem, 5vw);padding-right:max(1.25rem, 5vw);padding-bottom:max(1.25rem, 5vw);padding-left:max(1.25rem, 5vw)"><!-- wp:image {"align":"full","sizeSlug":"full","linkDestination":"none"} --> 10 <figure class="wp-block-image alignfull size-full"><img src="' . esc_url( get_ stylesheet_directory_uri() ) . '/assets/images/flight-path-on-gray-b.jpg" alt=""/></figure>10 <figure class="wp-block-image alignfull 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 -
trunk/src/wp-content/themes/twentytwentytwo/inc/patterns/page-about-links-dark.php
r52081 r52375 5 5 return array( 6 6 'title' => __( 'About page links (dark)', 'twentytwentytwo' ), 7 'categories' => array( ' twentytwentytwo-pages' ),7 'categories' => array( 'pages', 'buttons' ), 8 8 'content' => '<!-- wp:group {"align":"full","style":{"elements":{"link":{"color":{"text":"var:preset|color|background"}}},"spacing":{"padding":{"top":"10rem","right":"max(1.25rem, 5vw)","bottom":"10rem","left":"max(1.25rem, 5vw)"}}},"backgroundColor":"primary","textColor":"background","layout":{"inherit":false,"contentSize":"400px"}} --> 9 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:10rem;padding-right:max(1.25rem, 5vw);padding-bottom:10rem;padding-left:max(1.25rem, 5vw)"><!-- wp:group --> … … 11 11 12 12 <!-- wp:image {"width":100,"height":100,"sizeSlug":"full","linkDestination":"none","className":"is-style-rounded"} --> 13 <figure class="wp-block-image size-full is-resized is-style-rounded"><img src="' . esc_url( get_ stylesheet_directory_uri() ) . '/assets/images/icon-bird.jpg" alt="' . esc_attr__( 'Logo featuring a flying bird', 'twentytwentytwo' ) . '" width="100" height="100"/></figure>13 <figure class="wp-block-image size-full is-resized is-style-rounded"><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> 14 14 <!-- /wp:image --> 15 15 -
trunk/src/wp-content/themes/twentytwentytwo/inc/patterns/page-about-links.php
r52081 r52375 5 5 return array( 6 6 'title' => __( 'About page links', 'twentytwentytwo' ), 7 'categories' => array( ' twentytwentytwo-pages' ),7 'categories' => array( 'pages', 'buttons' ), 8 8 'content' => '<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"10rem","right":"max(1.25rem, 5vw)","bottom":"10rem","left":"max(1.25rem, 5vw)"}}},"layout":{"inherit":false,"contentSize":"400px"}} --> 9 9 <div class="wp-block-group alignfull" style="padding-top:10rem;padding-right:max(1.25rem, 5vw);padding-bottom:10rem;padding-left:max(1.25rem, 5vw)"><!-- 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_ stylesheet_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 -
trunk/src/wp-content/themes/twentytwentytwo/inc/patterns/page-about-media-left.php
r52283 r52375 5 5 return array( 6 6 'title' => __( 'About page with media on the left', 'twentytwentytwo' ), 7 'categories' => array( ' twentytwentytwo-pages' ),7 'categories' => array( 'pages' ), 8 8 'content' => '<!-- wp:media-text {"align":"full","mediaType":"image","imageFill":true,"focalPoint":{"x":"0.63","y":"0.16"},"backgroundColor":"foreground","className":"alignfull is-image-fill has-background-color has-text-color has-background has-link-color"} --> 9 <div class="wp-block-media-text alignfull is-stacked-on-mobile is-image-fill has-background-color has-text-color has-background has-link-color has-foreground-background-color has-background"><figure class="wp-block-media-text__media" style="background-image:url(' . esc_url( get_ stylesheet_directory_uri() ) . '/assets/images/bird-on-salmon.jpg);background-position:63% 16%"><img src="' . esc_url( get_stylesheet_directory_uri() ) . '/assets/images/bird-on-salmon.jpg" alt="' . esc_attr__( 'Image of a bird on a branch', 'twentytwentytwo' ) . '"/></figure><div class="wp-block-media-text__content"><!-- wp:spacer {"height":32} -->9 <div class="wp-block-media-text alignfull is-stacked-on-mobile is-image-fill has-background-color has-text-color has-background has-link-color has-foreground-background-color has-background"><figure class="wp-block-media-text__media" style="background-image:url(' . esc_url( get_template_directory_uri() ) . '/assets/images/bird-on-salmon.jpg);background-position:63% 16%"><img src="' . esc_url( get_template_directory_uri() ) . '/assets/images/bird-on-salmon.jpg" alt="' . esc_attr__( 'Image of a bird on a branch', '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 --> -
trunk/src/wp-content/themes/twentytwentytwo/inc/patterns/page-about-media-right.php
r52283 r52375 5 5 return array( 6 6 'title' => __( 'About page with media on the right', 'twentytwentytwo' ), 7 'categories' => array( ' twentytwentytwo-pages' ),8 'content' => '<!-- wp:media-text {"align":"full","mediaPosition":"right","mediaLink":"' . esc_url( get_ stylesheet_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_ stylesheet_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} -->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 --> -
trunk/src/wp-content/themes/twentytwentytwo/inc/patterns/page-about-simple-dark.php
r52283 r52375 5 5 return array( 6 6 'title' => __( 'Simple dark about page', 'twentytwentytwo' ), 7 'categories' => array( ' twentytwentytwo-pages' ),7 'categories' => array( 'pages' ), 8 8 'content' => '<!-- wp:cover {"overlayColor":"foreground","minHeight":100,"minHeightUnit":"vh","contentPosition":"center center","align":"full","style":{"spacing":{"padding":{"top":"max(1.25rem, 8vw)","right":"max(1.25rem, 8vw)","bottom":"max(1.25rem, 8vw)","left":"max(1.25rem, 8vw)"}}}} --> 9 9 <div class="wp-block-cover alignfull has-foreground-background-color has-background-dim" style="padding-top:max(1.25rem, 8vw);padding-right:max(1.25rem, 8vw);padding-bottom:max(1.25rem, 8vw);padding-left:max(1.25rem, 8vw);min-height:100vh"><div class="wp-block-cover__inner-container"><!-- wp:navigation {"layout":{"type":"flex","setCascadingProperties":true,"justifyContent":"right"},"overlayMenu":"always"} --> -
trunk/src/wp-content/themes/twentytwentytwo/inc/patterns/page-about-solid-color.php
r52222 r52375 5 5 return array( 6 6 'title' => __( 'About page on solid color background', 'twentytwentytwo' ), 7 'categories' => array( ' twentytwentytwo-pages' ),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"} --> -
trunk/src/wp-content/themes/twentytwentytwo/inc/patterns/page-layout-image-and-text.php
r52283 r52375 5 5 return array( 6 6 'title' => __( 'Page layout with image and text', 'twentytwentytwo' ), 7 'categories' => array( ' twentytwentytwo-pages' ),7 'categories' => array( 'pages' ), 8 8 'content' => '<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"8rem","bottom":"2rem","right":"max(1.25rem, 5vw)","left":"max(1.25rem, 5vw)"}}},"layout":{"inherit":true}} --> 9 9 <div class="wp-block-group alignfull" style="padding-top:8rem;padding-right:max(1.25rem, 5vw);padding-bottom:2rem;padding-left:max(1.25rem, 5vw)"><!-- wp:heading {"align":"wide","style":{"typography":{"fontSize":"clamp(4rem, 8vw, 7.5rem)","lineHeight":"1.15","fontWeight":"300"}}} --> -
trunk/src/wp-content/themes/twentytwentytwo/inc/patterns/page-layout-image-text-and-video.php
r52081 r52375 5 5 return array( 6 6 'title' => __( 'Page layout with image, text and video', 'twentytwentytwo' ), 7 'categories' => array( ' twentytwentytwo-pages' ),7 'categories' => array( 'pages' ), 8 8 'content' => '<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"8rem","bottom":"8rem","left":"0px","right":"0px"}}},"backgroundColor":"primary","textColor":"background"} --> 9 <div class="wp-block-group alignfull has-background-color has-primary-background-color has-text-color has-background" style="padding-top:8rem;padding-bottom:8rem;padding-left:0px;padding-right:0px"><!-- wp:group {" align":"full","layout":{"inherit":true},"style":{"spacing":{"padding":{"left":"max(1.25rem, 5vw)","right":"max(1.25rem, 5vw)"}}}} -->10 <div class="wp-block-group alignfull" style="padding-left:max(1.25rem, 5vw);padding-right:max(1.25rem, 5vw)"><!-- wp:heading {"level":1,"align":"wide","style":{"typography":{"fontSize":"clamp(3rem, 6vw, 4.5rem)"}}} -->9 <div class="wp-block-group alignfull has-background-color has-primary-background-color has-text-color has-background" style="padding-top:8rem;padding-bottom:8rem;padding-left:0px;padding-right:0px"><!-- wp:group {"layout":{"inherit":true},"style":{"spacing":{"padding":{"left":"max(1.25rem, 5vw)","right":"max(1.25rem, 5vw)"}}}} --> 10 <div class="wp-block-group" style="padding-left:max(1.25rem, 5vw);padding-right:max(1.25rem, 5vw)"><!-- wp:heading {"level":1,"align":"wide","style":{"typography":{"fontSize":"clamp(3rem, 6vw, 4.5rem)"}}} --> 11 11 <h1 class="alignwide" style="font-size:clamp(3rem, 6vw, 4.5rem)">' . wp_kses_post( __( '<em>Warble</em>, a film about <br>hobbyist bird watchers.', 'twentytwentytwo' ) ) . '</h1> 12 12 <!-- /wp:heading --> -
trunk/src/wp-content/themes/twentytwentytwo/inc/patterns/page-layout-two-columns.php
r52081 r52375 5 5 return array( 6 6 'title' => __( 'Page layout with two columns', 'twentytwentytwo' ), 7 'categories' => array( ' twentytwentytwo-pages' ),7 'categories' => array( 'pages' ), 8 8 'content' => '<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"8rem","bottom":"8rem","right":"max(1.25rem, 5vw)","left":"max(1.25rem, 5vw)"}}},"layout":{"inherit":true}} --> 9 9 <div class="wp-block-group alignfull" style="padding-top:8rem;padding-right:max(1.25rem, 5vw);padding-bottom:8rem;padding-left:max(1.25rem, 5vw)"><!-- wp:heading {"level":1,"align":"wide","style":{"typography":{"fontSize":"clamp(4rem, 15vw, 12.5rem)","lineHeight":"1","fontWeight":"200"}}} --> -
trunk/src/wp-content/themes/twentytwentytwo/inc/patterns/page-sidebar-blog-posts-right.php
r52283 r52375 5 5 return array( 6 6 'title' => __( 'Blog posts with right sidebar', 'twentytwentytwo' ), 7 'categories' => array( ' twentytwentytwo-pages' ),7 'categories' => array( 'pages' ), 8 8 'content' => '<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"max(1.25rem, 5vw)","right":"max(1.25rem, 5vw)","bottom":"max(1.25rem, 5vw)","left":"max(1.25rem, 5vw)"}}},"layout":{"inherit":true}} --> 9 9 <div class="wp-block-group alignfull" style="padding-top:max(1.25rem, 5vw);padding-right:max(1.25rem, 5vw);padding-bottom:max(1.25rem, 5vw);padding-left:max(1.25rem, 5vw)"><!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"bottom":"2rem","top":"0px","right":"0px","left":"0px"}}},"layout":{"type":"flex","justifyContent":"space-between"}} --> -
trunk/src/wp-content/themes/twentytwentytwo/inc/patterns/page-sidebar-blog-posts.php
r52081 r52375 5 5 return array( 6 6 'title' => __( 'Blog posts with left sidebar', 'twentytwentytwo' ), 7 'categories' => array( ' twentytwentytwo-pages' ),7 'categories' => array( 'pages' ), 8 8 'content' => '<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"max(1.25rem, 5vw)","right":"max(1.25rem, 5vw)","bottom":"max(1.25rem, 5vw)","left":"max(1.25rem, 5vw)"}}},"layout":{"inherit":true}} --> 9 9 <div class="wp-block-group alignfull" style="padding-top:max(1.25rem, 5vw);padding-right:max(1.25rem, 5vw);padding-bottom:max(1.25rem, 5vw);padding-left:max(1.25rem, 5vw)"><!-- wp:columns {"align":"wide","style":{"spacing":{"margin":{"top":"0px","bottom":"0px"},"blockGap":"5%"},"elements":{"link":{"color":{"text":"var:preset|color|primary"}}}},"textColor":"primary"} --> -
trunk/src/wp-content/themes/twentytwentytwo/inc/patterns/page-sidebar-grid-posts.php
r52081 r52375 5 5 return array( 6 6 'title' => __( 'Grid of posts with left sidebar', 'twentytwentytwo' ), 7 'categories' => array( ' twentytwentytwo-pages' ),7 'categories' => array( 'pages' ), 8 8 'content' => '<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"max(1.25rem, 5vw)","right":"max(1.25rem, 5vw)","bottom":"max(1.25rem, 5vw)","left":"max(1.25rem, 5vw)"}}},"layout":{"inherit":true}} --> 9 9 <div class="wp-block-group alignfull" style="padding-top:max(1.25rem, 5vw);padding-right:max(1.25rem, 5vw);padding-bottom:max(1.25rem, 5vw);padding-left:max(1.25rem, 5vw)"><!-- wp:columns {"align":"wide","style":{"spacing":{"margin":{"top":"0px","bottom":"0px"}}}} --> -
trunk/src/wp-content/themes/twentytwentytwo/inc/patterns/page-sidebar-poster.php
r52081 r52375 5 5 return array( 6 6 'title' => __( 'Poster with right sidebar', 'twentytwentytwo' ), 7 'categories' => array( ' twentytwentytwo-pages' ),7 'categories' => array( 'pages' ), 8 8 'content' => '<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"left":"max(1.25rem, 5vw)","right":"max(1.25rem, 5vw)"}}},"layout":{"inherit":true}} --> 9 9 <div class="wp-block-group alignfull" style="padding-right:max(1.25rem, 5vw);padding-left:max(1.25rem, 5vw)"><!-- wp:columns {"align":"wide","style":{"spacing":{"blockGap":"5%"}}} --> … … 24 24 <div class="wp-block-columns alignwide"><!-- wp:column {"width":"70%","style":{"spacing":{"padding":{"bottom":"32px"}}}} --> 25 25 <div class="wp-block-column" style="padding-bottom:32px;flex-basis:70%"><!-- wp:image {"sizeSlug":"full","linkDestination":"none"} --> 26 <figure class="wp-block-image size-full"><img src="' . esc_url( get_ stylesheet_directory_uri() ) . '/assets/images/bird-on-salmon.jpg" alt="' . esc_attr__( 'Image of a bird on a branch', 'twentytwentytwo' ) . '"/></figure>26 <figure class="wp-block-image size-full"><img src="' . esc_url( get_template_directory_uri() ) . '/assets/images/bird-on-salmon.jpg" alt="' . esc_attr__( 'Image of a bird on a branch', 'twentytwentytwo' ) . '"/></figure> 27 27 <!-- /wp:image --></div> 28 28 <!-- /wp:column --> -
trunk/src/wp-content/themes/twentytwentytwo/inc/patterns/query-default.php
r52081 r52375 5 5 return array( 6 6 'title' => __( 'Default posts', 'twentytwentytwo' ), 7 'categories' => array( ' twentytwentytwo-query' ),7 'categories' => array( 'query' ), 8 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}} --> 12 <div class="wp-block-group"><!-- wp:post-title {"isLink":true,"align":"wide"," style":{"typography":{"fontStyle":"normal","fontWeight":"300"}},"fontSize":"huge"} /-->12 <div class="wp-block-group"><!-- wp:post-title {"isLink":true,"align":"wide","fontSize":"huge"} /--> 13 13 14 14 <!-- wp:post-featured-image {"isLink":true,"align":"wide","style":{"spacing":{"margin":{"top":"calc(1.75 * var(--wp--style--block-gap))"}}}} /--> -
trunk/src/wp-content/themes/twentytwentytwo/inc/patterns/query-grid.php
r52081 r52375 5 5 return array( 6 6 'title' => __( 'Grid of posts', 'twentytwentytwo' ), 7 'categories' => array( ' twentytwentytwo-query' ),7 'categories' => array( 'query' ), 8 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}} --> -
trunk/src/wp-content/themes/twentytwentytwo/inc/patterns/query-image-grid.php
r52164 r52375 5 5 return array( 6 6 'title' => __( 'Grid of image posts', 'twentytwentytwo' ), 7 'categories' => array( ' twentytwentytwo-query' ),7 'categories' => array( 'query' ), 8 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}} --> -
trunk/src/wp-content/themes/twentytwentytwo/inc/patterns/query-irregular-grid.php
r52081 r52375 5 5 return array( 6 6 'title' => __( 'Irregular grid of posts', 'twentytwentytwo' ), 7 'categories' => array( ' twentytwentytwo-query' ),7 'categories' => array( 'query' ), 8 8 'blockTypes' => array( 'core/query' ), 9 9 'content' => '<!-- wp:group {"align":"wide"} --> -
trunk/src/wp-content/themes/twentytwentytwo/inc/patterns/query-large-titles.php
r52081 r52375 5 5 return array( 6 6 'title' => __( 'Large post titles', 'twentytwentytwo' ), 7 'categories' => array( ' twentytwentytwo-query' ),7 'categories' => array( 'query' ), 8 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"} --> -
trunk/src/wp-content/themes/twentytwentytwo/inc/patterns/query-simple-blog.php
r52081 r52375 5 5 return array( 6 6 'title' => __( 'Simple blog posts', 'twentytwentytwo' ), 7 'categories' => array( ' twentytwentytwo-query' ),7 'categories' => array( 'query' ), 8 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}} --> -
trunk/src/wp-content/themes/twentytwentytwo/inc/patterns/query-text-grid.php
r52081 r52375 5 5 return array( 6 6 'title' => __( 'Text-based grid of posts', 'twentytwentytwo' ), 7 'categories' => array( ' twentytwentytwo-query' ),7 'categories' => array( 'query' ), 8 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}} --> -
trunk/src/wp-content/themes/twentytwentytwo/parts/footer.html
r52335 r52375 1 <!-- wp:group {"style":{"spacing":{"padding":{"top":"var(--wp--custom--spacing--large, 8rem)" ,"right":"var(--wp--custom--spacing--small, 1.25rem)","left":"var(--wp--custom--spacing--small, 1.25rem)"}}},"layout":{"inherit":true}} -->2 <div class="wp-block-group" style="padding-top:var(--wp--custom--spacing--large, 8rem) ;padding-right:var(--wp--custom--spacing--small, 1.25rem);padding-left:var(--wp--custom--spacing--small, 1.25rem)">1 <!-- wp:group {"style":{"spacing":{"padding":{"top":"var(--wp--custom--spacing--large, 8rem)"}}},"layout":{"inherit":true}} --> 2 <div class="wp-block-group" style="padding-top:var(--wp--custom--spacing--large, 8rem)"> 3 3 <!-- wp:pattern {"slug":"twentytwentytwo/footer-default"} /--> 4 4 </div> -
trunk/src/wp-content/themes/twentytwentytwo/parts/header-large-dark.html
r52335 r52375 1 <!-- wp:group {"align":"full","style":{"elements":{"link":{"color":{"text":"var:preset|color|background"}}},"spacing":{"padding":{"top":"0px","bottom":"var(--wp--custom--spacing--large, 8rem)","right":"0px","left":"0px"},"margin":{"bottom":"var(--wp--custom--spacing--large, 8rem)"}}},"backgroundColor":"foreground","textColor":"background","layout":{"inherit":true}} --> 2 <div class="wp-block-group alignfull has-background-color has-foreground-background-color has-text-color has-background has-link-color" style="margin-bottom:var(--wp--custom--spacing--large, 8rem);padding-top:0px;padding-right:0px;padding-bottom:var(--wp--custom--spacing--large, 8rem);padding-left:0px"><!-- wp:template-part {"slug":"header","tagName":"header","align":"full"} /--> 1 <!-- wp:group {"layout":{"inherit":true}} --> 2 <div class="wp-block-group"><!-- wp:group {"align":"full","style":{"elements":{"link":{"color":{"text":"var:preset|color|background"}}},"spacing":{"padding":{"top":"0px","bottom":"0px"},"margin":{"bottom":"var(--wp--custom--spacing--large, 8rem)"}}},"backgroundColor":"foreground","textColor":"background","layout":{"inherit":true}} --> 3 <div class="wp-block-group alignfull has-background-color has-foreground-background-color has-text-color has-background has-link-color" style="margin-bottom:var(--wp--custom--spacing--large, 8rem);padding-top:0px;padding-bottom:0px"><!-- wp:template-part {"slug":"header","tagName":"header","align":"wide"} /--> 3 4 4 5 <!-- wp:pattern {"slug":"twentytwentytwo/hidden-heading-and-bird"} /--></div> 6 <!-- /wp:group --></div> 5 7 <!-- /wp:group --> -
trunk/src/wp-content/themes/twentytwentytwo/parts/header-small-dark.html
r52335 r52375 1 <!-- wp:group {"align":"full","style":{"elements":{"link":{"color":{"text":"var:preset|color|background"}}},"spacing":{"padding":{"top":"0px","bottom":"0px","right":"0px","left":"0px"},"margin":{"bottom":"var(--wp--custom--spacing--large, 8rem)"}}},"backgroundColor":"foreground","textColor":"background","layout":{"inherit":true}} --> 2 <div class="wp-block-group alignfull has-background-color has-foreground-background-color has-text-color has-background has-link-color" style="margin-bottom:var(--wp--custom--spacing--large, 8rem);padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px"><!-- wp:template-part {"slug":"header","tagName":"header","align":"full"} /--> 1 <!-- wp:group {"layout":{"inherit":true}} --> 2 <div class="wp-block-group"><!-- wp:group {"align":"full","style":{"elements":{"link":{"color":{"text":"var:preset|color|background"}}},"spacing":{"padding":{"top":"0px","bottom":"0px"},"margin":{"bottom":"var(--wp--custom--spacing--large, 8rem)"}}},"backgroundColor":"foreground","textColor":"background","layout":{"inherit":true}} --> 3 <div class="wp-block-group alignfull has-background-color has-foreground-background-color has-text-color has-background has-link-color" style="margin-bottom:var(--wp--custom--spacing--large, 8rem);padding-top:0px;padding-bottom:0px"><!-- wp:template-part {"slug":"header","tagName":"header","align":"wide"} /--> 3 4 4 5 <!-- wp:pattern {"slug":"twentytwentytwo/hidden-bird"} /--></div> 6 <!-- /wp:group --></div> 5 7 <!-- /wp:group --> -
trunk/src/wp-content/themes/twentytwentytwo/parts/header.html
r52335 r52375 1 <!-- wp:group {"style":{"spacing":{"padding":{"right":"var(--wp--custom--spacing--small, 1.25rem)","left":"var(--wp--custom--spacing--small, 1.25rem)"}}},"layout":{"inherit":true}} --> 2 <div class="wp-block-group" style="padding-right:var(--wp--custom--spacing--small, 1.25rem);padding-left:var(--wp--custom--spacing--small, 1.25rem)"> 3 <!-- 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"}} --> 4 <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"}} --> 5 <div class="wp-block-group"><!-- wp:site-logo {"width":64} /--> 1 <!-- wp:group {"layout":{"inherit":true}} --> 2 <div class="wp-block-group"><!-- 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"}} --> 3 <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"}} --> 4 <div class="wp-block-group"><!-- wp:site-logo {"width":64} /--> 6 5 7 8 6 <!-- wp:site-title {"style":{"typography":{"fontStyle":"italic","fontWeight":"400"}}} /--></div> 7 <!-- /wp:group --> 9 8 10 <!-- wp:navigation {"layout":{"type":"flex","setCascadingProperties":true,"justifyContent":"right"}} --> 11 <!-- wp:page-list {"isNavigationChild":true,"showSubmenuIcon":true,"openSubmenusOnClick":false} /--> 12 <!-- /wp:navigation --></div> 13 <!-- /wp:group --> 14 </div> 9 <!-- wp:navigation {"layout":{"type":"flex","setCascadingProperties":true,"justifyContent":"right"}} --> 10 <!-- wp:page-list {"isNavigationChild":true,"showSubmenuIcon":true,"openSubmenusOnClick":false} /--> 11 <!-- /wp:navigation --></div> 12 <!-- /wp:group --></div> 15 13 <!-- /wp:group --> -
trunk/src/wp-content/themes/twentytwentytwo/style.css
r52335 r52375 30 30 31 31 /* 32 * Text link styles.32 * Text and navigation link styles. 33 33 * Necessary until the following issue is resolved in Gutenberg: 34 34 * https://github.com/WordPress/gutenberg/issues/27075 … … 47 47 a:active { 48 48 text-decoration: none; 49 } 50 51 .wp-block-navigation .wp-block-navigation-item a:hover, 52 .wp-block-navigation .wp-block-navigation-item a:focus { 53 text-decoration: underline; 54 text-decoration-style: solid; 49 55 } 50 56 … … 77 83 opacity: 0.90; 78 84 } 85 86 /* 87 * Alignment styles. 88 * These rules are temporary, and should not be relied on or 89 * modified too heavily by themes or plugins that build on 90 * Twenty Twenty-Two. These are meant to be a precursor to 91 * a global solution provided by the Block Editor. 92 * 93 * Relevant issues: 94 * https://github.com/WordPress/gutenberg/issues/35607 95 * https://github.com/WordPress/gutenberg/issues/35884 96 */ 97 98 .wp-site-blocks, 99 .is-root-container, 100 .edit-post-visual-editor__post-title-wrapper, 101 .wp-block-group.alignfull, 102 .is-root-container .wp-block[data-align="full"] > .wp-block-group { 103 padding-left: var(--wp--custom--spacing--outer); 104 padding-right: var(--wp--custom--spacing--outer); 105 } 106 107 .wp-site-blocks .alignfull, 108 .is-root-container .wp-block[data-align="full"] { 109 margin-left: calc(-1 * var(--wp--custom--spacing--outer)) !important; 110 margin-right: calc(-1 * var(--wp--custom--spacing--outer)) !important; 111 width: unset; 112 } 113 114 /* Blocks inside columns don't have negative margins. */ 115 .wp-site-blocks .wp-block-columns .wp-block-column .alignfull, 116 .is-root-container .wp-block-columns .wp-block-column .wp-block[data-align="full"], 117 /* We also want to avoid stacking negative margins. */ 118 .wp-site-blocks .alignfull:not(.wp-block-group) .alignfull, 119 .is-root-container .wp-block[data-align="full"] > *:not(.wp-block-group) .wp-block[data-align="full"] { 120 margin-left: auto !important; 121 margin-right: auto !important; 122 width: inherit; 123 } -
trunk/src/wp-content/themes/twentytwentytwo/templates/404.html
r52335 r52375 1 1 <!-- wp:template-part {"slug":"header","tagName":"header"} /--> 2 2 3 <!-- wp:group {"tagName":"main" ,"style":{"spacing":{"padding":{"right":"var(--wp--custom--spacing--small, 1.25rem)","left":"var(--wp--custom--spacing--small, 1.25rem)"}}}} -->4 <main class="wp-block-group" style="padding-right:var(--wp--custom--spacing--small, 1.25rem);padding-left:var(--wp--custom--spacing--small, 1.25rem)"><!-- wp:group {"layout":{"inherit":true}} -->3 <!-- wp:group {"tagName":"main"} --> 4 <main class="wp-block-group"><!-- wp:group {"layout":{"inherit":true}} --> 5 5 <div class="wp-block-group"> 6 6 <!-- wp:pattern {"slug":"twentytwentytwo/hidden-404"} /--> -
trunk/src/wp-content/themes/twentytwentytwo/templates/archive.html
r52335 r52375 1 1 <!-- wp:template-part {"slug":"header","tagName":"header"} /--> 2 2 3 <!-- wp:group {" style":{"spacing":{"padding":{"right":"var(--wp--custom--spacing--small, 1.25rem)","left":"var(--wp--custom--spacing--small, 1.25rem)"}}}} -->4 <div class="wp-block-group" style="padding-right:var(--wp--custom--spacing--small, 1.25rem);padding-left:var(--wp--custom--spacing--small, 1.25rem)">3 <!-- wp:group {"layout":{"inherit":true}} --> 4 <div class="wp-block-group"><!-- wp:query-title {"type":"archive","align":"wide","style":{"typography":{"fontSize":"clamp(3rem, 6vw, 4rem)"},"spacing":{"margin":{"bottom":"6rem"}}}} /--> 5 5 6 <!-- wp:group {"layout":{"inherit":true}} --> 7 <div class="wp-block-group"><!-- wp:query-title {"type":"archive","align":"wide","style":{"typography":{"fontSize":"clamp(3rem, 6vw, 4rem)"},"spacing":{"margin":{"bottom":"6rem"}}}} /--></div> 8 <!-- /wp:group --> 9 10 <!-- wp:query {"query":{"perPage":10,"pages":0,"offset":0,"postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true},"layout":{"inherit":true},"tagName":"main"} --> 11 <main class="wp-block-query"><!-- wp:post-template {"align":"wide"} --> 12 <!-- wp:group {"layout":{"inherit":true}} --> 13 <div class="wp-block-group"><!-- wp:post-title {"isLink":true,"align":"wide","style":{"typography":{"fontStyle":"normal","fontWeight":"300"}},"fontSize":"huge"} /--> 6 <!-- wp:query {"query":{"perPage":10,"pages":0,"offset":0,"postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true},"tagName":"main","align":"wide","layout":{"inherit":false}} --> 7 <main class="wp-block-query alignwide"><!-- wp:post-template {"align":"wide"} --> 8 <!-- wp:post-title {"isLink":true,"align":"wide","style":{"typography":{"fontStyle":"normal","fontWeight":"300"}},"fontSize":"huge"} /--> 14 9 15 10 <!-- wp:post-featured-image {"isLink":true,"align":"wide","style":{"spacing":{"margin":{"top":"calc(1.75 * var(--wp--style--block-gap))"}}}} /--> … … 19 14 <div class="wp-block-column" style="flex-basis:650px"><!-- wp:post-excerpt /--> 20 15 21 <!-- wp:post-date {" isLink":true,"format":"F j, Y","style":{"typography":{"fontStyle":"italic","fontWeight":"400"}},"fontSize":"small"} /--></div>16 <!-- wp:post-date {"format":"F j, Y","isLink":true,"style":{"typography":{"fontStyle":"italic","fontWeight":"400"}},"fontSize":"small"} /--></div> 22 17 <!-- /wp:column --> 23 18 … … 29 24 <!-- wp:spacer {"height":112} --> 30 25 <div style="height:112px" aria-hidden="true" class="wp-block-spacer"></div> 31 <!-- /wp:spacer --></div> 32 <!-- /wp:group --> 26 <!-- /wp:spacer --> 33 27 <!-- /wp:post-template --> 34 28 -
trunk/src/wp-content/themes/twentytwentytwo/templates/home.html
r52335 r52375 1 1 <!-- wp:template-part {"slug":"header-small-dark","tagName":"header"} /--> 2 3 <!-- wp:group {"style":{"spacing":{"padding":{"right":"var(--wp--custom--spacing--small, 1.25rem)","left":"var(--wp--custom--spacing--small, 1.25rem)"}}}} -->4 <div class="wp-block-group" style="padding-right:var(--wp--custom--spacing--small, 1.25rem);padding-left:var(--wp--custom--spacing--small, 1.25rem)">5 2 6 3 <!-- wp:query {"query":{"perPage":10,"pages":0,"offset":0,"postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true},"layout":{"inherit":true},"tagName":"main"} --> 7 4 <main class="wp-block-query"><!-- wp:post-template {"align":"wide"} --> 8 5 <!-- wp:group {"layout":{"inherit":true}} --> 9 <div class="wp-block-group"><!-- wp:post-title {"isLink":true,"align":"wide"," style":{"typography":{"fontStyle":"normal","fontWeight":"300"}},"fontSize":"huge"} /-->6 <div class="wp-block-group"><!-- wp:post-title {"isLink":true,"align":"wide","fontSize":"huge"} /--> 10 7 11 8 <!-- wp:post-featured-image {"isLink":true,"align":"wide","style":{"spacing":{"margin":{"top":"calc(1.75 * var(--wp--style--block-gap))"}}}} /--> … … 36 33 <!-- wp:query-pagination-next {"fontSize":"small"} /--> 37 34 <!-- /wp:query-pagination --></main> 38 <!-- /wp:query --></div> 39 <!-- /wp:group --> 35 <!-- /wp:query --> 40 36 41 37 <!-- wp:template-part {"slug":"footer","tagName":"footer"} /--> -
trunk/src/wp-content/themes/twentytwentytwo/templates/index.html
r52335 r52375 1 1 <!-- wp:template-part {"slug":"header","tagName":"header"} /--> 2 3 <!-- wp:group {"style":{"spacing":{"padding":{"right":"var(--wp--custom--spacing--small, 1.25rem)","left":"var(--wp--custom--spacing--small, 1.25rem)"}}}} -->4 <div class="wp-block-group" style="padding-right:var(--wp--custom--spacing--small, 1.25rem);padding-left:var(--wp--custom--spacing--small, 1.25rem)">5 2 6 3 <!-- wp:query {"query":{"perPage":10,"pages":0,"offset":0,"postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true},"layout":{"inherit":true},"tagName":"main"} --> 7 4 <main class="wp-block-query"><!-- wp:post-template {"align":"wide"} --> 8 5 <!-- wp:group {"layout":{"inherit":true}} --> 9 <div class="wp-block-group"><!-- wp:post-title {"isLink":true,"align":"wide"," style":{"typography":{"fontStyle":"normal","fontWeight":"300"}},"fontSize":"huge"} /-->6 <div class="wp-block-group"><!-- wp:post-title {"isLink":true,"align":"wide","fontSize":"huge"} /--> 10 7 11 8 <!-- wp:post-featured-image {"isLink":true,"align":"wide","style":{"spacing":{"margin":{"top":"calc(1.75 * var(--wp--style--block-gap))"}}}} /--> … … 36 33 <!-- wp:query-pagination-next {"fontSize":"small"} /--> 37 34 <!-- /wp:query-pagination --></main> 38 <!-- /wp:query --></div> 39 <!-- /wp:group --> 35 <!-- /wp:query --> 40 36 41 37 <!-- wp:template-part {"slug":"footer","tagName":"footer"} /--> -
trunk/src/wp-content/themes/twentytwentytwo/templates/page-large-header.html
r52335 r52375 1 1 <!-- wp:template-part {"slug":"header-large-dark","tagName":"header"} /--> 2 2 3 <!-- wp:group {"tagName":"main" ,"style":{"spacing":{"padding":{"right":"var(--wp--custom--spacing--small, 1.25rem)","left":"var(--wp--custom--spacing--small, 1.25rem)"}}}} -->4 <main class="wp-block-group" style="padding-right:var(--wp--custom--spacing--small, 1.25rem);padding-left:var(--wp--custom--spacing--small, 1.25rem)">3 <!-- wp:group {"tagName":"main"} --> 4 <main class="wp-block-group"> 5 5 <!-- wp:post-content {"layout":{"inherit":true}} /--> 6 6 </main> -
trunk/src/wp-content/themes/twentytwentytwo/templates/page-no-separators.html
r52335 r52375 1 1 <!-- wp:template-part {"slug":"header","tagName":"header"} /--> 2 2 3 <!-- wp:group {"tagName":"main" ,"style":{"spacing":{"padding":{"right":"var(--wp--custom--spacing--small, 1.25rem)","left":"var(--wp--custom--spacing--small, 1.25rem)"}}}} -->4 <main class="wp-block-group" style="padding-right:var(--wp--custom--spacing--small, 1.25rem);padding-left:var(--wp--custom--spacing--small, 1.25rem)"><!-- wp:group {"layout":{"inherit":true}} -->5 <div class="wp-block-group"><!-- wp:post-title {" align":"wide","style":{"spacing":{"margin":{"bottom":"var(--wp--custom--spacing--medium, 6rem)"}}}} /-->3 <!-- wp:group {"tagName":"main"} --> 4 <main class="wp-block-group"><!-- wp:group {"layout":{"inherit":true}} --> 5 <div class="wp-block-group"><!-- wp:post-title {"level":1,"align":"wide","style":{"spacing":{"margin":{"bottom":"var(--wp--custom--spacing--medium, 6rem)"}}}} /--> 6 6 7 7 <!-- wp:post-featured-image {"align":"wide","style":{"spacing":{"margin":{"bottom":"var(--wp--custom--spacing--medium, 6rem)"}}}} /--></div> -
trunk/src/wp-content/themes/twentytwentytwo/templates/page.html
r52335 r52375 1 1 <!-- wp:template-part {"slug":"header","tagName":"header"} /--> 2 2 3 <!-- wp:group {"tagName":"main" ,"style":{"spacing":{"padding":{"right":"var(--wp--custom--spacing--small, 1.25rem)","left":"var(--wp--custom--spacing--small, 1.25rem)"}}}} -->4 <main class="wp-block-group" style="padding-right:var(--wp--custom--spacing--small, 1.25rem);padding-left:var(--wp--custom--spacing--small, 1.25rem)"><!-- wp:group {"layout":{"inherit":true}} -->5 <div class="wp-block-group"><!-- wp:post-title {" align":"wide","style":{"spacing":{"margin":{"bottom":"var(--wp--custom--spacing--medium, 6rem)"}}}} /-->3 <!-- wp:group {"tagName":"main"} --> 4 <main class="wp-block-group"><!-- wp:group {"layout":{"inherit":true}} --> 5 <div class="wp-block-group"><!-- wp:post-title {"level":1,"align":"wide","style":{"spacing":{"margin":{"bottom":"var(--wp--custom--spacing--medium, 6rem)"}}}} /--> 6 6 7 7 <!-- wp:post-featured-image {"align":"wide","style":{"spacing":{"margin":{"bottom":"var(--wp--custom--spacing--medium, 6rem)"}}}} /--> -
trunk/src/wp-content/themes/twentytwentytwo/templates/single-no-separators.html
r52335 r52375 1 1 <!-- wp:template-part {"slug":"header","tagName":"header"} /--> 2 2 3 <!-- wp:group {"tagName":"main" ,"style":{"spacing":{"padding":{"right":"var(--wp--custom--spacing--small, 1.25rem)","left":"var(--wp--custom--spacing--small, 1.25rem)"}}}} -->4 <main class="wp-block-group" style="padding-right:var(--wp--custom--spacing--small, 1.25rem);padding-left:var(--wp--custom--spacing--small, 1.25rem)"><!-- wp:group {"layout":{"inherit":true}} -->5 <div class="wp-block-group"><!-- wp:post-title {" align":"wide","style":{"spacing":{"margin":{"bottom":"var(--wp--custom--spacing--medium, 6rem)"}}}} /-->3 <!-- wp:group {"tagName":"main"} --> 4 <main class="wp-block-group"><!-- wp:group {"layout":{"inherit":true}} --> 5 <div class="wp-block-group"><!-- wp:post-title {"level":1,"align":"wide","style":{"spacing":{"margin":{"bottom":"var(--wp--custom--spacing--medium, 6rem)"}}}} /--> 6 6 7 7 <!-- wp:post-featured-image {"align":"wide","style":{"spacing":{"margin":{"bottom":"var(--wp--custom--spacing--medium, 6rem)"}}}} /--></div> -
trunk/src/wp-content/themes/twentytwentytwo/templates/single.html
r52335 r52375 1 1 <!-- wp:template-part {"slug":"header","tagName":"header"} /--> 2 2 3 <!-- wp:group {"tagName":"main" ,"style":{"spacing":{"padding":{"right":"var(--wp--custom--spacing--small, 1.25rem)","left":"var(--wp--custom--spacing--small, 1.25rem)"}}}} -->4 <main class="wp-block-group" style="padding-right:var(--wp--custom--spacing--small, 1.25rem);padding-left:var(--wp--custom--spacing--small, 1.25rem)"><!-- wp:group {"layout":{"inherit":true}} -->5 <div class="wp-block-group"><!-- wp:post-title {" align":"wide","style":{"spacing":{"margin":{"bottom":"var(--wp--custom--spacing--medium, 6rem)"}}}} /-->3 <!-- wp:group {"tagName":"main"} --> 4 <main class="wp-block-group"><!-- wp:group {"layout":{"inherit":true}} --> 5 <div class="wp-block-group"><!-- wp:post-title {"level":1,"align":"wide","style":{"spacing":{"margin":{"bottom":"var(--wp--custom--spacing--medium, 6rem)"}}}} /--> 6 6 7 7 <!-- wp:post-featured-image {"align":"wide","style":{"spacing":{"margin":{"bottom":"var(--wp--custom--spacing--medium, 6rem)"}}}} /--> -
trunk/src/wp-content/themes/twentytwentytwo/theme.json
r52283 r52375 141 141 "small": "max(1.25rem, 5vw)", 142 142 "medium": "clamp(2rem, 8vw, calc(4 * var(--wp--style--block-gap)))", 143 "large": "clamp(4rem, 10vw, 8rem)" 143 "large": "clamp(4rem, 10vw, 8rem)", 144 "outer": "var(--wp--custom--spacing--small, 1.25rem)" 144 145 }, 145 146 "typography": {
Note: See TracChangeset
for help on using the changeset viewer.