Initial commit
This commit is contained in:
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
.vscode/
|
||||||
|
notes/
|
||||||
1
block-template/block-template.css
Normal file
1
block-template/block-template.css
Normal file
@@ -0,0 +1 @@
|
|||||||
|
/* {{ BLOCK_NAME }} block styles */
|
||||||
23
block-template/block-template.php
Normal file
23
block-template/block-template.php
Normal 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
26
block-template/block.json
Normal 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
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user