post_excerpt; } } ?> tribe_get_template_part( 'community/modules/header-links' ); ?>
event_form_layout(); // Insert excerpt field after description $excerpt_module = [ 'hvac-excerpt' => [ 'template' => 'community/modules/hvac-excerpt', 'data' => [ 'event_excerpt' => $event_excerpt, 'event_id' => $tribe_event_id ] ] ]; // Use TEC's array insert method to add excerpt after description if ( method_exists( tribe( 'main' ), 'array_insert_after_key' ) ) { $modules = tribe( 'main' )->array_insert_after_key( 'description', $modules, $excerpt_module ); } else { // Fallback: add at the end if method doesn't exist $modules = array_merge( $modules, $excerpt_module ); } // Apply the standard TEC filter to allow other plugins/code to modify $modules = apply_filters( 'tec_events_community_form_layout', $modules ); // Ensure submit button is at the end $modules['submit-button'] = [ 'template' => 'community/modules/submit', ]; // Generate the form using TEC's standard method foreach ( $modules as $module_key => $module ) { /** * Action hook before loading a module template part. */ do_action( "tec_events_community_form_before_module_{$module_key}", $tribe_event_id, $module_key, $module ); // Handle our custom excerpt module if ( $module_key === 'hvac-excerpt' ) { // Custom excerpt field HTML (inline for prototype) ?>

✓ HVAC Template Override Active - Excerpt field successfully added via template override system.
tribe_get_template_part( $module['template'], null, $module['data'] ?? [] ); } /** * Action hook after loading a module template part. */ do_action( "tec_events_community_form_after_module_{$module_key}", $tribe_event_id, $module_key, $module ); } ?>
$event_id, 'post_excerpt' => $excerpt ) ); // Log success for debugging if ( function_exists( 'error_log' ) ) { error_log( "HVAC Prototype: Excerpt field processed for event ID {$event_id}: " . substr( $excerpt, 0, 50 ) ); } } } ?>