feature: Initial commit

This commit is contained in:
Keith Solomon
2026-05-25 12:04:18 -05:00
commit 2e5bfaba89
152 changed files with 28391 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
{
"name": "acf/buttons",
"title": "Buttons (VDI)",
"description": "A button or group of buttons.",
"allowedBlocks": [ "acf/button" ],
"category": "vdi-blocks",
"icon": "button",
"keywords": [
"buttons"
],
"acf": {
"mode": "preview",
"renderTemplate": "buttons.php"
},
"supports": {
"align": false,
"anchor": true,
"color": false,
"html": true,
"jsx": true,
"mode": false,
"multiple": true
}
}
+20
View File
@@ -0,0 +1,20 @@
<?php
/**
* Block Name: Buttons
*
* This is the template that renders the Buttons block.
*
* @package BasicWP
*/
namespace BasicWP;
$ibClasses = 'flex flex-wrap gap-4 w-full justify-center sm:justify-start';
$classes = 'align-with-content my-[1.2em]';
$wrapper = blockWrapperAttributes( $classes, $is_preview );
?>
<div id="<?php echo esc_attr( $block['id'] ); ?>" <?php echo esc_attr( $wrapper ); ?>>
<InnerBlocks className="<?php echo esc_attr( $ibClasses ); ?>" />
</div>