Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions .distignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
/src
/tests
/.wp-env
# Keep .wordpress-org/blueprints in release tags so Playground git:directory
# installs (and WordPress.org Live Preview) can bootstrap the demo.

# Configuration files
.distignore
Expand Down
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
/node_modules export-ignore
/src export-ignore
/.wp-env export-ignore
/.wordpress-org export-ignore

# Configuration files
/.distignore export-ignore
Expand Down
32 changes: 32 additions & 0 deletions .wordpress-org/blueprints/blueprint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"$schema": "https://playground.wordpress.net/blueprint-schema.json",
"landingPage": "/blockparty-icons-demo/",
"preferredVersions": {
"php": "8.1",
"wp": "latest"
},
"steps": [
{
"step": "installPlugin",
"pluginData": {
"resource": "git:directory",
"url": "https://github.com/BeAPI/blockparty-icons",
"ref": "1.1.2",
"refType": "tag"
},
"options": {
"activate": true,
"targetFolderName": "blockparty-icons"
}
Comment thread
firestar300 marked this conversation as resolved.
},
{
"step": "login",
"username": "admin",
"password": "password"
},
{
"step": "runPHP",
"code": "<?php\nrequire_once 'wordpress/wp-load.php';\nrequire_once WP_PLUGIN_DIR . '/blockparty-icons/.wordpress-org/blueprints/bootstrap-playground.php';\n?>"
Comment thread
firestar300 marked this conversation as resolved.
}
]
}
42 changes: 42 additions & 0 deletions .wordpress-org/blueprints/bootstrap-playground.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?php
/**
* WordPress Playground bootstrap for Blockparty Icons.
*
* @package Blockparty\Icons
*/

if ( ! defined( 'ABSPATH' ) ) {
exit;
}

$plugin_dir = WP_PLUGIN_DIR . '/blockparty-icons';
$mu_src = $plugin_dir . '/.wordpress-org/blueprints/mu-plugin/blockparty-icons-playground.php';
$mu_dest = WP_CONTENT_DIR . '/mu-plugins/blockparty-icons-playground.php';

if ( ! is_dir( WP_CONTENT_DIR . '/mu-plugins' ) ) {
wp_mkdir_p( WP_CONTENT_DIR . '/mu-plugins' );
}

if ( is_readable( $mu_src ) ) {
copy( $mu_src, $mu_dest );
}

$content_file = $plugin_dir . '/.wordpress-org/blueprints/demo-page-content.html';
$page_content = is_readable( $content_file ) ? file_get_contents( $content_file ) : '';

if ( '' === $page_content ) {
echo 'Demo page content file missing.';
return;
}

$page_id = wp_insert_post(
[
'post_title' => 'Blockparty Icons',
'post_name' => 'blockparty-icons-demo',
'post_content' => $page_content,
'post_status' => 'publish',
'post_type' => 'page',
]
);

echo 'Page created with ID: ' . (int) $page_id;
21 changes: 21 additions & 0 deletions .wordpress-org/blueprints/demo-page-content.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!-- wp:paragraph -->
<p>This page demonstrates the <strong>Blockparty Icon</strong> block with icons from the <a href="https://wordpress.github.io/gutenberg/?path=/story/icons-icon--library">WordPress Gutenberg icon library</a>. Use the block inserter to pick from the <em>WordPress icons</em> collection.</p>
<!-- /wp:paragraph -->

<!-- wp:spacer {"height":"var:preset|spacing|40"} -->
<div style="height:var(--wp--preset--spacing--40)" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:blockparty/icon {"icon":{"collection":"gutenberg-icons","name":"home","label":"Home","type":"raw"},"size":48} /-->

<!-- wp:spacer {"height":"var:preset|spacing|30"} -->
<div style="height:var(--wp--preset--spacing--30)" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:blockparty/icon {"icon":{"collection":"gutenberg-icons","name":"star-filled","label":"Star","type":"raw"},"size":32,"iconColor":"#2271b1"} /-->

