Make WordPress Core

Ticket #56720: 56720.diff

File 56720.diff, 7.7 KB (added by poena, 20 months ago)

Update block pattern names

  • src/wp-content/themes/twentytwentytwo/inc/patterns/header-centered-logo-black-background.php

     
    33 * Header with centered logo and black background
    44 */
    55return array(
    6         'title'      => __( 'Header with centered logo and black background', 'twentytwentytwo' ),
     6        'title'      => __( 'Header with centered logo and background', 'twentytwentytwo' ),
    77        'categories' => array( 'header' ),
    88        'blockTypes' => array( 'core/template-part/header' ),
    99        'content'    => '<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"bottom":"var(--wp--custom--spacing--small, 1.25rem)","top":"var(--wp--custom--spacing--small, 1.25rem)"}},"elements":{"link":{"color":{"text":"var:preset|color|background"}}}},"backgroundColor":"foreground","textColor":"background","layout":{"type":"flex","justifyContent":"center"}} -->
  • src/wp-content/themes/twentytwentytwo/inc/patterns/header-centered-title-navigation-social.php

     
    33 * Centered header with navigation, social links, and salmon background block pattern
    44 */
    55return array(
    6         'title'      => __( 'Centered header with navigation, social links, and salmon background', 'twentytwentytwo' ),
     6        'title'      => __( 'Centered header with navigation, social links, and background', 'twentytwentytwo' ),
    77        'categories' => array( 'header' ),
    88        'blockTypes' => array( 'core/template-part/header' ),
    99        'content'    => '<!-- wp:group {"align":"full","style":{"elements":{"link":{"color":{"text":"var:preset|color|primary"}}},"spacing":{"padding":{"top":"var(--wp--custom--spacing--small, 1.25rem)","bottom":"var(--wp--custom--spacing--small, 1.25rem)"}}},"backgroundColor":"secondary","textColor":"primary","layout":{"inherit":true}} -->
  • src/wp-content/themes/twentytwentytwo/inc/patterns/header-logo-navigation-gray-background.php

     
    33 * Logo and navigation header with gray background
    44 */
    55return array(
    6         'title'      => __( 'Logo and navigation header with gray background', 'twentytwentytwo' ),
     6        'title'      => __( 'Logo and navigation header with background', 'twentytwentytwo' ),
    77        'categories' => array( 'header' ),
    88        'blockTypes' => array( 'core/template-part/header' ),
    99        'content'    => '<!-- wp:group {"align":"full","style":{"elements":{"link":{"color":{"text":"var:preset|color|foreground"}}},"spacing":{"padding":{"top":"var(--wp--custom--spacing--small, 1.25rem)","bottom":"var(--wp--custom--spacing--small, 1.25rem)"}}},"backgroundColor":"tertiary","textColor":"foreground","layout":{"inherit":true}} -->
  • src/wp-content/themes/twentytwentytwo/inc/patterns/header-logo-navigation-social-black-background.php

     
    33 * Logo, navigation, and social links header with black background block pattern
    44 */
    55return array(
    6         'title'      => __( 'Logo, navigation, and social links header with black background', 'twentytwentytwo' ),
     6        'title'      => __( 'Logo, navigation, and social links header with background', 'twentytwentytwo' ),
    77        'categories' => array( 'header' ),
    88        'blockTypes' => array( 'core/template-part/header' ),
    99        'content'    => '<!-- wp:group {"align":"full","style":{"elements":{"link":{"color":{"text":"var:preset|color|background"}}},"spacing":{"padding":{"top":"var(--wp--custom--spacing--small, 1.25rem)","bottom":"var(--wp--custom--spacing--small, 1.25rem)"}}},"backgroundColor":"foreground","textColor":"background","layout":{"inherit":true}} -->
  • src/wp-content/themes/twentytwentytwo/inc/patterns/header-text-only-green-background.php

     
    33 * Text-only header with green background block pattern
    44 */
    55return array(
    6         'title'      => __( 'Text-only header with green background', 'twentytwentytwo' ),
     6        'title'      => __( 'Text-only header with background', 'twentytwentytwo' ),
    77        'categories' => array( 'header' ),
    88        'blockTypes' => array( 'core/template-part/header' ),
    99        'content'    => '<!-- wp:group {"align":"full","style":{"elements":{"link":{"color":{"text":"var:preset|color|background"}}},"spacing":{"padding":{"top":"var(--wp--custom--spacing--small, 1.25rem)","bottom":"var(--wp--custom--spacing--small, 1.25rem)"}}},"backgroundColor":"primary","textColor":"background","layout":{"inherit":true}} -->
  • src/wp-content/themes/twentytwentytwo/inc/patterns/header-text-only-salmon-background.php

     
    33 * Text-only header with salmon background block pattern
    44 */
    55return array(
    6         'title'      => __( 'Text-only header with salmon background', 'twentytwentytwo' ),
     6        'title'      => __( 'Text-only header with background', 'twentytwentytwo' ),
    77        'categories' => array( 'header' ),
    88        'blockTypes' => array( 'core/template-part/header' ),
    99        'content'    => '<!-- wp:group {"align":"full","style":{"elements":{"link":{"color":{"text":"var:preset|color|foreground"}}},"spacing":{"padding":{"top":"var(--wp--custom--spacing--small, 1.25rem)","bottom":"var(--wp--custom--spacing--small, 1.25rem)"}}},"backgroundColor":"secondary","textColor":"foreground","layout":{"inherit":true}} -->
  • src/wp-content/themes/twentytwentytwo/inc/patterns/header-text-only-with-tagline-black-background.php

     
    33 * Text-only header with tagline and black background block pattern
    44 */
    55return array(
    6         'title'      => __( 'Text-only header with tagline and black background', 'twentytwentytwo' ),
     6        'title'      => __( 'Text-only header with tagline and background', 'twentytwentytwo' ),
    77        'categories' => array( 'header' ),
    88        'blockTypes' => array( 'core/template-part/header' ),
    99        'content'    => '<!-- wp:group {"align":"full","style":{"elements":{"link":{"color":{"text":"var:preset|color|secondary"}}},"spacing":{"padding":{"top":"var(--wp--custom--spacing--small, 1.25rem)","bottom":"var(--wp--custom--spacing--small, 1.25rem)"}}},"backgroundColor":"foreground","textColor":"secondary","layout":{"inherit":true}} -->