PluginProbe
Booking Calendar / 11.8.4
Booking Calendar v11.8.4
11.8.4 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 All 204 releases
← All changes | core/lib/wpbc-calendar-legend.php +11 -5 11.011.8.4 View file →
@@ -123,17 +123,23 @@
123 123 // Content for Partially booked item - "time slot" or "change over days".
124 124 if ( 1 ) {
125 125 $my_partially = '';
126 126
127 - $booking_timeslot_day_bg_as_available = ( 'On' === get_bk_option( 'booking_timeslot_day_bg_as_available' ) ) ? ' wpbc_timeslot_day_bg_as_available' : '';
128 - $booking_timeslot_day_bg_as_available .= ( 'Off' !== get_bk_option( 'booking_change_over_days_triangles' ) ) ? ' wpbc_change_over_triangle' : '';
127 + $booking_change_over_triangle = ( 'Off' !== get_bk_option( 'booking_change_over_days_triangles' ) ) ? ' wpbc_change_over_triangle' : '';
129 128
130 129
131 - $my_partially .= '<span class="' . $booking_timeslot_day_bg_as_available . '">';
130 + $my_partially .= '<span class="' . $booking_change_over_triangle . '">';
132 131 $my_partially .= '<div class="datepick-inline wpbc_calendar_legend_table_width_height">'; // FixIn: 9.3.1.4.
133 132 $my_partially .= '<table class="datepick wpbc_calendar" style=""><tbody><tr>';
134 - if ( ( function_exists( 'wpbc_is_booking_used_check_in_out_time' ) ) && ( wpbc_is_booking_used_check_in_out_time( false, $params['resource_id'] ) ) ) { // FixIn: 8.9.4.10.
135 - $my_partially .= '<td class="datepick-days-cell date_available date_approved timespartly check_in_time check_in_time_date_approved wpbc_calendar_legend_day_cell_height">';
133 + $is_change_over_legend = null;
134 + if ( function_exists( 'wpbc_settings_calendar__preview_is_changeover_enabled' ) ) {
135 + $is_change_over_legend = wpbc_settings_calendar__preview_is_changeover_enabled( $params['resource_id'], false );
136 + }
137 + if ( null === $is_change_over_legend ) {
138 + $is_change_over_legend = ( function_exists( 'wpbc_is_booking_used_check_in_out_time' ) ) && ( wpbc_is_booking_used_check_in_out_time( false, $params['resource_id'] ) ); // FixIn: 8.9.4.10.
139 + }
140 + if ( $is_change_over_legend ) {
141 + $my_partially .= '<td class="datepick-days-cell date_available date_approved timespartly check_in_time check_out_time check_in_time_date_approved check_out_time_date2approve wpbc_calendar_legend_day_cell_height">';
136 142 } else {
137 143 $my_partially .= '<td class="datepick-days-cell date_available date2approve timespartly times_clock wpbc_calendar_legend_day_cell_height">';
138 144 }
139 145 $my_partially .= '<div class="wpbc-cell-box">';