feature: Add content for block

This commit is contained in:
Keith Solomon
2025-11-11 15:16:21 -06:00
parent 6ece64abd1
commit 44df51f46f

View File

@@ -23,5 +23,21 @@ if ( ! $is_preview ) {
?>
<section <?php echo esc_attr( $wrapper ); ?>>
<!-- Your block code will go here -->
<div class="flex flex-col lg:flex-row">
<div class="w-full lg:w-1/2 p-6">
<h2 class="text-2xl font-bold mb-4">Contact Information</h2>
<div class="not-prose text-black my-4">
<p class="my-0.5"><?php echo esc_html( get_field( 'contact_info', 'option' )['address'] ); ?></p>
<p class="my-0.5"><a class="hover:opacity-80 transition-colors duration-100" href="mailto:<?php echo esc_html( get_field( 'contact_info', 'option' )['email'] ); ?>"><?php echo esc_html( get_field( 'contact_info', 'option' )['email'] ); ?></a></p>
<p class="my-0.5"><a class="hover:opacity-80 transition-colors duration-100" href="tel:<?php echo esc_html( get_field( 'contact_info', 'option' )['phone'] ); ?>"><?php echo esc_html( get_field( 'contact_info', 'option' )['phone'] ); ?></a></p>
</div>
</div>
<div class="w-full lg:w-1/2 p-6">
<innerBlocks />
</div>
</div>
</section>