- Timestamp:
- 10/22/2019 06:25:45 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentytwenty/inc/starter-content.php
r46446 r46571 22 22 // Define and register starter content to showcase the theme on new sites. 23 23 $starter_content = array( 24 'widgets' => array(24 'widgets' => array( 25 25 // Place one core-defined widgets in the first footer widget area. 26 26 'sidebar-1' => array( … … 33 33 ), 34 34 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 35 43 // Specify the core-defined pages to create and add custom thumbnails to some of them. 36 'posts' => array(44 'posts' => array( 37 45 'front' => array( 38 46 'post_type' => 'page', 39 47 'post_title' => __( 'The New UMoMA Opens its Doors', 'twentytwenty' ), 48 // Use the above featured image with the predefined about page. 49 'thumbnail' => '{{image-opening}}', 40 50 'post_content' => join( 41 51 '', … … 50 60 '<div class="wp-block-column"><!-- wp:group -->', 51 61 '<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 -->', 52 65 '<!-- wp:heading {"level":3} -->', 53 66 '<h3>' . __( 'Works and Days', 'twentytwenty' ) . '</h3>', … … 62 75 '<!-- wp:group -->', 63 76 '<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 -->', 64 80 '<!-- wp:heading {"level":3} -->', 65 81 '<h3>' . __( 'Theatre of Operations', 'twentytwenty' ) . '</h3>', … … 76 92 '<div class="wp-block-column"><!-- wp:group -->', 77 93 '<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 -->', 78 97 '<!-- wp:heading {"level":3} -->', 79 98 '<h3>' . __( 'The Life I Deserve', 'twentytwenty' ) . '</h3>', … … 88 107 '<!-- wp:group -->', 89 108 '<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 -->', 90 112 '<!-- wp:heading {"level":3} -->', 91 113 '<h3>' . __( 'From Signac to Matisse', 'twentytwenty' ) . '</h3>', … … 100 122 '<!-- /wp:column --></div>', 101 123 '<!-- /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 -->', 102 127 '<!-- wp:group {"align":"wide"} -->', 103 128 '<div class="wp-block-group alignwide"><div class="wp-block-group__inner-container"><!-- wp:heading {"align":"center","textColor":"accent"} -->', … … 127 152 '<!-- /wp:group --></div></div>', 128 153 '<!-- /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 -->', 129 157 ) 130 158 ), … … 136 164 137 165 // Default to a static front page and assign the front and posts pages. 138 'options' => array(166 'options' => array( 139 167 'show_on_front' => 'page', 140 168 'page_on_front' => '{{front}}', … … 143 171 144 172 // Set up nav menus for each of the two areas registered in the theme. 145 'nav_menus' => array(173 'nav_menus' => array( 146 174 // Assign a menu to the "primary" location. 147 175 'primary' => array(
Note: See TracChangeset
for help on using the changeset viewer.