PluginProbe
Booking Calendar / 11.8.3
Booking Calendar v11.8.3
11.8.3 11.8.2 11.8.1 11.8 11.7 11.6.1 11.6 11.5 11.4.3 11.4.2 11.4.1 11.4 11.3 11.2.1 11.2 11.1 11.0 10.15.7 10.15.6 10.1.3 10.10 10.10.1 10.10.2 10.11 10.11.2 All 203 releases
← All changes | includes/_capacity/confirmation_page.php +8 -2 11.011.8.3 View file →
@@ -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 +}