| @@ -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 |
| @@ -112,11 +112,8 @@ | ||
| 112 | 112 | // , 'calendar__view__width' => array( 'validate' => 's', 'default' => '300px' ) |
| 113 | 113 | // , 'calendar__view__max_width' => array( 'validate' => 's', 'default' => '300px' ) // default '' it's will be set as 341px, |
| 114 | 114 | // , 'calendar__view__cell_height' => array( 'validate' => 's', 'default' => '48px' ) // '45px' || '' |
| 115 | 115 | |
| 116 | - , 'calendar__timeslot_day_bg_as_available' => array( 'validate' => 's' | |
| 117 | - , 'default' => ('On' === get_bk_option( 'booking_timeslot_day_bg_as_available' ) ) ? ' wpbc_timeslot_day_bg_as_available' : '' ) | |
| 118 | - | |
| 119 | 116 | ); |
| 120 | 117 | |
| 121 | 118 | } |
| 122 | 119 | |
| @@ -645,9 +642,9 @@ | ||
| 645 | 642 | $data_arr['popover_hints'] = array(); |
| 646 | 643 | |
| 647 | 644 | $data_arr['popover_hints']['season_unavailable'] = '<strong>' . esc_html__( 'Season unavailable day', 'booking' ) . '</strong><hr>' |
| 648 | 645 | /* translators: 1: ... */ |
| 649 | - . sprintf( __( 'Change this date status at %1$sBooking Calendar %2$s Availability %3$s Season Availability page.', 'booking' ), '<br>', '>', '>' ); | |
| 646 | + . sprintf( __( 'Change this date status at %1$sBooking Calendar %2$s Availability %3$s Seasonal Availability page.', 'booking' ), '<br>', '>', '>' ); | |
| 650 | 647 | $data_arr['popover_hints']['weekdays_unavailable'] = '<strong>' . esc_html__( 'Unavailable week day', 'booking' ) . '</strong><hr>' |
| 651 | 648 | /* translators: 1: ... */ |
| 652 | 649 | . sprintf( __( 'Change this date status at %1$sBooking Calendar %2$s Settings General page %3$s in "Availability" section.', 'booking' ), '<br>', '>', '<br>' ); |
| 653 | 650 | $data_arr['popover_hints']['before_after_unavailable'] = '<strong>' . esc_html__( 'Unavailable day, depends on today day', 'booking' ) . '</strong><hr>' |
| @@ -690,11 +687,8 @@ | ||
| 690 | 687 | // Do not safe such elements |
| 691 | 688 | unset( $request_params_to_save['ui_clicked_element_id'] ); |
| 692 | 689 | unset( $request_params_to_save['do_action'] ); |
| 693 | 690 | unset( $request_params_to_save['dates_selection'] ); |
| 694 | - // 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 | |
| 695 | - unset( $request_params_to_save['calendar__timeslot_day_bg_as_available'] ); // FixIn: 9.5.5.4. | |
| 696 | - | |
| 697 | 691 | $is_success_update = $user_request->user_request_params__db_save( $request_params_to_save ); // Save to DB // - $request_params - serialized here automatically |
| 698 | 692 | } |
| 699 | 693 | |
| 700 | 694 | //---------------------------------------------------------------------------------------------------------- |
| @@ -717,5 +711,5 @@ | ||
| 717 | 711 | if ( true ) { |
| 718 | 712 | $wpbc_ajx_availability_loading = new WPBC_AJX__Availability; |
| 719 | 713 | $wpbc_ajx_availability_loading->init_load_css_js_tpl(); |
| 720 | 714 | $wpbc_ajx_availability_loading->define_ajax_hook(); |
| 721 | -} | |
| 715 | +} | |