← All changes
|
includes/elementor-booking-form/wpbc-elementor.php
+14
-2
10.15.6
→
11.9
View file →
| @@ -1,4 +1,4 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | 3 | * includes/elementor-booking-form/wpbc-elementor.php |
| 4 | 4 | */ |
| @@ -235,9 +235,9 @@ | ||
| 235 | 235 | return $widget_content; |
| 236 | 236 | } |
| 237 | 237 | |
| 238 | 238 | // Detect Booking Calendar shortcodes in the raw editor content. |
| 239 | - if ( ! preg_match( '/\[(booking|bookingcalendar|bookingform|bookingselect|bookingtimeline)\b/i', $raw ) ) { | |
| 239 | + if ( ! preg_match( '/\[(booking|booking_popup|bookingcalendar|bookingform|bookingselect|booking_appointment|booking_resource_selector|bookingtimeline)\b/i', $raw ) ) { | |
| 240 | 240 | return $widget_content; |
| 241 | 241 | } |
| 242 | 242 | |
| 243 | 243 | // Show warning to admins and in Elementor editor mode. |
| @@ -306,13 +306,25 @@ | ||
| 306 | 306 | } |
| 307 | 307 | |
| 308 | 308 | |
| 309 | 309 | add_action( 'elementor/frontend/after_register_scripts', function() { |
| 310 | + if ( ! wp_script_is( 'wpbc-modal', 'registered' ) ) { | |
| 311 | + wp_register_script( 'wpbc-modal', wpbc_plugin_url( '/vendors/_custom/dropdown_modal/_out/dropdown_modal.js' ), array( 'jquery' ), WP_BK_VERSION_NUM, true ); | |
| 312 | + } | |
| 310 | 313 | wp_register_script( 'wpbc-elementor-frontend-bridge', wpbc_plugin_url( '/includes/elementor-booking-form/_out/wpbc-elementor-frontend-bridge.js' ), array( 'jquery' ), WP_BK_VERSION_NUM, true ); |
| 311 | 314 | } ); |
| 312 | 315 | |
| 313 | 316 | add_action( 'elementor/frontend/after_register_styles', function() { |
| 314 | - wp_register_style( 'wpbc-elementor-frontend-bridge', wpbc_plugin_url( '/includes/elementor-booking-form/_out/wpbc-elementor-frontend-bridge.css' ), array(), WP_BK_VERSION_NUM ); | |
| 317 | + if ( ! wp_style_is( 'wpdevelop-bts', 'registered' ) ) { | |
| 318 | + wp_register_style( 'wpdevelop-bts', wpbc_plugin_url( '/vendors/_custom/bootstrap-css/css/bootstrap.css' ), array(), WP_BK_VERSION_NUM ); | |
| 319 | + } | |
| 320 | + if ( ! wp_style_is( 'wpdevelop-bts-theme', 'registered' ) ) { | |
| 321 | + wp_register_style( 'wpdevelop-bts-theme', wpbc_plugin_url( '/vendors/_custom/bootstrap-css/css/bootstrap-theme.css' ), array(), WP_BK_VERSION_NUM ); | |
| 322 | + } | |
| 323 | + if ( ! wp_style_is( 'wpbc-admin-modal-popups', 'registered' ) ) { | |
| 324 | + wp_register_style( 'wpbc-admin-modal-popups', wpbc_plugin_url( '/css/modal.css' ), array(), WP_BK_VERSION_NUM ); | |
| 325 | + } | |
| 326 | + wp_register_style( 'wpbc-elementor-frontend-bridge', wpbc_plugin_url( '/includes/elementor-booking-form/_out/wpbc-elementor-frontend-bridge.css' ), array(), WP_BK_VERSION_NUM ); | |
| 315 | 327 | } ); |
| 316 | 328 | |
| 317 | 329 | add_filter( 'wpbc_force_client_assets', function( $force ) { |
| 318 | 330 | |