| @@ -28,9 +28,9 @@ | ||
| 28 | 28 | - 'modification' |
| 29 | 29 | */ |
| 30 | 30 | |
| 31 | 31 | |
| 32 | -require_once( WPBC_PLUGIN_DIR . '/core/any/api-emails.php' ); // API | |
| 32 | +require_once WPBC_PLUGIN_DIR . '/core/any/api-emails.php'; // API | |
| 33 | 33 | |
| 34 | 34 | |
| 35 | 35 | |
| 36 | 36 | // <editor-fold defaultstate="collapsed" desc=" Import Old Data " > |
| @@ -560,9 +560,9 @@ | ||
| 560 | 560 | |
| 561 | 561 | $subtabs['new-visitor'] = array( |
| 562 | 562 | 'type' => 'subtab' // Required| Possible values: 'subtab' | 'separator' | 'button' | 'goto-link' | 'html' |
| 563 | 563 | , 'title' => __('New Booking' ,'booking') . ' (' . __('visitor' ,'booking') . ')' // Title of TAB //__('New for Visitor' ,'booking') // Title of TAB |
| 564 | - , 'page_title' => __('Emails Settings', 'booking') // Title of Page | |
| 564 | + , 'page_title' => __('Emails Settings', 'booking') . ' - <span>' . esc_html(__('New Booking' ,'booking') . ' - ' . ucfirst( __('visitor' ,'booking') ) ) . '</span>' // Title of Page. | |
| 565 | 565 | , 'hint' => __('Customization of email template, which is sending to Visitor after new booking' ,'booking') // Hint |
| 566 | 566 | , 'link' => '' // link |
| 567 | 567 | , 'position' => '' // 'left' || 'right' || '' |
| 568 | 568 | , 'css_classes' => '' // CSS class(es) |
| @@ -567,14 +567,13 @@ | ||
| 567 | 567 | , 'position' => '' // 'left' || 'right' || '' |
| 568 | 568 | , 'css_classes' => '' // CSS class(es) |
| 569 | 569 | //, 'icon' => 'http://.../icon.png' // Icon - link to the real PNG img |
| 570 | 570 | //, 'font_icon' => 'wpbc_icn_mail_outline' // CSS definition of Font Icon |
| 571 | - , 'header_font_icon' => 'wpbc_icn_mail_outline' // CSS definition of Font Icon // FixIn: 9.5.5.3. | |
| 572 | - , 'default' => false // Is this sub tab activated by default or not: true || false. | |
| 571 | + , 'default' => false // Is this sub tab activated by default or not: true || false. | |
| 573 | 572 | , 'disabled' => false // Is this sub tab deactivated: true || false. |
| 574 | 573 | , 'checkbox' => false // or definition array for specific checkbox: array( 'checked' => true, 'name' => 'feature1_active_status' ) //, 'checkbox' => array( 'checked' => $is_checked, 'name' => 'enabled_active_status' ) |
| 575 | 574 | , 'content' => 'content' // Function to load as conten of this TAB |
| 576 | - , 'is_use_left_navigation' => true | |
| 575 | + , 'font_icon' => 'wpbc-bi-envelope-plus 0wpbc_icn_mark_email_unread' | |
| 577 | 576 | , 'show_checked_icon' => true |
| 578 | 577 | , 'checked_data' => WPBC_EMAIL_NEW_ADMIN_PREFIX . WPBC_EMAIL_NEW_VISITOR_ID // This is where we get content |
| 579 | 578 | ); |
| 580 | 579 | |
| @@ -877,9 +876,14 @@ | ||
| 877 | 876 | |
| 878 | 877 | $replace[ 'check_out_plus1day'] = $my_check_out_plus1day; // FixIn: 6.0.1.11. |
| 879 | 878 | |
| 880 | 879 | $replace[ 'check_out_minus1day'] = $my_check_out_minus1day; // FixIn: 7.2.1.6. |
| 881 | - $replace[ 'dates_count' ] = count( $my_dates4emeil_check_in_out ); | |
| 880 | + | |
| 881 | + $replace['dates_count'] = count( $my_dates4emeil_check_in_out ); | |
| 882 | + $replace['days_count'] = intval( $replace['dates_count'] ); // FixIn: 10.15.1.3. | |
| 883 | + $replace['nights_count'] = ( $replace['days_count'] > 1 ) ? intval( $replace['days_count'] - 1 ) : 1; | |
| 884 | + $replace['days_count_plus1day'] = intval( $replace['days_count'] + 1 ); | |
| 885 | + | |
| 882 | 886 | $replace['cost'] = $booking_cost; |
| 883 | 887 | $replace['cost_digits_only'] = $booking_cost_digits_only; |
| 884 | 888 | $replace[ 'siteurl' ] = htmlspecialchars_decode( '<a href="' . esc_url( home_url() ) . '">' . home_url() . '</a>' ); |
| 885 | 889 | $replace[ 'resource_title'] = wpbc_lang( $bk_title ); |
| @@ -905,9 +909,9 @@ | ||
| 905 | 909 | |
| 906 | 910 | // Links /////////////////////////////////////////////////////////////////// |
| 907 | 911 | $replace[ 'moderatelink' ] = htmlspecialchars_decode( |
| 908 | 912 | // '<a href="' . |
| 909 | - esc_url( wpbc_get_bookings_url() . '&view_mode=vm_listing&tab=actions&wh_booking_id=' . $booking_id ) | |
| 913 | + esc_url( wpbc_get_bookings_url() . '&tab=vm_booking_listing&wh_booking_id=' . $booking_id ) | |
| 910 | 914 | // . '">' . esc_html__('here', 'booking') . '</a>' |
| 911 | 915 | ); |
| 912 | 916 | $replace[ 'visitorbookingediturl' ] = apply_bk_filter( 'wpdev_booking_set_booking_edit_link_at_email', '[visitorbookingediturl]', $booking_id ); |
| 913 | 917 | $replace[ 'visitorbookingslisting' ] = apply_bk_filter( 'wpdev_booking_set_booking_edit_link_at_email', '[visitorbookingslisting]', $booking_id ); //FixIn: 8.1.3.5.1 |