PluginProbe
Booking Calendar / 11.8.2
Booking Calendar v11.8.2
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 10.11.3 All 202 releases
← All changes | includes/_functions/calendar_scripts.php +13 -10 11.211.8.2 View file →
@@ -249,16 +249,12 @@
249 249 } else {
250 250 $style = '';
251 251 }
252 252
253 - $booking_timeslot_day_bg_as_available = get_bk_option( 'booking_timeslot_day_bg_as_available' );
254 -
255 - $booking_timeslot_day_bg_as_available = ( 'On' === $booking_timeslot_day_bg_as_available ) ? ' wpbc_timeslot_day_bg_as_available' : '';
256 -
257 253 $is_custom_width_css = ( empty( $width ) ) ? ' wpbc_no_custom_width ' : '';
258 254
259 255 $calendar = $style .
260 - '<div class="wpbc_cal_container bk_calendar_frame' . $is_custom_width_css . ' months_num_in_row_' . $months_num_in_row . ' cal_month_num_' . $cal_count . $booking_timeslot_day_bg_as_available . '" style="' . $width . '">' .
256 + '<div class="wpbc_cal_container bk_calendar_frame' . $is_custom_width_css . ' months_num_in_row_' . $months_num_in_row . ' cal_month_num_' . $cal_count . '" style="' . $width . '">' .
261 257 '<div id="calendar_booking' . $resource_id . '" class="wpbc_calendar_id_' . $resource_id . '" >' .
262 258 wpbc_get_calendar_loader_animation( $resource_id, $cal_count ) .
263 259 '</div>' .
264 260 '</div>';
@@ -264,9 +260,9 @@
264 260 '</div>';
265 261
266 262 $booking_is_show_powered_by_notice = get_bk_option( 'booking_is_show_powered_by_notice' );
267 263 if ( ( ! class_exists( 'wpdev_bk_personal' ) ) && ( 'On' === $booking_is_show_powered_by_notice ) ) {
268 - $calendar .= '<div style="font-size:7px;text-align:left;margin:0 0 10px;text-shadow: none;">Powered by <a href="https://wpbookingcalendar.com" style="font-size:7px;" target="_blank" title="Booking Calendar plugin for WordPress">Booking Calendar</a></div>';
264 + $calendar .= '<div class="wpbc_cal_powered_by">Powered by <a href="https://wpbookingcalendar.com" target="_blank" title="Booking Calendar plugin for WordPress">Booking Calendar</a></div>';
269 265 }
270 266
271 267 $calendar .= '<textarea id="date_booking' . $resource_id . '" name="date_booking' . $resource_id . '" autocomplete="off" style="display:none;"></textarea>'; // Calendar code.
272 268
@@ -275,14 +271,21 @@
275 271 $calendar_css_class_outer = 'wpbc_calendar_wraper';
276 272
277 273 // FixIn: 7.0.1.24.
278 274 $is_booking_change_over_days_triangles = get_bk_option( 'booking_change_over_days_triangles' );
275 + $is_booking_used_check_in_out_time = null;
276 + if ( function_exists( 'wpbc_settings_calendar__preview_is_changeover_enabled' ) ) {
277 + $is_booking_used_check_in_out_time = wpbc_settings_calendar__preview_is_changeover_enabled( $resource_id, false );
278 + }
279 + if ( null === $is_booking_used_check_in_out_time ) {
280 + $is_booking_used_check_in_out_time = (
281 + ( ! function_exists( 'wpbc_is_booking_used_check_in_out_time' ) )
282 + || ( wpbc_is_booking_used_check_in_out_time( false, $resource_id ) )
283 + );
284 + }
279 285 if (
280 286 ( 'Off' !== $is_booking_change_over_days_triangles )
281 - && (
282 - ( ! function_exists( 'wpbc_is_booking_used_check_in_out_time' ) )
283 - || ( wpbc_is_booking_used_check_in_out_time( false, $resource_id ) )
284 - )
287 + && $is_booking_used_check_in_out_time
285 288 ) {
286 289 $calendar_css_class_outer .= ' wpbc_change_over_triangle';
287 290 }
288 291