<!-- wp:spacer {"height":"var:preset|spacing|30"} -->
<div style="height:var(--wp--preset--spacing--30)" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:blockparty/icon {"icon":{"collection":"gutenberg-icons","name":"link","label":"Link","type":"raw"},"size":32} /-->
3 changes: 3 additions & 0 deletions .wordpress-org/blueprints/icons/gutenberg/add-card.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions .wordpress-org/blueprints/icons/gutenberg/add-submenu.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions .wordpress-org/blueprints/icons/gutenberg/add-template.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions .wordpress-org/blueprints/icons/gutenberg/align-center.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions .wordpress-org/blueprints/icons/gutenberg/align-justify.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions .wordpress-org/blueprints/icons/gutenberg/align-left.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions .wordpress-org/blueprints/icons/gutenberg/align-none.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions .wordpress-org/blueprints/icons/gutenberg/align-right.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions .wordpress-org/blueprints/icons/gutenberg/archive.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions .wordpress-org/blueprints/icons/gutenberg/arrow-down-left.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions .wordpress-org/blueprints/icons/gutenberg/arrow-down.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions .wordpress-org/blueprints/icons/gutenberg/arrow-left.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions .wordpress-org/blueprints/icons/gutenberg/arrow-right.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions .wordpress-org/blueprints/icons/gutenberg/arrow-up-left.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions .wordpress-org/blueprints/icons/gutenberg/arrow-up-right.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions .wordpress-org/blueprints/icons/gutenberg/arrow-up.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions .wordpress-org/blueprints/icons/gutenberg/aspect-ratio.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions .wordpress-org/blueprints/icons/gutenberg/at-symbol.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions .wordpress-org/blueprints/icons/gutenberg/audio.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions .wordpress-org/blueprints/icons/gutenberg/background.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions .wordpress-org/blueprints/icons/gutenberg/backup.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions .wordpress-org/blueprints/icons/gutenberg/bell-unread.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions .wordpress-org/blueprints/icons/gutenberg/bell.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions .wordpress-org/blueprints/icons/gutenberg/block-default.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions .wordpress-org/blueprints/icons/gutenberg/block-meta.svg
3 changes: 3 additions & 0 deletions .wordpress-org/blueprints/icons/gutenberg/block-table.svg
3 changes: 3 additions & 0 deletions .wordpress-org/blueprints/icons/gutenberg/border.svg
6 changes: 6 additions & 0 deletions .wordpress-org/blueprints/icons/gutenberg/box.svg
1 change: 1 addition & 0 deletions .wordpress-org/blueprints/icons/gutenberg/breadcrumbs.svg
3 changes: 3 additions & 0 deletions .wordpress-org/blueprints/icons/gutenberg/brush.svg
6 changes: 6 additions & 0 deletions .wordpress-org/blueprints/icons/gutenberg/bug.svg
3 changes: 3 additions & 0 deletions .wordpress-org/blueprints/icons/gutenberg/button.svg
3 changes: 3 additions & 0 deletions .wordpress-org/blueprints/icons/gutenberg/buttons.svg
3 changes: 3 additions & 0 deletions .wordpress-org/blueprints/icons/gutenberg/calendar.svg
6 changes: 6 additions & 0 deletions .wordpress-org/blueprints/icons/gutenberg/caption.svg
3 changes: 3 additions & 0 deletions .wordpress-org/blueprints/icons/gutenberg/capture-photo.svg
3 changes: 3 additions & 0 deletions .wordpress-org/blueprints/icons/gutenberg/capture-video.svg
1 change: 1 addition & 0 deletions .wordpress-org/blueprints/icons/gutenberg/cart.svg
6 changes: 6 additions & 0 deletions .wordpress-org/blueprints/icons/gutenberg/category.svg
3 changes: 3 additions & 0 deletions .wordpress-org/blueprints/icons/gutenberg/caution-filled.svg
6 changes: 6 additions & 0 deletions .wordpress-org/blueprints/icons/gutenberg/caution.svg
6 changes: 6 additions & 0 deletions .wordpress-org/blueprints/icons/gutenberg/chart-bar.svg
3 changes: 3 additions & 0 deletions .wordpress-org/blueprints/icons/gutenberg/check.svg
Loading
Loading