From e3024a6cdc2ad258210815e1bf7832074aa7c07e Mon Sep 17 00:00:00 2001 From: Keith Solomon Date: Sat, 4 Jul 2026 13:31:06 -0500 Subject: [PATCH] feat(contact): rewrite contact-info block to two-column layout --- views/blocks/contact-info/contact-info.php | 55 +++++++++++++++++----- 1 file changed, 42 insertions(+), 13 deletions(-) diff --git a/views/blocks/contact-info/contact-info.php b/views/blocks/contact-info/contact-info.php index cd4a637..34496e4 100644 --- a/views/blocks/contact-info/contact-info.php +++ b/views/blocks/contact-info/contact-info.php @@ -2,36 +2,65 @@ /** * Block Name: Contact Info * - * Display contact information from global fields with icons and optional form. + * Two-column contact page layout: contact info, address/email/phone, + * and a Gravity Forms contact form on the left; Leaflet map placeholder + * on the right. Reads from the global `contact_info` option. * * @package CWC */ namespace CWC; +$info = get_field( 'contact_info', 'option' ); +$address = $info['address'] ?? ''; +$email = $info['email'] ?? ''; +$phone = $info['phone'] ?? ''; + $classes = 'contact-info'; $wrapper = blockWrapperAttributes( $classes, $is_preview ); ?>
> -
-
-

Contact Information

+
+
+

Contact

-
-

-

+
    + +
  • + + +
  • + -

    -

    + + + -

    -

    + +
  • + + +
  • + +
+ +
+
-
- +
+