mirror of
https://fast.feibisi.com/https://github.com/lubusIN/visual-blueprint-builder.git
synced 2025-10-03 04:01:24 +08:00
update text-domain & namespace (#38)
This commit is contained in:
parent
994e5948b9
commit
564868deff
32 changed files with 94 additions and 99 deletions
|
@ -1,15 +1,10 @@
|
|||
{
|
||||
"name": "lubus/block-editor-for-playground-blueprint",
|
||||
"name": "wp/playground-blueprint-editor",
|
||||
"description": "Design playground blueprints with a specialized block editor interface in WordPress.",
|
||||
"autoload": {
|
||||
"classmap": [
|
||||
"inc/"
|
||||
]
|
||||
},
|
||||
"authors": [
|
||||
{
|
||||
"name": "lubus"
|
||||
}
|
||||
],
|
||||
"require": {}
|
||||
}
|
|
@ -3,10 +3,10 @@
|
|||
/**
|
||||
* This class handles registering and enqueueing scripts and styles.
|
||||
*
|
||||
* @package wordpress-popup-builder
|
||||
* @package wp-playground-blueprint-editor
|
||||
*/
|
||||
|
||||
namespace Lubus\Admin\BlockEditorForPlaygroundBlueprint;
|
||||
namespace WP\Admin\PlaygroundBlueprintEditor;
|
||||
|
||||
class EnqueueScripts
|
||||
{
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
/**
|
||||
* This class defines a custom post type for creating and managing blueprint.
|
||||
*
|
||||
* @package block-editor-for-playground-blueprint
|
||||
* @package wp-playground-blueprint-editor
|
||||
*/
|
||||
|
||||
namespace Lubus\Admin\BlockEditorForPlaygroundBlueprint;
|
||||
namespace WP\Admin\PlaygroundBlueprintEditor;
|
||||
|
||||
class BlueprintPostType
|
||||
{
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
/**
|
||||
* This class defines a custom blueprint steps.
|
||||
*
|
||||
* @package block-editor-for-playground-blueprint
|
||||
* @package wp-playground-blueprint-editor
|
||||
*/
|
||||
|
||||
namespace Lubus\Admin\BlockEditorForPlaygroundBlueprint;
|
||||
namespace WP\Admin\PlaygroundBlueprintEditor;
|
||||
|
||||
class BlueprintSteps
|
||||
{
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
/**
|
||||
* This class for registering a custom meta fields for block editor for playground blueprint.
|
||||
*
|
||||
* @package block-editor-for-playground-blueprint
|
||||
* @package wp-playground-blueprint-editor
|
||||
*/
|
||||
|
||||
namespace Lubus\Admin\BlockEditorForPlaygroundBlueprint;
|
||||
namespace WP\Admin\PlaygroundBlueprintEditor;
|
||||
|
||||
class RegisterCustomMeta
|
||||
{
|
||||
|
|
|
@ -17,37 +17,37 @@ function filter_allowed_block_types($allowed_block_types, $block_editor_context)
|
|||
$all_blocks = WP_Block_Type_Registry::get_instance()->get_all_registered();
|
||||
|
||||
$blueprint_steps = [
|
||||
'lubus/login',
|
||||
'lubus/install-plugin',
|
||||
'lubus/install-theme',
|
||||
'lubus/enable-multisite',
|
||||
'lubus/define-site-url',
|
||||
'lubus/copy-file',
|
||||
'lubus/activate-theme',
|
||||
'lubus/activate-plugin',
|
||||
'lubus/import-wordpress-files',
|
||||
'lubus/remove-dir',
|
||||
'lubus/remove-file',
|
||||
'lubus/reset-data',
|
||||
'lubus/write-file',
|
||||
'lubus/move',
|
||||
'lubus/define-wp-config-consts',
|
||||
'lubus/wp-cli',
|
||||
'lubus/run-php',
|
||||
'lubus/unzip',
|
||||
'lubus/update-user-meta',
|
||||
'lubus/set-site-options',
|
||||
'lubus/make-dir',
|
||||
'lubus/import-wxr',
|
||||
'lubus/set-site-language',
|
||||
'lubus/import-theme-starter-content',
|
||||
'playground-step/login',
|
||||
'playground-step/install-plugin',
|
||||
'playground-step/install-theme',
|
||||
'playground-step/enable-multisite',
|
||||
'playground-step/define-site-url',
|
||||
'playground-step/copy-file',
|
||||
'playground-step/activate-theme',
|
||||
'playground-step/activate-plugin',
|
||||
'playground-step/import-wordpress-files',
|
||||
'playground-step/remove-dir',
|
||||
'playground-step/remove-file',
|
||||
'playground-step/reset-data',
|
||||
'playground-step/write-file',
|
||||
'playground-step/move',
|
||||
'playground-step/define-wp-config-consts',
|
||||
'playground-step/wp-cli',
|
||||
'playground-step/run-php',
|
||||
'playground-step/unzip',
|
||||
'playground-step/update-user-meta',
|
||||
'playground-step/set-site-options',
|
||||
'playground-step/make-dir',
|
||||
'playground-step/import-wxr',
|
||||
'playground-step/set-site-language',
|
||||
'playground-step/import-theme-starter-content',
|
||||
];
|
||||
|
||||
if ($block_editor_context->post->post_type === 'blueprint') {
|
||||
// Allow only blueprint steps for 'blueprint' post type
|
||||
return $blueprint_steps;
|
||||
}
|
||||
|
||||
|
||||
// Allow all blocks except blueprint steps for other post types
|
||||
$allowed_block_types = array_keys($all_blocks);
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"name": "block-editor-for-playground-blueprint",
|
||||
"name": "wp-playground-blueprint-editor",
|
||||
"version": "1.0.0",
|
||||
"description": "Design playground blueprints with a specialized block editor interface in WordPress.",
|
||||
"main": "build/index.js",
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||
"apiVersion": 3,
|
||||
"name": "lubus/activate-plugin",
|
||||
"name": "playground-step/activate-plugin",
|
||||
"version": "0.1.0",
|
||||
"title": "Activate plugin",
|
||||
"category": "extend",
|
||||
|
@ -25,7 +25,7 @@
|
|||
"default": ""
|
||||
}
|
||||
},
|
||||
"textdomain": "activate-plugin",
|
||||
"textdomain": "wp-playground-blueprint-editor",
|
||||
"editorScript": "file:./index.js",
|
||||
"editorStyle": "file:./index.css"
|
||||
}
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||
"apiVersion": 3,
|
||||
"name": "lubus/activate-theme",
|
||||
"name": "playground-step/activate-theme",
|
||||
"version": "0.1.0",
|
||||
"title": "Activate Theme",
|
||||
"category": "extend",
|
||||
|
@ -21,7 +21,7 @@
|
|||
"default": ""
|
||||
}
|
||||
},
|
||||
"textdomain": "activate-theme",
|
||||
"textdomain": "wp-playground-blueprint-editor",
|
||||
"editorScript": "file:./index.js",
|
||||
"editorStyle": "file:./index.css"
|
||||
}
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||
"apiVersion": 3,
|
||||
"name": "lubus/copy-file",
|
||||
"name": "playground-step/copy-file",
|
||||
"version": "0.1.0",
|
||||
"title": "Copy File",
|
||||
"category": "file-system",
|
||||
|
@ -25,7 +25,7 @@
|
|||
"default": ""
|
||||
}
|
||||
},
|
||||
"textdomain": "activate-plugin",
|
||||
"textdomain": "wp-playground-blueprint-editor",
|
||||
"editorScript": "file:./index.js",
|
||||
"editorStyle": "file:./index.css"
|
||||
}
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||
"apiVersion": 3,
|
||||
"name": "lubus/define-site-url",
|
||||
"name": "playground-step/define-site-url",
|
||||
"version": "0.1.0",
|
||||
"title": "Define Site Url",
|
||||
"category": "config",
|
||||
|
@ -22,7 +22,7 @@
|
|||
"default": ""
|
||||
}
|
||||
},
|
||||
"textdomain": "define-site-url",
|
||||
"textdomain": "wp-playground-blueprint-editor",
|
||||
"editorScript": "file:./index.js",
|
||||
"editorStyle": "file:./index.css"
|
||||
}
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||
"apiVersion": 3,
|
||||
"name": "lubus/define-wp-config-consts",
|
||||
"name": "playground-step/define-wp-config-consts",
|
||||
"version": "0.1.0",
|
||||
"title": "WP Config",
|
||||
"category": "config",
|
||||
|
@ -21,7 +21,7 @@
|
|||
"default": {}
|
||||
}
|
||||
},
|
||||
"textdomain": "define-wp-config-consts",
|
||||
"textdomain": "wp-playground-blueprint-editor",
|
||||
"editorScript": "file:./index.js",
|
||||
"editorStyle": "file:./index.css"
|
||||
}
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||
"apiVersion": 3,
|
||||
"name": "lubus/enable-multisite",
|
||||
"name": "playground-step/enable-multisite",
|
||||
"version": "0.1.0",
|
||||
"title": "Enable Multisite",
|
||||
"category": "config",
|
||||
|
@ -18,7 +18,7 @@
|
|||
"default": "enableMultisite"
|
||||
}
|
||||
},
|
||||
"textdomain": "enable-multisite",
|
||||
"textdomain": "wp-playground-blueprint-editor",
|
||||
"editorScript": "file:./index.js",
|
||||
"editorStyle": "file:./index.css"
|
||||
}
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||
"apiVersion": 3,
|
||||
"name": "lubus/import-theme-starter-content",
|
||||
"name": "playground-step/import-theme-starter-content",
|
||||
"version": "0.1.0",
|
||||
"title": "Import theme starter content",
|
||||
"category": "data",
|
||||
|
@ -22,7 +22,7 @@
|
|||
"default": ""
|
||||
}
|
||||
},
|
||||
"textdomain": "import-theme-starter-content",
|
||||
"textdomain": "wp-playground-blueprint-editor",
|
||||
"editorScript": "file:./index.js",
|
||||
"editorStyle": "file:./index.css"
|
||||
}
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||
"apiVersion": 3,
|
||||
"name": "lubus/import-wordpress-files",
|
||||
"name": "playground-step/import-wordpress-files",
|
||||
"version": "0.1.0",
|
||||
"title": "Import WordPress files",
|
||||
"category": "data",
|
||||
|
@ -33,7 +33,7 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"textdomain": "import-wordpress-files",
|
||||
"textdomain": "wp-playground-blueprint-editor",
|
||||
"editorScript": "file:./index.js",
|
||||
"editorStyle": "file:./index.css"
|
||||
}
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||
"apiVersion": 3,
|
||||
"name": "lubus/import-wxr",
|
||||
"name": "playground-step/import-wxr",
|
||||
"version": "0.1.0",
|
||||
"title": "Import Wxr",
|
||||
"category": "data",
|
||||
|
@ -33,7 +33,7 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"textdomain": "import-wxr",
|
||||
"textdomain": "wp-playground-blueprint-editor",
|
||||
"editorScript": "file:./index.js",
|
||||
"editorStyle": "file:./index.css"
|
||||
}
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||
"apiVersion": 3,
|
||||
"name": "lubus/install-plugin",
|
||||
"name": "playground-step/install-plugin",
|
||||
"version": "0.1.0",
|
||||
"title": "Install Plugin",
|
||||
"category": "extend",
|
||||
|
@ -45,7 +45,7 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"textdomain": "install-plugin",
|
||||
"textdomain": "wp-playground-blueprint-editor",
|
||||
"editorScript": "file:./index.js",
|
||||
"editorStyle": "file:./index.css"
|
||||
}
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||
"apiVersion": 3,
|
||||
"name": "lubus/install-theme",
|
||||
"name": "playground-step/install-theme",
|
||||
"version": "0.1.0",
|
||||
"title": "Install Theme",
|
||||
"category": "extend",
|
||||
|
@ -48,7 +48,7 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"textdomain": "install-theme",
|
||||
"textdomain": "wp-playground-blueprint-editor",
|
||||
"editorScript": "file:./index.js",
|
||||
"editorStyle": "file:./index.css"
|
||||
}
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||
"apiVersion": 3,
|
||||
"name": "lubus/login",
|
||||
"name": "playground-step/login",
|
||||
"version": "0.1.0",
|
||||
"title": "Login",
|
||||
"category": "config",
|
||||
|
@ -26,7 +26,7 @@
|
|||
"default": ""
|
||||
}
|
||||
},
|
||||
"textdomain": "login",
|
||||
"textdomain": "wp-playground-blueprint-editor",
|
||||
"editorScript": "file:./index.js",
|
||||
"editorStyle": "file:./index.css"
|
||||
}
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||
"apiVersion": 3,
|
||||
"name": "lubus/make-dir",
|
||||
"name": "playground-step/make-dir",
|
||||
"version": "0.1.0",
|
||||
"title": "Make Directory",
|
||||
"category": "file-system",
|
||||
|
@ -22,7 +22,7 @@
|
|||
"default": ""
|
||||
}
|
||||
},
|
||||
"textdomain": "make-dir",
|
||||
"textdomain": "wp-playground-blueprint-editor",
|
||||
"editorScript": "file:./index.js",
|
||||
"editorStyle": "file:./index.css"
|
||||
}
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||
"apiVersion": 3,
|
||||
"name": "lubus/move",
|
||||
"name": "playground-step/move",
|
||||
"version": "0.1.0",
|
||||
"title": "Move File/Dir",
|
||||
"category": "file-system",
|
||||
|
@ -25,7 +25,7 @@
|
|||
"default": ""
|
||||
}
|
||||
},
|
||||
"textdomain": "move",
|
||||
"textdomain": "wp-playground-blueprint-editor",
|
||||
"editorScript": "file:./index.js",
|
||||
"editorStyle": "file:./index.css"
|
||||
}
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||
"apiVersion": 3,
|
||||
"name": "lubus/remove-dir",
|
||||
"name": "playground-step/remove-dir",
|
||||
"version": "0.1.0",
|
||||
"title": "Remove Directory",
|
||||
"category": "file-system",
|
||||
|
@ -21,7 +21,7 @@
|
|||
"default": ""
|
||||
}
|
||||
},
|
||||
"textdomain": "remove-dir",
|
||||
"textdomain": "wp-playground-blueprint-editor",
|
||||
"editorScript": "file:./index.js",
|
||||
"editorStyle": "file:./index.css"
|
||||
}
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||
"apiVersion": 3,
|
||||
"name": "lubus/remove-file",
|
||||
"name": "playground-step/remove-file",
|
||||
"version": "0.1.0",
|
||||
"title": "Remove File",
|
||||
"category": "file-system",
|
||||
|
@ -21,7 +21,7 @@
|
|||
"default": ""
|
||||
}
|
||||
},
|
||||
"textdomain": "remove-file",
|
||||
"textdomain": "wp-playground-blueprint-editor",
|
||||
"editorScript": "file:./index.js",
|
||||
"editorStyle": "file:./index.css"
|
||||
}
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||
"apiVersion": 3,
|
||||
"name": "lubus/reset-data",
|
||||
"name": "playground-step/reset-data",
|
||||
"version": "0.1.0",
|
||||
"title": "Reset Data",
|
||||
"category": "data",
|
||||
|
@ -18,7 +18,7 @@
|
|||
"default": "resetData"
|
||||
}
|
||||
},
|
||||
"textdomain": "reset-data",
|
||||
"textdomain": "wp-playground-blueprint-editor",
|
||||
"editorScript": "file:./index.js",
|
||||
"editorStyle": "file:./index.css"
|
||||
}
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||
"apiVersion": 3,
|
||||
"name": "lubus/run-php",
|
||||
"name": "playground-step/run-php",
|
||||
"version": "0.1.0",
|
||||
"title": "Run PHP",
|
||||
"category": "scripts",
|
||||
|
@ -21,7 +21,7 @@
|
|||
"default": "<?php require_once 'wordpress/wp-load.php'; \n // Add You Code ?>"
|
||||
}
|
||||
},
|
||||
"textdomain": "runphp",
|
||||
"textdomain": "wp-playground-blueprint-editor",
|
||||
"editorScript": "file:./index.js",
|
||||
"editorStyle": "file:./index.css"
|
||||
}
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||
"apiVersion": 3,
|
||||
"name": "lubus/set-site-language",
|
||||
"name": "playground-step/set-site-language",
|
||||
"version": "0.1.0",
|
||||
"title": "Set Site Language",
|
||||
"category": "config",
|
||||
|
@ -22,7 +22,7 @@
|
|||
"default": ""
|
||||
}
|
||||
},
|
||||
"textdomain": "set-site-language",
|
||||
"textdomain": "wp-playground-blueprint-editor",
|
||||
"editorScript": "file:./index.js",
|
||||
"editorStyle": "file:./index.css"
|
||||
}
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||
"apiVersion": 3,
|
||||
"name": "lubus/set-site-options",
|
||||
"name": "playground-step/set-site-options",
|
||||
"version": "0.1.0",
|
||||
"title": "Set Site Options",
|
||||
"category": "config",
|
||||
|
@ -22,7 +22,7 @@
|
|||
"default": {}
|
||||
}
|
||||
},
|
||||
"textdomain": "set-site-options",
|
||||
"textdomain": "wp-playground-blueprint-editor",
|
||||
"editorScript": "file:./index.js",
|
||||
"editorStyle": "file:./index.css"
|
||||
}
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||
"apiVersion": 3,
|
||||
"name": "lubus/unzip",
|
||||
"name": "playground-step/unzip",
|
||||
"version": "0.1.0",
|
||||
"title": "Unzip",
|
||||
"category": "file-system",
|
||||
|
@ -35,7 +35,7 @@
|
|||
"type": "string"
|
||||
}
|
||||
},
|
||||
"textdomain": "unzip",
|
||||
"textdomain": "wp-playground-blueprint-editor",
|
||||
"editorScript": "file:./index.js",
|
||||
"editorStyle": "file:./index.css"
|
||||
}
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||
"apiVersion": 3,
|
||||
"name": "lubus/update-user-meta",
|
||||
"name": "playground-step/update-user-meta",
|
||||
"version": "0.1.0",
|
||||
"title": "Update User Meta",
|
||||
"category": "config",
|
||||
|
@ -26,7 +26,7 @@
|
|||
"default": 1
|
||||
}
|
||||
},
|
||||
"textdomain": "update-user-meta",
|
||||
"textdomain": "wp-playground-blueprint-editor",
|
||||
"editorScript": "file:./index.js",
|
||||
"editorStyle": "file:./index.css"
|
||||
}
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||
"apiVersion": 3,
|
||||
"name": "lubus/wp-cli",
|
||||
"name": "playground-step/wp-cli",
|
||||
"version": "0.1.0",
|
||||
"title": "wp-cli",
|
||||
"category": "scripts",
|
||||
|
@ -20,7 +20,7 @@
|
|||
"type": "string"
|
||||
}
|
||||
},
|
||||
"textdomain": "wp-cli",
|
||||
"textdomain": "wp-playground-blueprint-editor",
|
||||
"editorScript": "file:./index.js",
|
||||
"editorStyle": "file:./index.css"
|
||||
}
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||
"apiVersion": 3,
|
||||
"name": "lubus/write-file",
|
||||
"name": "playground-step/write-file",
|
||||
"version": "0.1.0",
|
||||
"title": "Write File",
|
||||
"category": "file-system",
|
||||
|
@ -23,7 +23,7 @@
|
|||
"type": "string"
|
||||
}
|
||||
},
|
||||
"textdomain": "write-file",
|
||||
"textdomain": "wp-playground-blueprint-editor",
|
||||
"editorScript": "file:./index.js",
|
||||
"editorStyle": "file:./index.css"
|
||||
}
|
|
@ -1,21 +1,21 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Plugin Name: Block editor for playground blueprint
|
||||
* Plugin Name: Playground blueprint editor
|
||||
* Description: Design playground blueprints with a specialized block editor interface in WordPress.
|
||||
* Version: 1.0.0
|
||||
* Requires PHP: 7.4
|
||||
* Author: Lubus
|
||||
* Author URI: https://lubus.in/
|
||||
* Contributor: Lubus, https://lubus.in/
|
||||
* Text Domain: block-editor-for-playground-blueprint
|
||||
* Text Domain: wp-playground-blueprint-editor
|
||||
*
|
||||
* @package block-editor-for-playground-blueprint
|
||||
* @package wp-playground-blueprint-editor
|
||||
*/
|
||||
|
||||
namespace Lubus\BlockEditorForPlaygroundBlueprint;
|
||||
namespace WP\PlaygroundBlueprintEditor;
|
||||
|
||||
use Lubus\Admin\BlockEditorForPlaygroundBlueprint\{
|
||||
use WP\Admin\PlaygroundBlueprintEditor\{
|
||||
BlueprintPostType,
|
||||
BlueprintSteps,
|
||||
EnqueueScripts,
|
||||
|
@ -27,17 +27,17 @@ defined('ABSPATH') || exit;
|
|||
require_once 'vendor/autoload.php';
|
||||
require_once 'inc/functions.php';
|
||||
|
||||
if (!class_exists('BlockEditorForPlaygroundBlueprint')) {
|
||||
if (!class_exists('PlaygroundBlueprintEditor')) {
|
||||
|
||||
/**
|
||||
* Block editor for playground blueprint Main Class
|
||||
* Playground blueprint editor Main Class
|
||||
*/
|
||||
class BlockEditorForPlaygroundBlueprint
|
||||
class PlaygroundBlueprintEditor
|
||||
{
|
||||
/**
|
||||
* The single instance of the class.
|
||||
*
|
||||
* @var BlockEditorForPlaygroundBlueprint
|
||||
* @var PlaygroundBlueprintEditor
|
||||
*/
|
||||
protected static $_instance = null;
|
||||
|
||||
|
@ -88,7 +88,7 @@ if (!class_exists('BlockEditorForPlaygroundBlueprint')) {
|
|||
define('BEPB_PLUGIN_URL', plugin_dir_url(BEPB_PLUGIN_FILE));
|
||||
}
|
||||
|
||||
// Plugin Basename aka: "block-editor-for-playground-blueprint/block-editor-playground-blueprint.php".
|
||||
// Plugin Basename aka: "block-editor-for-playground-blueprint/wp-playground-blueprint-editor.php".
|
||||
if (!defined('BEPB_PLUGIN_BASENAME')) {
|
||||
define('BEPB_PLUGIN_BASENAME', plugin_basename(BEPB_PLUGIN_FILE));
|
||||
}
|
||||
|
@ -107,4 +107,4 @@ if (!class_exists('BlockEditorForPlaygroundBlueprint')) {
|
|||
}
|
||||
}
|
||||
|
||||
return BlockEditorForPlaygroundBlueprint::instance();
|
||||
return PlaygroundBlueprintEditor::instance();
|
Loading…
Add table
Add a link
Reference in a new issue