Initial commit

This commit is contained in:
Keith Solomon
2026-01-26 07:40:55 -06:00
commit 27511d8ec0
4 changed files with 52 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
.vscode/
notes/

View File

@@ -0,0 +1 @@
/* {{ BLOCK_NAME }} block styles */

View File

@@ -0,0 +1,23 @@
<?php
/**
* Block Name: {{ BLOCK_NAME }}
*
* Add a description of your block. Shows up in the block inserter
*
* @package BasicWP
*/
namespace BasicWP;
$classes = '{{ BLOCK_SLUG }}';
/**
* NOTE: DO NOT remove this function call - it is required to avoid editor issues.
* $is_preview is a WordPress global when in the editor.
*/
$wrapper = blockWrapperAttributes( $classes, $is_preview );
?>
<section <?php echo wp_kses_post( $wrapper ); ?>>
<!-- Your block code will go here -->
</section>

26
block-template/block.json Normal file
View File

@@ -0,0 +1,26 @@
{
"name": "acf/{{ BLOCK_SLUG }}",
"title": "{{ BLOCK_NAME }}",
"description": "",
"style": [
"file:./{{ BLOCK_SLUG }}.css"
],
"category": "vdi-block",
"icon": "block-default",
"keywords": [
"{{ BLOCK_NAME }}"
],
"acf": {
"mode": "preview",
"renderTemplate": "{{ BLOCK_SLUG }}.php"
},
"supports": {
"align": true,
"anchor": true,
"color": true,
"html": false,
"jsx": false,
"mode": true,
"multiple": false
}
}