array( 'title' => __( 'Booking Form', 'booking' ), 'type' => 'panel', 'css_classes' => '', ), 'advanced_mode__booking_data' => array( 'title' => __( 'Booking fields data', 'booking' ), 'type' => 'panel', 'css_classes' => '', ), ); WPBC_BFB_UI_Top_Tabs::render( array( 'active_tab' => 'advanced_mode__booking_form', 'tabs' => $tabs_config, 'nav_container_id' => 'wpbc_bfb__top_horisontal__advanced_mode', 'panels_root_id' => 'wpbc_bfb__advanced_mode_panels', ) ); ?>
'text/html' ) ); // Bail if user disabled CodeMirror. if ( false === $settings ) { return; } // Ensure core editor script is available. Enqueue only if registered and not yet enqueued. if ( wp_script_is( 'wp-theme-plugin-editor', 'registered' ) && ! wp_script_is( 'wp-theme-plugin-editor', 'enqueued' ) ) { wp_enqueue_script( 'wp-theme-plugin-editor' ); } wp_enqueue_style( 'wp-codemirror' ); /** * IMPORTANT: * Use a script handle that is guaranteed to exist on this page. * If "wpbc_all" is always enqueued here, keep it. * Otherwise localize into your builder main handle. */ wp_localize_script( 'wpbc_all', 'wpbc_bfb_code_editor_settings', $settings ); if ( class_exists( 'wpdev_bk_personal' ) ) { wp_enqueue_script( 'wpbc-bfb-advanced-form-editor', wpbc_plugin_url( '/includes/page-form-builder/advanced-mode/_out/bfb-advanced-form-editor.js' ), array( 'wpbc_all', 'wpbc-bfb_exporter', 'code-editor', 'wp-theme-plugin-editor' ), WP_BK_VERSION_NUM, true ); } else { wp_enqueue_script( 'wpbc-bfb-advanced-form-editor', wpbc_plugin_url( '/includes/page-form-builder/advanced-mode/_out/bfb-advanced-free.js' ), array( 'wpbc_all', 'wpbc-bfb_exporter', 'code-editor', 'wp-theme-plugin-editor' ), WP_BK_VERSION_NUM, true ); } }