diff --git a/GALLERY.md b/GALLERY.md index 1cae493..1981081 100644 --- a/GALLERY.md +++ b/GALLERY.md @@ -12,6 +12,7 @@ Here's the list of all the community Blueprints submitted to this repository. Se | Display Admin Notice | Blueprint to add a tiny mu-plugin and display an admin notice | [@bph](https://github.com/bph) | • [Open in Playground](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/admin-notice/blueprint.json)
• [View source](https://github.com/wordpress/blueprints/blob/trunk/blueprints/admin-notice/blueprint.json)
• [Edit](https://playground.wordpress.net/builder/builder.html?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/admin-notice/blueprint.json) | | Grid Variations Experiments enabled | Blueprint example to toggle on enable a feature from the Experiments page in Gutenberg plugin | [@bph](https://github.com/bph) | • [Open in Playground](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/grid-variations/blueprint.json)
• [View source](https://github.com/wordpress/blueprints/blob/trunk/blueprints/grid-variations/blueprint.json)
• [Edit](https://playground.wordpress.net/builder/builder.html?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/grid-variations/blueprint.json) | | Import Theme Starter Content | Blueprint to install a theme with starter content, (here: Twenty-Twenty-One) | [@bph](https://github.com/bph) | • [Open in Playground](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/themestartercontent/blueprint.json)
• [View source](https://github.com/wordpress/blueprints/blob/trunk/blueprints/themestartercontent/blueprint.json)
• [Edit](https://playground.wordpress.net/builder/builder.html?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/themestartercontent/blueprint.json) | +| Import a standalone starter content | Import a standalone starter content using a blueprint step | [@bph](https://github.com/bph) | • [Open in Playground](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/file-starter-content/blueprint.json)
• [View source](https://github.com/wordpress/blueprints/blob/trunk/blueprints/file-starter-content/blueprint.json)
• [Edit](https://playground.wordpress.net/builder/builder.html?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/file-starter-content/blueprint.json) | | Install WordPress language packs | Installs and activates the latest WordPress Japanese translation pack from https://translate.wordpress.org/ – both for WordPress core and for the friends plugin. | [@adamziel](https://github.com/adamziel) | • [Open in Playground](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/translations/blueprint.json)
• [View source](https://github.com/wordpress/blueprints/blob/trunk/blueprints/translations/blueprint.json)
• [Edit](https://playground.wordpress.net/builder/builder.html?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/translations/blueprint.json) | | Install plugin from a gist | Install and activate a WordPress plugin from a .php file stored in a gist. | [@zieladam](https://github.com/zieladam) | • [Open in Playground](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/install-plugin-from-gist/blueprint.json)
• [View source](https://github.com/wordpress/blueprints/blob/trunk/blueprints/install-plugin-from-gist/blueprint.json)
• [Edit](https://playground.wordpress.net/builder/builder.html?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/install-plugin-from-gist/blueprint.json) | | Latest Gutenberg plugin | A preview of the latest version of the Gutenberg plugin. | [@zieladam](https://github.com/zieladam) | • [Open in Playground](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/latest-gutenberg/blueprint.json)
• [View source](https://github.com/wordpress/blueprints/blob/trunk/blueprints/latest-gutenberg/blueprint.json)
• [Edit](https://playground.wordpress.net/builder/builder.html?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/latest-gutenberg/blueprint.json) | diff --git a/blueprints/file-starter-content/blueprint.json b/blueprints/file-starter-content/blueprint.json new file mode 100644 index 0000000..84e5ae5 --- /dev/null +++ b/blueprints/file-starter-content/blueprint.json @@ -0,0 +1,30 @@ +{ + "$schema": "https://playground.wordpress.net/blueprint-schema.json", + "meta": { + "title": "Import a standalone starter content via a blueprint step", + "author": "bph", + "description": "Blueprint to use a stand-alone starter content file and then to import it. Click on 'Subscriptions'", + "categories": ["Themes", "Starter Content"] + }, + "landingPage": "/", + "features": { + "networking": true + }, + "steps": [ + { + "step": "writeFile", + "path": "/wordpress/wp-content/plugins/starter-content.php", + "data": { + "resource": "url", + "url": "https://raw.githubusercontent.com/wordpress/blueprints/filestartercontent/blueprints/file-starter-content/startercontent.php" + } + }, + { + "step": "activatePlugin", + "pluginPath": "/wordpress/wp-content/plugins/starter-content.php" + }, + { + "step": "importThemeStarterContent" + } + ] +} \ No newline at end of file diff --git a/blueprints/file-starter-content/startercontent.php b/blueprints/file-starter-content/startercontent.php new file mode 100644 index 0000000..bebb80b --- /dev/null +++ b/blueprints/file-starter-content/startercontent.php @@ -0,0 +1,35 @@ + array( + 'homepage-section' => array( + 'post_type' => 'page', + 'post_title' => _x( 'Our Subscriptions', 'Theme starter content', 'your-text-domain' ), + 'post_content' => ' +
+ + +

We offer two subscription levels:

+ + + +
+' + ), + ), + ) ); +} );