diff --git a/.wporg/assets/blueprints/blueprint.json b/.wporg/assets/blueprints/blueprint.json index b2424ba..581d909 100644 --- a/.wporg/assets/blueprints/blueprint.json +++ b/.wporg/assets/blueprints/blueprint.json @@ -25,7 +25,7 @@ }, { "step": "runPHP", - "code": "

Below you can see \"Chatrix\" block in action. You can add it anywhere using either /chatrix or by looking up chatrix when choosing which block to insert.

Even though its not functional in this Playground demo, since it requires its own service worker and that is not compatible with the Playground (running WordPress in your browser) at the moment, you can at least see how it looks and it can be added anywhere you can add a Gutenberg block :)

';\n\n$chatrix_block_2col = <<\n

Below you can see “Chatrix” block in action. You can add it anywhere using either /chatrix or by looking up chatrix when choosing which block to insert.

\n\n\n\n
\n\n
\n\n

Here can be some login instructions of participating in the chat window on the right side:

\n\n
\n\n\n
\n\n
\n\n
\n\n\n\n

Unfortunately, it's not possible to login into Matrix inside of Playground demo, since it requires its own service worker and that is not compatible with the Playground at the moment. You can explore how it looks and how it can be added anywhere you can add a Gutenberg block :)

\n\nCHATRIXBLOCK2COLUMNS;\n\n$sample_page_post_id = 2;\n\nwp_update_post( array(\n 'ID' => $sample_page_post_id,\n 'post_title' => 'Chatrix [Regular]',\n 'post_content' => $chatrix_block_simple\n) );\n\nwp_insert_post( array(\n 'ID' => 3,\n 'post_title' => 'Chatrix [2 Column]',\n 'post_type' => 'page',\n 'post_status' => 'publish',\n 'post_content' => $chatrix_block_2col\n) );\n\nwp_insert_post( array(\n 'ID' => 4,\n 'post_title' => 'Chatrix [Popup]',\n 'post_type' => 'page',\n 'post_status' => 'publish',\n 'post_content' => '

On this page, you can see the popup widget at the bottom right of your screen. Click on it to show Chatrix.

'\n) );\n\nupdate_option( 'chatrix_settings', array(\n 'homeserver' => 'matrix.org',\n 'room' => '#matrix:matrix.org',\n 'show_on' => 'specific',\n 'pages' => array(\n 0 => '4'\n )\n) );", + "code": "

Below you can see \"Chatrix\" block in action. You can add it anywhere using either /chatrix or by looking up chatrix when choosing which block to insert.

Even though its not functional in this Playground demo, since it requires its own service worker and that is not compatible with the Playground (running WordPress in your browser) at the moment, you can at least see how it looks and it can be added anywhere you can add a Gutenberg block :)

';\n\n$chatrix_block_2col = <<\n

Below you can see “Chatrix” block in action. You can add it anywhere using either /chatrix or by looking up chatrix when choosing which block to insert.

\n\n\n\n
\n\n
\n\n

Here can be some login instructions of participating in the chat window on the right side:

\n\n
\n\n\n
\n\n
\n\n
\n\n\n\n

Unfortunately, it's not possible to login into Matrix inside of Playground demo, since it requires its own service worker and that is not compatible with the Playground at the moment. You can explore how it looks and how it can be added anywhere you can add a Gutenberg block :)

\n\nCHATRIXBLOCK2COLUMNS;\n\n$sample_page_post_id = 2;\n\nwp_update_post( array(\n 'ID' => $sample_page_post_id,\n 'post_title' => 'Chatrix [Regular]',\n 'post_content' => $chatrix_block_simple\n) );\n\nwp_insert_post( array(\n 'ID' => 3,\n 'post_title' => 'Chatrix [2 Column]',\n 'post_type' => 'page',\n 'post_status' => 'publish',\n 'post_content' => $chatrix_block_2col\n) );\n\nwp_insert_post( array(\n 'ID' => 4,\n 'post_title' => 'Chatrix [Popup]',\n 'post_type' => 'page',\n 'post_status' => 'publish',\n 'post_content' => '

On this page, you can see the popup widget at the bottom right of your screen. Click on it to show Chatrix.

'\n) );\n\nupdate_option( 'chatrix_settings', array(\n 'homeserver' => 'matrix.org',\n 'room' => '#matrix:matrix.org',\n 'show_on' => 'specific',\n 'pages' => array(\n 0 => '4'\n )\n) );", "progress": { "caption": "Setting Chatrix instances" } diff --git a/.wporg/blueprint_runphp_step_code.php b/.wporg/blueprint_runphp_step_code.php index 83ae332..767241f 100644 --- a/.wporg/blueprint_runphp_step_code.php +++ b/.wporg/blueprint_runphp_step_code.php @@ -2,7 +2,7 @@ require_once 'wordpress/wp-load.php'; -$chatrix_block_simple = '

Below you can see "Chatrix" block in action. You can add it anywhere using either /chatrix or by looking up chatrix when choosing which block to insert.

Even though its not functional in this Playground demo, since it requires its own service worker and that is not compatible with the Playground (running WordPress in your browser) at the moment, you can at least see how it looks and it can be added anywhere you can add a Gutenberg block :)

'; +$chatrix_block_simple = '

Below you can see "Chatrix" block in action. You can add it anywhere using either /chatrix or by looking up chatrix when choosing which block to insert.

Even though its not functional in this Playground demo, since it requires its own service worker and that is not compatible with the Playground (running WordPress in your browser) at the moment, you can at least see how it looks and it can be added anywhere you can add a Gutenberg block :)

'; $chatrix_block_2col = << @@ -20,7 +20,7 @@
- +