From 6ece64abd19ed71a046aa937d6f7d60786814bb8 Mon Sep 17 00:00:00 2001 From: Keith Solomon Date: Tue, 11 Nov 2025 15:07:28 -0600 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8feature:=20Scaffold=20contact=20info?= =?UTF-8?q?=20block?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- views/blocks/contact-info/block.json | 27 ++++++++++++++++++++++ views/blocks/contact-info/contact-info.css | 0 views/blocks/contact-info/contact-info.php | 27 ++++++++++++++++++++++ 3 files changed, 54 insertions(+) create mode 100644 views/blocks/contact-info/block.json create mode 100644 views/blocks/contact-info/contact-info.css create mode 100644 views/blocks/contact-info/contact-info.php diff --git a/views/blocks/contact-info/block.json b/views/blocks/contact-info/block.json new file mode 100644 index 0000000..b0f05b7 --- /dev/null +++ b/views/blocks/contact-info/block.json @@ -0,0 +1,27 @@ +{ + "name": "acf/contact-info", + "title": "Contact Info Block", + "description": "Show contact information with icons and optional form.", + "style": [ + "file:./contact-info.css" + ], + "category": "vdi-block", + "icon": "feedback", + "keywords": [ + "contact info", + "contact form" + ], + "acf": { + "mode": "auto", + "renderTemplate": "contact-info.php" + }, + "supports": { + "align": true, + "anchor": true, + "color": false, + "html": false, + "jsx": true, + "mode": true, + "multiple": false + } +} diff --git a/views/blocks/contact-info/contact-info.css b/views/blocks/contact-info/contact-info.css new file mode 100644 index 0000000..e69de29 diff --git a/views/blocks/contact-info/contact-info.php b/views/blocks/contact-info/contact-info.php new file mode 100644 index 0000000..ec736f9 --- /dev/null +++ b/views/blocks/contact-info/contact-info.php @@ -0,0 +1,27 @@ + $classes, + ) + ); +} else { + $wrapper = 'class="' . $classes . '"'; +} +?> + +
> + +