Make WordPress Core


Ignore:
Timestamp:
10/22/2019 06:25:45 PM (5 years ago)
Author:
desrosj
Message:

Bundled Themes: Update Twenty Twenty.

This brings trunk’s version of Twenty Twenty in-sync with GitHub.

For a complete list of changes since [46551], see https://github.com/WordPress/twentytwenty/compare/bc89c51...4549fd9.

Reviewed by SergeyBiryukov, desrosj, ianbelanger.
Props anlino, ianbelanger, poena, williampatton, nielslange, acosmin, intimez, itowhid06, decrecementofeliz, aristath, westonruter, mukesh27, jorgefilipecosta, karmatosed.
Fixes #48386.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwenty/inc/starter-content.php

    r46446 r46571  
    2222    // Define and register starter content to showcase the theme on new sites.
    2323    $starter_content = array(
    24         'widgets'   => array(
     24        'widgets'     => array(
    2525            // Place one core-defined widgets in the first footer widget area.
    2626            'sidebar-1' => array(
     
    3333        ),
    3434
     35        // Create the custom image attachments used as post thumbnails for pages.
     36        'attachments' => array(
     37            'image-opening' => array(
     38                'post_title' => _x( 'The New UMoMA Opens its Doors', 'Theme starter content', 'twentytwenty' ),
     39                'file'       => 'assets/images/2020-landscape-1.png', // URL relative to the template directory.
     40            ),
     41        ),
     42
    3543        // Specify the core-defined pages to create and add custom thumbnails to some of them.
    36         'posts'     => array(
     44        'posts'       => array(
    3745            'front' => array(
    3846                'post_type'    => 'page',
    3947                'post_title'   => __( 'The New UMoMA Opens its Doors', 'twentytwenty' ),
     48                // Use the above featured image with the predefined about page.
     49                'thumbnail'    => '{{image-opening}}',
    4050                'post_content' => join(
    4151                    '',
     
    5060                        '<div class="wp-block-column"><!-- wp:group -->',
    5161                        '<div class="wp-block-group"><div class="wp-block-group__inner-container">',
     62                        '<!-- wp:image {"align":"full","id":37,"sizeSlug":"full"} -->',
     63                        '<figure class="wp-block-image alignfull size-full"><img src="' . get_theme_file_uri() . '/assets/images/2020-three-quarters-1.png" alt="" class="wp-image-37"/></figure>',
     64                        '<!-- /wp:image -->',
    5265                        '<!-- wp:heading {"level":3} -->',
    5366                        '<h3>' . __( 'Works and Days', 'twentytwenty' ) . '</h3>',
     
    6275                        '<!-- wp:group -->',
    6376                        '<div class="wp-block-group"><div class="wp-block-group__inner-container">',
     77                        '<!-- wp:image {"align":"full","id":37,"sizeSlug":"full"} -->',
     78                        '<figure class="wp-block-image alignfull size-full"><img src="' . get_theme_file_uri() . '/assets/images/2020-three-quarters-3.png" alt="" class="wp-image-37"/></figure>',
     79                        '<!-- /wp:image -->',
    6480                        '<!-- wp:heading {"level":3} -->',
    6581                        '<h3>' . __( 'Theatre of Operations', 'twentytwenty' ) . '</h3>',
     
    7692                        '<div class="wp-block-column"><!-- wp:group -->',
    7793                        '<div class="wp-block-group"><div class="wp-block-group__inner-container">',
     94                        '<!-- wp:image {"align":"full","id":37,"sizeSlug":"full"} -->',
     95                        '<figure class="wp-block-image alignfull size-full"><img src="' . get_theme_file_uri() . '/assets/images/2020-three-quarters-2.png" alt="" class="wp-image-37"/></figure>',
     96                        '<!-- /wp:image -->',
    7897                        '<!-- wp:heading {"level":3} -->',
    7998                        '<h3>' . __( 'The Life I Deserve', 'twentytwenty' ) . '</h3>',
     
    88107                        '<!-- wp:group -->',
    89108                        '<div class="wp-block-group"><div class="wp-block-group__inner-container">',
     109                        '<!-- wp:image {"align":"full","id":37,"sizeSlug":"full"} -->',
     110                        '<figure class="wp-block-image alignfull size-full"><img src="' . get_theme_file_uri() . '/assets/images/2020-three-quarters-4.png" alt="" class="wp-image-37"/></figure>',
     111                        '<!-- /wp:image -->',
    90112                        '<!-- wp:heading {"level":3} -->',
    91113                        '<h3>' . __( 'From Signac to Matisse', 'twentytwenty' ) . '</h3>',
     
    100122                        '<!-- /wp:column --></div>',
    101123                        '<!-- /wp:columns -->',
     124                        '<!-- wp:image {"align":"full","id":37,"sizeSlug":"full"} -->',
     125                        '<figure class="wp-block-image alignfull size-full"><img src="' . get_theme_file_uri() . '/assets/images/2020-landscape-2.png" alt="" class="wp-image-37"/></figure>',
     126                        '<!-- /wp:image -->',
    102127                        '<!-- wp:group {"align":"wide"} -->',
    103128                        '<div class="wp-block-group alignwide"><div class="wp-block-group__inner-container"><!-- wp:heading {"align":"center","textColor":"accent"} -->',
     
    127152                        '<!-- /wp:group --></div></div>',
    128153                        '<!-- /wp:group -->',
     154                        '<!-- wp:gallery {"ids":[39,38],"align":"wide"} -->',
     155                        '<figure class="wp-block-gallery alignwide columns-2 is-cropped"><ul class="blocks-gallery-grid"><li class="blocks-gallery-item"><figure><img src="' . get_theme_file_uri() . '/assets/images/2020-square-2.png" alt="" data-id="39" data-full-url="' . get_theme_file_uri() . '/assets/images/2020-square-2.png" data-link="assets/images/2020-square-2/" class="wp-image-39"/></figure></li><li class="blocks-gallery-item"><figure><img src="' . get_theme_file_uri() . '/assets/images/2020-square-1.png" alt="" data-id="38" data-full-url="' . get_theme_file_uri() . '/assets/images/2020-square-1.png" data-link="' . get_theme_file_uri() . '/assets/images/2020-square-1/" class="wp-image-38"/></figure></li></ul></figure>',
     156                        '<!-- /wp:gallery -->',
    129157                    )
    130158                ),
     
    136164
    137165        // Default to a static front page and assign the front and posts pages.
    138         'options'   => array(
     166        'options'     => array(
    139167            'show_on_front'  => 'page',
    140168            'page_on_front'  => '{{front}}',
     
    143171
    144172        // Set up nav menus for each of the two areas registered in the theme.
    145         'nav_menus' => array(
     173        'nav_menus'   => array(
    146174            // Assign a menu to the "primary" location.
    147175            'primary'  => array(
Note: See TracChangeset for help on using the changeset viewer.