| @@ -1,4 +1,4 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /* |
| 3 | 3 | * @package: AJX_Bookings Page |
| 4 | 4 | * @category: o Email Reminders |
| @@ -36,13 +36,13 @@ | ||
| 36 | 36 | |
| 37 | 37 | public function tabs() { |
| 38 | 38 | $tabs = array(); |
| 39 | 39 | $tabs['availability'] = array( |
| 40 | - 'is_show_top_path' => false, // true | false. By default value is: false. | |
| 41 | - 'left_navigation__default_view_mode' => 'compact', // '' | 'min' | 'compact' | 'max' | 'none'. By default value is: ''. | |
| 42 | - 'title' => __( 'Days Availability', 'booking' ), // Title of TAB //FixIn: 9.8.15.2.2. | |
| 40 | + 'is_show_top_path' => true, // true | false. By default value is: true. | |
| 41 | + 'left_navigation__default_view_mode' => '', // FixIn:11.7.1.1: 'compact', // '' | 'min' | 'compact' | 'max' | 'none'. By default value is: ''. | |
| 42 | + 'title' => __( 'Block Dates', 'booking' ), // Title of TAB //FixIn: 9.8.15.2.2. | |
| 43 | 43 | 'hint' => __( 'Define available and unavailable days for your calendar(s).', 'booking' ), // Hint. |
| 44 | - 'page_title' => __( 'Days Availability', 'booking' ), // Title of Page. | |
| 44 | + 'page_title' => __( 'Block Dates', 'booking' ), // Title of Page. | |
| 45 | 45 | 'link' => '', // Can be skiped, then generated link based on Page and Tab tags. Or can be extenral link. |
| 46 | 46 | 'position' => '', // 'left' / 'right' / ''. |
| 47 | 47 | 'css_classes' => '', // CSS c l a s s(es). |
| 48 | 48 | 'icon' => '', // Icon - link to the real PNG img. |
| @@ -52,8 +52,9 @@ | ||
| 52 | 52 | 'disabled' => false, // Is this tab disbaled: true || false. |
| 53 | 53 | 'hided' => false, // Is this tab hided: true || false. |
| 54 | 54 | 'subtabs' => array(), |
| 55 | 55 | 'folder_style' => 'order:91;', |
| 56 | + 'is_show_top_navigation' => true, | |
| 56 | 57 | ); |
| 57 | 58 | return $tabs; |
| 58 | 59 | } |
| 59 | 60 | |
| @@ -339,11 +340,11 @@ | ||
| 339 | 340 | _wpbc.calendar__set_param_value( 220, 'dynamic__days_specific', [] ); |
| 340 | 341 | _wpbc.calendar__set_param_value( 220, 'dynamic__week_days__start', [-1] ); |
| 341 | 342 | _wpbc.calendar__set_param_value( 220, 'booking_date_format', 'j M Y' ); |
| 342 | 343 | _wpbc.calendar__set_param_value( 220, 'booking_time_format', 'g:i A' ); |
| 343 | - _wpbc.set_message( 'message_dates_times_unavailable', 'These dates and times in this calendar are already booked or unavailable.' ); | |
| 344 | - _wpbc.set_message( 'message_choose_alternative_dates', 'Please choose alternative date(s), times, or adjust the number of slots booked.' ); | |
| 345 | - _wpbc.set_message( 'message_cannot_save_in_one_resource', 'It is not possible to store this sequence of the dates into the one same resource.' ); | |
| 344 | + _wpbc.set_message( 'message_dates_times_unavailable', <?php echo wp_json_encode( wpbc_frontend_messages__get( 'message_dates_times_unavailable' ) ); ?> ); | |
| 345 | + _wpbc.set_message( 'message_choose_alternative_dates', <?php echo wp_json_encode( wpbc_frontend_messages__get( 'message_choose_alternative_dates' ) ); ?> ); | |
| 346 | + _wpbc.set_message( 'message_cannot_save_in_one_resource', <?php echo wp_json_encode( wpbc_frontend_messages__get( 'message_cannot_save_in_one_resource' ) ); ?> ); | |
| 346 | 347 | _wpbc.calendar__set_param_value( 220, 'is_parent_resource', 0 ); |
| 347 | 348 | _wpbc.calendar__set_param_value( 220, 'booking_capacity_field', 'visitors' ); |
| 348 | 349 | _wpbc.calendar__set_param_value( 220, 'booking_is_dissbale_booking_for_different_sub_resources', 'Off' ); |
| 349 | 350 | _wpbc.calendar__set_param_value( 220, 'booking_recurrent_time', 'Off' ); |
| @@ -438,11 +439,11 @@ | ||
| 438 | 439 | |
| 439 | 440 | $tabs = array(); |
| 440 | 441 | // FixIn: 10.12.4.7. $tabs[ 'general_availability' . ( ++$separator_i ) ] = array_merge( $subtab_default, array( 'type' => 'separator' ,'folder_style' => 'order:200;' ) ); |
| 441 | 442 | $tabs[ 'general_availability' ] = array( |
| 442 | - 'title' => __( 'General Availability', 'booking' ) // Title of TAB //FixIn: 9.8.15.2.2 | |
| 443 | + 'title' => __( 'Schedule & Rules', 'booking' ) // Title of TAB //FixIn: 9.8.15.2.2 | |
| 443 | 444 | , 'hint' => __( 'Define unavailable weekdays for all calendar(s) and unavailable dates depend from today date', 'booking' ) // Hint |
| 444 | - , 'page_title' => __( 'General Availability', 'booking' ) // Title of Page | |
| 445 | + , 'page_title' => __( 'Schedule & Rules', 'booking' ) // Title of Page | |
| 445 | 446 | , 'link' => function_exists( 'wpbc_get_general_availability_url' ) ? wpbc_get_general_availability_url( true, false ) : admin_url( 'admin.php?page=wpbc-availability&tab=general_availability' ) // Can be skiped, then generated link based on Page and Tab tags. Or can be extenral link |
| 446 | 447 | , 'position' => '' // 'left' || 'right' || '' |
| 447 | 448 | , 'css_classes' => 'wpbc_top_tab__general_availability' // CSS class(es) |
| 448 | 449 | , 'icon' => '' // Icon - link to the real PNG img |