Skip to content
This repository was archived by the owner on Dec 1, 2019. It is now read-only.

Commit d925696

Browse files
pattonwebzianbelanger79
authored andcommitted
Update/starter content (#803)
* EARLY: Add some blocks based items for the frontpage starter content * Fix spacing on array keys * Fix heading blocks resulting in unexpected html for block editor * Fix typo in a title * Remove images from contents for starter content so it's just strings. * remove local link
1 parent 4388912 commit d925696

File tree

1 file changed

+96
-2
lines changed

1 file changed

+96
-2
lines changed

inc/starter-content.php

Lines changed: 96 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,101 @@ function twentytwenty_get_starter_content() {
3434

3535
// Specify the core-defined pages to create and add custom thumbnails to some of them.
3636
'posts' => array(
37-
'home',
37+
'front' => array(
38+
'post_type' => 'page',
39+
'post_title' => __( 'The New UMoMA Opens its Doors', 'twentytwenty' ),
40+
'post_content' => join(
41+
'',
42+
array(
43+
'<!-- wp:group {"align":"wide"} -->',
44+
'<div class="wp-block-group alignwide"><div class="wp-block-group__inner-container"><!-- wp:heading {"align":"center"} -->',
45+
'<h2 class="has-text-align-center">' . __( 'The premier destination for modern art in Northern Sweden. Open from 10 AM to 6 PM every day during the summer months.', 'twentytwenty' ) . '</h2>',
46+
'<!-- /wp:heading --></div></div>',
47+
'<!-- /wp:group -->',
48+
'<!-- wp:columns {"align":"wide"} -->',
49+
'<div class="wp-block-columns alignwide"><!-- wp:column -->',
50+
'<div class="wp-block-column"><!-- wp:group -->',
51+
'<div class="wp-block-group"><div class="wp-block-group__inner-container">',
52+
'<!-- wp:heading {"level":3} -->',
53+
'<h3>' . __( 'Works and Days', 'twentytwenty' ) . '</h3>',
54+
'<!-- /wp:heading -->',
55+
'<!-- wp:paragraph -->',
56+
'<p>' . __( 'August 1 -- December 1', 'twentytwenty' ) . '</p>',
57+
'<!-- /wp:paragraph -->',
58+
'<!-- wp:button {"className":"is-style-outline"} -->',
59+
'<div class="wp-block-button is-style-outline"><a class="wp-block-button__link" href="https://make.wordpress.org/core/2019/09/27/block-editor-theme-related-updates-in-wordpress-5-3/">' . __( 'Read More', 'twentytwenty' ) . '</a></div>',
60+
'<!-- /wp:button --></div></div>',
61+
'<!-- /wp:group -->',
62+
'<!-- wp:group -->',
63+
'<div class="wp-block-group"><div class="wp-block-group__inner-container">',
64+
'<!-- wp:heading {"level":3} -->',
65+
'<h3>' . __( 'Theatre of Operations', 'twentytwenty' ) . '</h3>',
66+
'<!-- /wp:heading -->',
67+
'<!-- wp:paragraph -->',
68+
'<p>' . __( 'October 1 -- December 1', 'twentytwenty' ) . '</p>',
69+
'<!-- /wp:paragraph -->',
70+
'<!-- wp:button {"className":"is-style-outline"} -->',
71+
'<div class="wp-block-button is-style-outline"><a class="wp-block-button__link" href="https://make.wordpress.org/core/2019/09/27/block-editor-theme-related-updates-in-wordpress-5-3/">' . __( 'Read More', 'twentytwenty' ) . '</a></div>',
72+
'<!-- /wp:button --></div></div>',
73+
'<!-- /wp:group --></div>',
74+
'<!-- /wp:column -->',
75+
'<!-- wp:column -->',
76+
'<div class="wp-block-column"><!-- wp:group -->',
77+
'<div class="wp-block-group"><div class="wp-block-group__inner-container">',
78+
'<!-- wp:heading {"level":3} -->',
79+
'<h3>' . __( 'The Life I Deserve', 'twentytwenty' ) . '</h3>',
80+
'<!-- /wp:heading -->',
81+
'<!-- wp:paragraph -->',
82+
'<p>' . __( 'August 1 -- December 1', 'twentytwenty' ) . '</p>',
83+
'<!-- /wp:paragraph -->',
84+
'<!-- wp:button {"className":"is-style-outline"} -->',
85+
'<div class="wp-block-button is-style-outline"><a class="wp-block-button__link" href="https://make.wordpress.org/core/2019/09/27/block-editor-theme-related-updates-in-wordpress-5-3/">' . __( 'Read More', 'twentytwenty' ) . '</a></div>',
86+
'<!-- /wp:button --></div></div>',
87+
'<!-- /wp:group -->',
88+
'<!-- wp:group -->',
89+
'<div class="wp-block-group"><div class="wp-block-group__inner-container">',
90+
'<!-- wp:heading {"level":3} -->',
91+
'<h3>' . __( 'From Signac to Matisse', 'twentytwenty' ) . '</h3>',
92+
'<!-- /wp:heading -->',
93+
'<!-- wp:paragraph -->',
94+
'<p>' . __( 'October 1 -- December 1', 'twentytwenty' ) . '</p>',
95+
'<!-- /wp:paragraph -->',
96+
'<!-- wp:button {"className":"is-style-outline"} -->',
97+
'<div class="wp-block-button is-style-outline"><a class="wp-block-button__link" href="https://make.wordpress.org/core/2019/09/27/block-editor-theme-related-updates-in-wordpress-5-3/">' . __( 'Read More', 'twentytwenty' ) . '</a></div>',
98+
'<!-- /wp:button --></div></div>',
99+
'<!-- /wp:group --></div>',
100+
'<!-- /wp:column --></div>',
101+
'<!-- /wp:columns -->',
102+
'<!-- wp:group {"align":"wide"} -->',
103+
'<div class="wp-block-group alignwide"><div class="wp-block-group__inner-container"><!-- wp:heading {"align":"center","textColor":"accent"} -->',
104+
'<h2 class="has-accent-color has-text-align-center">' . __( '”Cyborgs, as the philosopher Donna Haraway established, are not reverent. They do not remember the cosmos.”', 'twentytwenty' ) . '</h2>',
105+
'<!-- /wp:heading --></div></div>',
106+
'<!-- /wp:group -->',
107+
'<!-- wp:paragraph {"dropCap":true} -->',
108+
'<p class="has-drop-cap">' . __( 'With seven floors of striking architecture, UMoMA shows exhibitions of international contemporary art, sometimes along with art historical retrospectives. Existential, political and philosophical issues are intrinsic to our programme. As visitor you are invited to guided tours artist talks, lectures, film screenings and other events with free admission', 'twentytwenty' ) . '</p>',
109+
'<!-- /wp:paragraph -->',
110+
'<!-- wp:paragraph -->',
111+
'<p>' . __( 'The exhibitions are produced by UMoMA in collaboration with artists and museums around the world and they often attract international attention. UMoMA has received a Special Commendation from the European Museum of the Year, and was among the top candidates for the Swedish Museum of the Year Award as well as for the Council of Europe Museum Prize.', 'twentytwenty' ) . '</p>',
112+
'<!-- /wp:paragraph -->',
113+
'<!-- wp:paragraph -->',
114+
'<p></p>',
115+
'<!-- /wp:paragraph -->',
116+
'<!-- wp:group {"customBackgroundColor":"#ffffff","align":"wide"} -->',
117+
'<div class="wp-block-group alignwide has-background" style="background-color:#ffffff"><div class="wp-block-group__inner-container"><!-- wp:group -->',
118+
'<div class="wp-block-group"><div class="wp-block-group__inner-container"><!-- wp:heading {"align":"center"} -->',
119+
'<h2 class="has-text-align-center">' . __( 'Become a Member and Get Exclusive Offers!', 'twentytwenty' ) . '</h2>',
120+
'<!-- /wp:heading -->',
121+
'<!-- wp:paragraph {"align":"center"} -->',
122+
'<p class="has-text-align-center">' . __( 'Members get access to exclusive exhibits and sales. Our memberships cost $99.99 and are billed annually.', 'twentytwenty' ) . '</p>',
123+
'<!-- /wp:paragraph -->',
124+
'<!-- wp:button {"align":"center"} -->',
125+
'<div class="wp-block-button aligncenter"><a class="wp-block-button__link" href="https://make.wordpress.org/core/2019/09/27/block-editor-theme-related-updates-in-wordpress-5-3/">' . __( 'Join the Club', 'twentytwenty' ) . '</a></div>',
126+
'<!-- /wp:button --></div></div>',
127+
'<!-- /wp:group --></div></div>',
128+
'<!-- /wp:group -->',
129+
)
130+
),
131+
),
38132
'about',
39133
'contact',
40134
'blog',
@@ -43,7 +137,7 @@ function twentytwenty_get_starter_content() {
43137
// Default to a static front page and assign the front and posts pages.
44138
'options' => array(
45139
'show_on_front' => 'page',
46-
'page_on_front' => '{{home}}',
140+
'page_on_front' => '{{front}}',
47141
'page_for_posts' => '{{blog}}',
48142
),
49143

0 commit comments

Comments
 (0)