'', 'alt' => '', ); $heading = get_field( 'heading' ) ? get_field( 'heading' ) : ''; $subHead = get_field( 'subheading' ) ? get_field( 'subheading' ) : ''; $content = get_field( 'content' ) ? get_field( 'content' ) : ''; $ctas = get_field( 'calls_to_action' ) ? get_field( 'calls_to_action' ) : array(); // Set classes and styles $style = "background-color: $bgColor;"; $mediaClass = $mediaLeft ? 'order-first' : 'order-last'; $contentClass = $mediaLeft ? 'order-last pr-8' : 'order-first pl-8'; $classes = 'media-cols grid grid-cols-1 lg:grid-cols-2 gap-8 items-center mb-8 p-0'; if ( $isDark ) { $classes .= ' dark text-white'; } // Set wrapper attributes if ( ! $is_preview ) { $wrapper = get_block_wrapper_attributes( array( 'class' => $classes ) ); } else { $wrapper = 'class="' . $classes . '"'; } // if the video block contains an iframe, add the role="presentation" attribute if ( $vidBlock && strpos( $vidBlock, '
style="">
<?php echo esc_attr( $imgBlock['alt'] ); ?>