This commit is contained in:
@@ -4,10 +4,10 @@
|
||||
*
|
||||
* This is the template that renders the Accordion block.
|
||||
*
|
||||
* @package BasicWP
|
||||
* @package CWC
|
||||
*/
|
||||
|
||||
namespace BasicWP;
|
||||
namespace CWC;
|
||||
|
||||
$open = get_field( 'open' );
|
||||
$group = get_field( 'group_items' );
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
*
|
||||
* This is the template for building your own custom blocks.
|
||||
*
|
||||
* @package BasicWP
|
||||
* @package CWC
|
||||
*/
|
||||
|
||||
namespace BasicWP;
|
||||
namespace CWC;
|
||||
|
||||
$classes = 'boilerplate';
|
||||
|
||||
|
||||
@@ -2,10 +2,10 @@
|
||||
/**
|
||||
* Button block
|
||||
*
|
||||
* @package BasicWP
|
||||
* @package CWC
|
||||
*/
|
||||
|
||||
namespace BasicWP;
|
||||
namespace CWC;
|
||||
|
||||
// Retrieve ACF fields
|
||||
$element = get_field( 'element' ) ? get_field( 'element' ) : 'a';
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
*
|
||||
* This is the template that renders the Buttons block.
|
||||
*
|
||||
* @package BasicWP
|
||||
* @package CWC
|
||||
*/
|
||||
|
||||
namespace BasicWP;
|
||||
namespace CWC;
|
||||
|
||||
$ibClasses = 'flex flex-wrap gap-4 w-full justify-center sm:justify-start';
|
||||
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
*
|
||||
* Display contact information from global fields with icons and optional form.
|
||||
*
|
||||
* @package BasicWP
|
||||
* @package CWC
|
||||
*/
|
||||
|
||||
namespace BasicWP;
|
||||
namespace CWC;
|
||||
|
||||
$classes = 'contact-info';
|
||||
$wrapper = blockWrapperAttributes( $classes, $is_preview );
|
||||
@@ -19,13 +19,13 @@ $wrapper = blockWrapperAttributes( $classes, $is_preview );
|
||||
<h2 class="text-2xl font-bold mb-4">Contact Information</h2>
|
||||
|
||||
<div class="not-prose text-black my-4">
|
||||
<h3 class="mb-0"><?php echo esc_html__( 'Mailing Address', 'basicwp' ); ?></h3>
|
||||
<h3 class="mb-0"><?php echo esc_html__( 'Mailing Address', 'cwc' ); ?></h3>
|
||||
<p class="my-0.5"><?php echo wp_kses_post( get_field( 'contact_info', 'option' )['address'] ); ?></p>
|
||||
|
||||
<h3 class="mb-0"><?php echo esc_html__( 'Email', 'basicwp' ); ?></h3>
|
||||
<h3 class="mb-0"><?php echo esc_html__( 'Email', 'cwc' ); ?></h3>
|
||||
<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>
|
||||
|
||||
<h3 class="mb-0"><?php echo esc_html__( 'Phone', 'basicwp' ); ?></h3>
|
||||
<h3 class="mb-0"><?php echo esc_html__( 'Phone', 'cwc' ); ?></h3>
|
||||
<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>
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
*
|
||||
* This is the template that displays the Grid Cell block.
|
||||
*
|
||||
* @package BasicWP
|
||||
* @package CWC
|
||||
*/
|
||||
|
||||
namespace BasicWP;
|
||||
namespace CWC;
|
||||
|
||||
// Initialize variables
|
||||
$className = ! empty( $block['className'] ) ? $block['className'] : '';
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
*
|
||||
* This is the template that displays the grid block.
|
||||
*
|
||||
* @package BasicWP
|
||||
* @package CWC
|
||||
*/
|
||||
|
||||
namespace BasicWP;
|
||||
namespace CWC;
|
||||
|
||||
$allowedBlocks = array( 'acf/grid-cell' );
|
||||
$default_blocks = array(
|
||||
|
||||
@@ -2,10 +2,10 @@
|
||||
/**
|
||||
* Block Name: Homepage Hero
|
||||
*
|
||||
* @package BasicWP
|
||||
* @package CWC
|
||||
*/
|
||||
|
||||
namespace BasicWP;
|
||||
namespace CWC;
|
||||
|
||||
// Retrieve ACF fields
|
||||
$heading = get_field( 'heading' );
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
*
|
||||
* This is the template that displays the media text inner blocks.
|
||||
*
|
||||
* @package BasicWP
|
||||
* @package CWC
|
||||
*/
|
||||
|
||||
namespace BasicWP;
|
||||
namespace CWC;
|
||||
|
||||
// Retrieve ACF fields
|
||||
$bgColor = get_field( 'background_color' ) ? get_field( 'background_color' ) : '#c5c5c5';
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
*
|
||||
* This is the template that displays the Media With Text block.
|
||||
*
|
||||
* @package BasicWP
|
||||
* @package CWC
|
||||
*/
|
||||
|
||||
namespace BasicWP;
|
||||
namespace CWC;
|
||||
|
||||
// Retrieve ACF fields
|
||||
$bgColor = get_field( 'background_color' ) ? get_field( 'background_color' ) : '#c5c5c5';
|
||||
|
||||
@@ -2,10 +2,10 @@
|
||||
/**
|
||||
* Page Children block
|
||||
*
|
||||
* @package BasicWP
|
||||
* @package CWC
|
||||
*/
|
||||
|
||||
namespace BasicWP;
|
||||
namespace CWC;
|
||||
|
||||
// Retrieve the current page ID and its children
|
||||
$parentId = get_queried_object_id();
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
*
|
||||
* This is the template that displays the section block.
|
||||
*
|
||||
* @package BasicWP
|
||||
* @package CWC
|
||||
*/
|
||||
|
||||
namespace BasicWP;
|
||||
namespace CWC;
|
||||
|
||||
// Retrieve ACF fields
|
||||
$contentWidth = get_field( 'content_width' );
|
||||
|
||||
Reference in New Issue
Block a user