No form type selected. Please edit this block and select a form type.'; } // Get other attributes $show_labels = isset($attributes['showLabels']) ? $attributes['showLabels'] : true; $custom_email_to = isset($attributes['customEmailTo']) ? $attributes['customEmailTo'] : ''; // Set custom options for the form $form_options = array(); // Set custom email recipient if provided if (!empty($custom_email_to)) { $form_options['email_to'] = $custom_email_to; } // Render the form with the specified options $form_output = JVB()->forms()->renderForm($form_type); // Get block classes $wrapper_attributes = get_block_wrapper_attributes([ 'class' => 'jvb-forms' ]); // Return the wrapped form return sprintf( '