✨feature: Add content for block
This commit is contained in:
@@ -23,5 +23,21 @@ if ( ! $is_preview ) {
|
|||||||
?>
|
?>
|
||||||
|
|
||||||
<section <?php echo esc_attr( $wrapper ); ?>>
|
<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>
|
</section>
|
||||||
|
|||||||
Reference in New Issue
Block a user