| @@ -1,4 +1,4 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly // FixIn: 9.8.0.4. |
| 4 | 4 | |
| @@ -296,9 +296,15 @@ | ||
| 296 | 296 | $json_arr = array(); |
| 297 | 297 | $json_arr['ajx_confirmation'] = $confirmation_arr; |
| 298 | 298 | $json_arr['resource_id'] = $resource_id; |
| 299 | 299 | |
| 300 | - $return_str = '<div class="wpbc_container ">' | |
| 300 | + /* | |
| 301 | + * Keep redirected confirmation/payment output in the same styling scope | |
| 302 | + * as payment forms shown directly after an AJAX booking. Gateway buttons | |
| 303 | + * use the shared .wpbc_button_light styles scoped by | |
| 304 | + * .wpbc_container_booking_form. | |
| 305 | + */ | |
| 306 | + $return_str = '<div class="wpbc_container wpbc_container_booking_form">' | |
| 301 | 307 | . '<div id="booking_form' . $resource_id . '"></div>' |
| 302 | 308 | . '<script type="text/javascript"> ' . wpbc_jq_ready_start() // FixIn: 10.1.3.7. |
| 303 | 309 | . ' wpbc_show_thank_you_message_after_booking(' .wp_json_encode( $json_arr ) . '); ' |
| 304 | 310 | //. ' wpbc_show_thank_you_message_after_booking(' . str_replace( array( "\n", '\\n', '\n' ), ' ', wp_json_encode( $json_arr ) ) . '); ' |
| @@ -312,5 +318,5 @@ | ||
| 312 | 318 | |
| 313 | 319 | $return_str .= $possible_output; |
| 314 | 320 | |
| 315 | 321 | return $return_str; // return '<pre>' . var_export($confirmation_arr, true) . '</pre>'; |
| 316 | -} | |
| 322 | +} | |