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/page-availability/availability__class.php +7 -19 10.10.211.8.3 View file →
@@ -1,4 +1,4 @@
1 1 <?php /**
2 2 * @version 1.0
3 3 * @description WPBC_AJX__Availability
4 4 * @category WPBC_AJX__Availability Class
@@ -45,12 +45,8 @@
45 45 wp_enqueue_script( 'wpbc-ajx_availability_page'
46 46 , trailingslashit( plugins_url( '', __FILE__ ) ) . '_out/availability_page.js' /* wpbc_plugin_url( '/_out/js/code_mirror.js' ) */
47 47 , array( 'wpbc_all' ), WP_BK_VERSION_NUM, $in_footer ); //FixIn: 9.8.1
48 48
49 - wp_enqueue_script( 'wpbc-general_ui_js_css'
50 - , wpbc_plugin_url( '/includes/_general_ui_js_css/_out/wpbc_main_ui_funcs.js' )
51 - , array( 'wpbc_all' ), WP_BK_VERSION_NUM, $in_footer ); //FixIn: 9.8.1
52 -
53 49 wp_enqueue_script( 'wpbc_all', wpbc_plugin_url( '/_dist/all/_out/wpbc_all.js' ), array( 'jquery' ), WP_BK_VERSION_NUM, array( 'in_footer' => WPBC_JS_IN_FOOTER ) ); // FixIn: 9.8.6.1.
54 50 wp_enqueue_script( 'wpbc-main-client', wpbc_plugin_url( '/js/client.js' ), array( 'wpbc-datepick' ), WP_BK_VERSION_NUM, array( 'in_footer' => WPBC_JS_IN_FOOTER ) );
55 51 wp_enqueue_script( 'wpbc-times', wpbc_plugin_url( '/js/wpbc_times.js' ), array( 'wpbc-main-client' ), WP_BK_VERSION_NUM, array( 'in_footer' => WPBC_JS_IN_FOOTER ) );
56 52 /**
@@ -116,11 +112,8 @@
116 112 // , 'calendar__view__width' => array( 'validate' => 's', 'default' => '300px' )
117 113 // , 'calendar__view__max_width' => array( 'validate' => 's', 'default' => '300px' ) // default '' it's will be set as 341px,
118 114 // , 'calendar__view__cell_height' => array( 'validate' => 's', 'default' => '48px' ) // '45px' || ''
119 115
120 - , 'calendar__timeslot_day_bg_as_available' => array( 'validate' => 's'
121 - , 'default' => ('On' === get_bk_option( 'booking_timeslot_day_bg_as_available' ) ) ? ' wpbc_timeslot_day_bg_as_available' : '' )
122 -
123 116 );
124 117
125 118 }
126 119
@@ -160,9 +153,9 @@
160 153 * @param $page string
161 154 */
162 155 public function hook__page_footer_tmpl( $page ){
163 156
164 - // page=wpbc&view_mode=vm_booking_listing
157 + // page=wpbc&tab=vm_booking_listing
165 158 if ( 'wpbc-ajx_booking_availability' === $page ) { // from >> do_action( 'wpbc_hook_settings_page_footer', 'wpbc-ajx_booking_availability' ); as availability_page.php in bottom of content method
166 159 $this->template__main_page_content();
167 160
168 161 $this->template_toolbar_select_booking_resource();
@@ -356,11 +349,9 @@
356 349 if ( ! class_exists('wpdev_bk_personal') ) {
357 350 echo '</script>';
358 351 return false;
359 352 }
360 - /*
361 - ?><# console.log( ' == TEMPLATE PARAMS "wpbc_ajx_change_booking_resource" == ', data ); #><?php
362 - */
353 +
363 354 $booking_action = 'select_booking_resource';
364 355
365 356 $el_id = 'ui_btn_' . $booking_action;
366 357
@@ -651,9 +642,9 @@
651 642 $data_arr['popover_hints'] = array();
652 643
653 644 $data_arr['popover_hints']['season_unavailable'] = '<strong>' . esc_html__( 'Season unavailable day', 'booking' ) . '</strong><hr>'
654 645 /* translators: 1: ... */
655 - . sprintf( __( 'Change this date status at %1$sBooking Calendar %2$s Availability %3$s Season Availability page.', 'booking' ), '<br>', '&gt;', '&gt;' );
646 + . sprintf( __( 'Change this date status at %1$sBooking Calendar %2$s Availability %3$s Seasonal Availability page.', 'booking' ), '<br>', '&gt;', '&gt;' );
656 647 $data_arr['popover_hints']['weekdays_unavailable'] = '<strong>' . esc_html__( 'Unavailable week day', 'booking' ) . '</strong><hr>'
657 648 /* translators: 1: ... */
658 649 . sprintf( __( 'Change this date status at %1$sBooking Calendar %2$s Settings General page %3$s in "Availability" section.', 'booking' ), '<br>', '&gt;', '<br>' );
659 650 $data_arr['popover_hints']['before_after_unavailable'] = '<strong>' . esc_html__( 'Unavailable day, depends on today day', 'booking' ) . '</strong><hr>'
@@ -696,11 +687,8 @@
696 687 // Do not safe such elements
697 688 unset( $request_params_to_save['ui_clicked_element_id'] );
698 689 unset( $request_params_to_save['do_action'] );
699 690 unset( $request_params_to_save['dates_selection'] );
700 - // Do not save "Do not change background color for partially booked days" option ! it must reflect from Booking > Settings General page and not from User options
701 - unset( $request_params_to_save['calendar__timeslot_day_bg_as_available'] ); // FixIn: 9.5.5.4.
702 -
703 691 $is_success_update = $user_request->user_request_params__db_save( $request_params_to_save ); // Save to DB // - $request_params - serialized here automatically
704 692 }
705 693
706 694 //----------------------------------------------------------------------------------------------------------
@@ -720,8 +708,8 @@
720 708 /**
721 709 * Just for loading CSS and JavaScript files
722 710 */
723 711 if ( true ) {
724 - $ajx_availability_loading = new WPBC_AJX__Availability;
725 - $ajx_availability_loading->init_load_css_js_tpl();
726 - $ajx_availability_loading->define_ajax_hook();
727 -}
712 + $wpbc_ajx_availability_loading = new WPBC_AJX__Availability;
713 + $wpbc_ajx_availability_loading->init_load_css_js_tpl();
714 + $wpbc_ajx_availability_loading->define_ajax_hook();
715 +}