WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/19/2021 08:12:44 PM (2 weeks ago)
Author:
jffng
Message:

Twenty Twenty-Two: Sync updates from GitHub.

This commit syncs several changes for the default theme from its active development repository to core.

This is a follow up to [52081], [52107], and [52164]. It includes improvements to the home page template, adding a filter for block patterns, pre-loading the web font, improvements and bug fixes to block patterns, and more. For a full list of changes, visit https://github.com/WordPress/twentytwentytwo/compare/e4f69d0b7ed93f73b33c5991430618d01b0e3cac...25d74deaa57ba49b5a64a8569e6dd9ebadbfb23c.

Props jeffpaul, richtabor, netweb, luminuu, melchoyce, beafealho, clucasrowlands, desrosj, flixos90, joen, otto42, saju4wordpress, westonruter, kjellr, poena.
See #54318.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwentytwo/inc/patterns/footer-title-tagline-social.php

    r52081 r52222  
    11<?php
    22/**
    3  * Footer with title, tagline, and social links
     3 * Footer with title, tagline, and social links on a dark background
    44 */
    55return array(
    6     'title'      => __( 'Footer with title, tagline, and social links', 'twentytwentytwo' ),
     6    'title'      => __( 'Footer with title, tagline, and social links on a dark background', 'twentytwentytwo' ),
    77    'categories' => array( 'twentytwentytwo-footers' ),
    88    'blockTypes' => array( 'core/template-part/footer' ),
    9     '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}} -->
    10                     <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"} -->
    11                     <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="' . esc_html__( 'Illustration of a flying bird', 'twentytwentytwo' ) . '"/></figure>
    12                     <!-- /wp:image -->
     9    'content'    => '<!-- wp:group {"align":"full","style":{"elements":{"link":{"color":{"text":"var:preset|color|background"}}}},"backgroundColor":"foreground","textColor":"background","layout":{"inherit":true}} -->
     10                    <div class="wp-block-group alignfull has-background-color has-foreground-background-color has-text-color has-background has-link-color"><!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"top":"4rem","bottom":"4rem"}}},"layout":{"type":"flex","justifyContent":"space-between"}} -->
     11                    <div class="wp-block-group alignwide" style="padding-top:4rem;padding-bottom:4rem"><!-- wp:group -->
     12                    <div class="wp-block-group"><!-- wp:site-title {"style":{"spacing":{"margin":{"top":"0px","bottom":"0px"}},"typography":{"textTransform":"uppercase"}}} /-->
    1313
    14                     <!-- wp:spacer {"height":16} -->
    15                     <div style="height:16px" aria-hidden="true" class="wp-block-spacer"></div>
    16                     <!-- /wp:spacer -->
     14                    <!-- wp:site-tagline {"style":{"spacing":{"margin":{"top":"0.25em","bottom":"0px"}},"typography":{"fontStyle":"italic","fontWeight":"400"}},"fontSize":"small"} /--></div>
     15                    <!-- /wp:group -->
    1716
    18                     <!-- wp:columns {"align":"full"} -->
    19                     <div class="wp-block-columns alignfull"><!-- wp:column -->
    20                     <div class="wp-block-column"><!-- wp:buttons -->
    21                     <div class="wp-block-buttons"><!-- wp:button {"width":100} -->
    22                     <div class="wp-block-button has-custom-width wp-block-button__width-100"><a class="wp-block-button__link">' . esc_html__( 'Purchase my work', 'twentytwentytwo' ) . '</a></div>
    23                     <!-- /wp:button --></div>
    24                     <!-- /wp:buttons --></div>
    25                     <!-- /wp:column -->
     17                    <!-- wp:social-links {"iconBackgroundColor":"foreground","iconBackgroundColorValue":"var(--wp--preset--color--foreground)","layout":{"type":"flex","justifyContent":"right"}} -->
     18                    <ul class="wp-block-social-links has-icon-background-color"><!-- wp:social-link {"url":"#","service":"facebook"} /-->
    2619
    27                     <!-- wp:column -->
    28                     <div class="wp-block-column"><!-- wp:buttons -->
    29                     <div class="wp-block-buttons"><!-- wp:button {"width":100} -->
    30                     <div class="wp-block-button has-custom-width wp-block-button__width-100"><a class="wp-block-button__link">' . esc_html__( 'Support my studio', 'twentytwentytwo' ) . '</a></div>
    31                     <!-- /wp:button --></div>
    32                     <!-- /wp:buttons --></div>
    33                     <!-- /wp:column -->
     20                    <!-- wp:social-link {"url":"#","service":"twitter"} /-->
    3421
    35                     <!-- wp:column -->
    36                     <div class="wp-block-column"><!-- wp:buttons -->
    37                     <div class="wp-block-buttons"><!-- wp:button {"width":100} -->
    38                     <div class="wp-block-button has-custom-width wp-block-button__width-100"><a class="wp-block-button__link">' . esc_html__( 'Take a class', 'twentytwentytwo' ) . '</a></div>
    39                     <!-- /wp:button --></div>
    40                     <!-- /wp:buttons --></div>
    41                     <!-- /wp:column --></div>
    42                     <!-- /wp:columns -->
    43 
    44                     <!-- wp:columns {"align":"full"} -->
    45                     <div class="wp-block-columns alignfull"><!-- wp:column -->
    46                     <div class="wp-block-column"><!-- wp:buttons -->
    47                     <div class="wp-block-buttons"><!-- wp:button {"width":100} -->
    48                     <div class="wp-block-button has-custom-width wp-block-button__width-100"><a class="wp-block-button__link">' . esc_html__( 'Read about me', 'twentytwentytwo' ) . '</a></div>
    49                     <!-- /wp:button --></div>
    50                     <!-- /wp:buttons --></div>
    51                     <!-- /wp:column -->
    52 
    53                     <!-- wp:column -->
    54                     <div class="wp-block-column"><!-- wp:buttons -->
    55                     <div class="wp-block-buttons"><!-- wp:button {"width":100} -->
    56                     <div class="wp-block-button has-custom-width wp-block-button__width-100"><a class="wp-block-button__link">' . esc_html__( 'See my process', 'twentytwentytwo' ) . '</a></div>
    57                     <!-- /wp:button --></div>
    58                     <!-- /wp:buttons --></div>
    59                     <!-- /wp:column -->
    60 
    61                     <!-- wp:column -->
    62                     <div class="wp-block-column"><!-- wp:buttons -->
    63                     <div class="wp-block-buttons"><!-- wp:button {"width":100} -->
    64                     <div class="wp-block-button has-custom-width wp-block-button__width-100"><a class="wp-block-button__link">' . esc_html__( 'Join my mailing list', 'twentytwentytwo' ) . '</a></div>
    65                     <!-- /wp:button --></div>
    66                     <!-- /wp:buttons --></div>
    67                     <!-- /wp:column --></div>
    68                     <!-- /wp:columns -->
    69 
    70                     <!-- wp:spacer {"height":32} -->
    71                     <div style="height:32px" aria-hidden="true" class="wp-block-spacer"></div>
    72                     <!-- /wp:spacer -->
    73 
    74                     <!-- wp:social-links {"iconColor":"primary","iconColorValue":"var(--wp--custom--color--primary)","className":"is-style-logos-only","layout":{"type":"flex","justifyContent":"center"}} -->
    75                     <ul class="wp-block-social-links has-icon-color is-style-logos-only"><!-- wp:social-link {"url":"https://wordpress.org/","service":"wordpress"} /-->
    76 
    77                     <!-- wp:social-link {"url":"https://www.facebook.com/","service":"facebook"} /-->
    78 
    79                     <!-- wp:social-link {"url":"https://twitter.com/","service":"twitter"} /-->
    80 
    81                     <!-- wp:social-link {"url":"https://www.instagram.com/","service":"instagram"} /--></ul>
     22                    <!-- wp:social-link {"url":"#","service":"instagram"} /--></ul>
    8223                    <!-- /wp:social-links --></div>
     24                    <!-- /wp:group --></div>
    8325                    <!-- /wp:group -->',
    8426);
Note: See TracChangeset for help on using the changeset viewer.