Version Description
- Changes in all versions:
- New. Shortcode for emails: [check_in_only_date] and [check_out_only_date] - inserting check in/out date without time in emails at the Booking > Settings > Emails page. (8.7.2.5)
- Improvement. Update CSS of interface elements relative to WordPress 5.3.1 update.
- Changes in Personal / Business Small / Business Medium / Business Large / MultiUser versions:
- New. shortcodes [days_count] and [nights_count] that possible to use in the Additional cost settings with arithmetic operations. For example like this: ( [days_count] * 5 ) (8.7.2.4) (Business Medium/Large, MultiUser)
- New. Ability to apply coupon codes directly to days cost (without additional costs) or apply coupon code discounts to final booking cost with additional costs. You can activate it at the Booking > Settings > Payment page in Payment Options section. (8.7.2.2) (Business Large, MultiUser)
- Fix. Check about disabling "end times" only in "single day" selection mode (8.7.2.1) (Business Small/Medium/Large, MultiUser)
- Fix. Issue if incorrectly showing cost for 1 day, if was booked entire day, if cost was set per 1 hour or activated option "Time impact to cost". Previosly system was showing cost per 2 days instead of 1 day cost (8.7.2.3) (Business Small/Medium/Large, MultiUser)
Download this release
Release Info
Developer | wpdevelop |
Plugin | Booking Calendar |
Version | 8.7.2 |
Comparing to | |
See all releases |
Code changes from version 8.7.1 to 8.7.2
- core/admin/page-email-approved.php +8 -0
- core/admin/page-email-deleted.php +8 -0
- core/admin/page-email-deny.php +8 -0
- core/admin/page-email-new-admin.php +7 -0
- core/admin/page-email-new-visitor.php +8 -0
- core/admin/page-email-trash.php +8 -0
- core/any/css/admin-toolbar.css +12 -3
- core/wpbc-emails.php +5 -3
- core/wpbc-functions.php +1 -0
- css/admin.css +5 -2
- css/calendar.css +1 -0
- js/wpbc_times.js +5 -3
- readme.txt +13 -3
- wpdev-booking.php +2 -2
core/admin/page-email-approved.php
CHANGED
@@ -996,6 +996,10 @@ function wpbc__get_replace_shortcodes__email_approved( $booking_id, $bktype, $fo
|
|
996 |
|
997 |
$my_check_in_date = wpbc_change_dates_format( $my_dates4emeil_check_in_out[0] );
|
998 |
$my_check_out_date = wpbc_change_dates_format( $my_dates4emeil_check_in_out[ count( $my_dates4emeil_check_in_out ) - 1 ] );
|
|
|
|
|
|
|
|
|
999 |
$my_check_out_plus1day = wpbc_change_dates_format( date_i18n( 'Y-m-d H:i:s', strtotime( $my_dates4emeil_check_in_out[ count( $my_dates4emeil_check_in_out ) - 1 ] . " +1 day" ) ) ); //FixIn: 6.0.1.11
|
1000 |
|
1001 |
// Cost ////////////////////////////////////////////////////////////////////
|
@@ -1008,6 +1012,10 @@ function wpbc__get_replace_shortcodes__email_approved( $booking_id, $bktype, $fo
|
|
1008 |
$replace[ 'dates' ] = $my_dates_4_send;
|
1009 |
$replace[ 'check_in_date' ] = $my_check_in_date;
|
1010 |
$replace[ 'check_out_date' ] = $my_check_out_date;
|
|
|
|
|
|
|
|
|
1011 |
$replace[ 'check_out_plus1day'] = $my_check_out_plus1day; //FixIn: 6.0.1.11
|
1012 |
$replace[ 'dates_count' ] = count( $my_dates4emeil_check_in_out );
|
1013 |
$replace[ 'cost' ] = $booking_cost;
|
996 |
|
997 |
$my_check_in_date = wpbc_change_dates_format( $my_dates4emeil_check_in_out[0] );
|
998 |
$my_check_out_date = wpbc_change_dates_format( $my_dates4emeil_check_in_out[ count( $my_dates4emeil_check_in_out ) - 1 ] );
|
999 |
+
//FixIn: 8.7.2.5
|
1000 |
+
$my_check_in_onlydate = wpbc_change_dates_format( date_i18n( 'Y-m-d 00:00:00', strtotime( $my_dates4emeil_check_in_out[0] ) ) );
|
1001 |
+
$my_check_out_onlydate = wpbc_change_dates_format( date_i18n( 'Y-m-d 00:00:00', strtotime( $my_dates4emeil_check_in_out[ count( $my_dates4emeil_check_in_out ) - 1 ] ) ) );
|
1002 |
+
|
1003 |
$my_check_out_plus1day = wpbc_change_dates_format( date_i18n( 'Y-m-d H:i:s', strtotime( $my_dates4emeil_check_in_out[ count( $my_dates4emeil_check_in_out ) - 1 ] . " +1 day" ) ) ); //FixIn: 6.0.1.11
|
1004 |
|
1005 |
// Cost ////////////////////////////////////////////////////////////////////
|
1012 |
$replace[ 'dates' ] = $my_dates_4_send;
|
1013 |
$replace[ 'check_in_date' ] = $my_check_in_date;
|
1014 |
$replace[ 'check_out_date' ] = $my_check_out_date;
|
1015 |
+
//FixIn: 8.7.2.5
|
1016 |
+
$replace[ 'check_in_only_date' ] = $my_check_in_onlydate;
|
1017 |
+
$replace[ 'check_out_only_date' ] = $my_check_out_onlydate;
|
1018 |
+
|
1019 |
$replace[ 'check_out_plus1day'] = $my_check_out_plus1day; //FixIn: 6.0.1.11
|
1020 |
$replace[ 'dates_count' ] = count( $my_dates4emeil_check_in_out );
|
1021 |
$replace[ 'cost' ] = $booking_cost;
|
core/admin/page-email-deleted.php
CHANGED
@@ -993,6 +993,10 @@ function wpbc__get_replace_shortcodes__email_deleted( $booking_id, $bktype, $for
|
|
993 |
|
994 |
$my_check_in_date = wpbc_change_dates_format( $my_dates4emeil_check_in_out[0] );
|
995 |
$my_check_out_date = wpbc_change_dates_format( $my_dates4emeil_check_in_out[ count( $my_dates4emeil_check_in_out ) - 1 ] );
|
|
|
|
|
|
|
|
|
996 |
$my_check_out_plus1day = wpbc_change_dates_format( date_i18n( 'Y-m-d H:i:s', strtotime( $my_dates4emeil_check_in_out[ count( $my_dates4emeil_check_in_out ) - 1 ] . " +1 day" ) ) ); //FixIn: 6.0.1.11
|
997 |
|
998 |
// Cost ////////////////////////////////////////////////////////////////////
|
@@ -1005,6 +1009,10 @@ function wpbc__get_replace_shortcodes__email_deleted( $booking_id, $bktype, $for
|
|
1005 |
$replace[ 'dates' ] = $my_dates_4_send;
|
1006 |
$replace[ 'check_in_date' ] = $my_check_in_date;
|
1007 |
$replace[ 'check_out_date' ] = $my_check_out_date;
|
|
|
|
|
|
|
|
|
1008 |
$replace[ 'check_out_plus1day'] = $my_check_out_plus1day; //FixIn: 6.0.1.11
|
1009 |
$replace[ 'dates_count' ] = count( $my_dates4emeil_check_in_out );
|
1010 |
$replace[ 'cost' ] = $booking_cost;
|
993 |
|
994 |
$my_check_in_date = wpbc_change_dates_format( $my_dates4emeil_check_in_out[0] );
|
995 |
$my_check_out_date = wpbc_change_dates_format( $my_dates4emeil_check_in_out[ count( $my_dates4emeil_check_in_out ) - 1 ] );
|
996 |
+
//FixIn: 8.7.2.5
|
997 |
+
$my_check_in_onlydate = wpbc_change_dates_format( date_i18n( 'Y-m-d 00:00:00', strtotime( $my_dates4emeil_check_in_out[0] ) ) );
|
998 |
+
$my_check_out_onlydate = wpbc_change_dates_format( date_i18n( 'Y-m-d 00:00:00', strtotime( $my_dates4emeil_check_in_out[ count( $my_dates4emeil_check_in_out ) - 1 ] ) ) );
|
999 |
+
|
1000 |
$my_check_out_plus1day = wpbc_change_dates_format( date_i18n( 'Y-m-d H:i:s', strtotime( $my_dates4emeil_check_in_out[ count( $my_dates4emeil_check_in_out ) - 1 ] . " +1 day" ) ) ); //FixIn: 6.0.1.11
|
1001 |
|
1002 |
// Cost ////////////////////////////////////////////////////////////////////
|
1009 |
$replace[ 'dates' ] = $my_dates_4_send;
|
1010 |
$replace[ 'check_in_date' ] = $my_check_in_date;
|
1011 |
$replace[ 'check_out_date' ] = $my_check_out_date;
|
1012 |
+
//FixIn: 8.7.2.5
|
1013 |
+
$replace[ 'check_in_only_date' ] = $my_check_in_onlydate;
|
1014 |
+
$replace[ 'check_out_only_date' ] = $my_check_out_onlydate;
|
1015 |
+
|
1016 |
$replace[ 'check_out_plus1day'] = $my_check_out_plus1day; //FixIn: 6.0.1.11
|
1017 |
$replace[ 'dates_count' ] = count( $my_dates4emeil_check_in_out );
|
1018 |
$replace[ 'cost' ] = $booking_cost;
|
core/admin/page-email-deny.php
CHANGED
@@ -993,6 +993,10 @@ function wpbc__get_replace_shortcodes__email_deny( $booking_id, $bktype, $formda
|
|
993 |
|
994 |
$my_check_in_date = wpbc_change_dates_format( $my_dates4emeil_check_in_out[0] );
|
995 |
$my_check_out_date = wpbc_change_dates_format( $my_dates4emeil_check_in_out[ count( $my_dates4emeil_check_in_out ) - 1 ] );
|
|
|
|
|
|
|
|
|
996 |
$my_check_out_plus1day = wpbc_change_dates_format( date_i18n( 'Y-m-d H:i:s', strtotime( $my_dates4emeil_check_in_out[ count( $my_dates4emeil_check_in_out ) - 1 ] . " +1 day" ) ) ); //FixIn: 6.0.1.11
|
997 |
|
998 |
// Cost ////////////////////////////////////////////////////////////////////
|
@@ -1005,6 +1009,10 @@ function wpbc__get_replace_shortcodes__email_deny( $booking_id, $bktype, $formda
|
|
1005 |
$replace[ 'dates' ] = $my_dates_4_send;
|
1006 |
$replace[ 'check_in_date' ] = $my_check_in_date;
|
1007 |
$replace[ 'check_out_date' ] = $my_check_out_date;
|
|
|
|
|
|
|
|
|
1008 |
$replace[ 'check_out_plus1day'] = $my_check_out_plus1day; //FixIn: 6.0.1.11
|
1009 |
$replace[ 'dates_count' ] = count( $my_dates4emeil_check_in_out );
|
1010 |
$replace[ 'cost' ] = $booking_cost;
|
993 |
|
994 |
$my_check_in_date = wpbc_change_dates_format( $my_dates4emeil_check_in_out[0] );
|
995 |
$my_check_out_date = wpbc_change_dates_format( $my_dates4emeil_check_in_out[ count( $my_dates4emeil_check_in_out ) - 1 ] );
|
996 |
+
//FixIn: 8.7.2.5
|
997 |
+
$my_check_in_onlydate = wpbc_change_dates_format( date_i18n( 'Y-m-d 00:00:00', strtotime( $my_dates4emeil_check_in_out[0] ) ) );
|
998 |
+
$my_check_out_onlydate = wpbc_change_dates_format( date_i18n( 'Y-m-d 00:00:00', strtotime( $my_dates4emeil_check_in_out[ count( $my_dates4emeil_check_in_out ) - 1 ] ) ) );
|
999 |
+
|
1000 |
$my_check_out_plus1day = wpbc_change_dates_format( date_i18n( 'Y-m-d H:i:s', strtotime( $my_dates4emeil_check_in_out[ count( $my_dates4emeil_check_in_out ) - 1 ] . " +1 day" ) ) ); //FixIn: 6.0.1.11
|
1001 |
|
1002 |
// Cost ////////////////////////////////////////////////////////////////////
|
1009 |
$replace[ 'dates' ] = $my_dates_4_send;
|
1010 |
$replace[ 'check_in_date' ] = $my_check_in_date;
|
1011 |
$replace[ 'check_out_date' ] = $my_check_out_date;
|
1012 |
+
//FixIn: 8.7.2.5
|
1013 |
+
$replace[ 'check_in_only_date' ] = $my_check_in_onlydate;
|
1014 |
+
$replace[ 'check_out_only_date' ] = $my_check_out_onlydate;
|
1015 |
+
|
1016 |
$replace[ 'check_out_plus1day'] = $my_check_out_plus1day; //FixIn: 6.0.1.11
|
1017 |
$replace[ 'dates_count' ] = count( $my_dates4emeil_check_in_out );
|
1018 |
$replace[ 'cost' ] = $booking_cost;
|
core/admin/page-email-new-admin.php
CHANGED
@@ -1038,6 +1038,10 @@ function wpbc__get_replace_shortcodes__email_new_admin( $booking_id, $bktype, $f
|
|
1038 |
|
1039 |
$my_check_in_date = wpbc_change_dates_format( $my_dates4emeil_check_in_out[0] );
|
1040 |
$my_check_out_date = wpbc_change_dates_format( $my_dates4emeil_check_in_out[ count( $my_dates4emeil_check_in_out ) - 1 ] );
|
|
|
|
|
|
|
|
|
1041 |
$my_check_out_plus1day = wpbc_change_dates_format( date_i18n( 'Y-m-d H:i:s', strtotime( $my_dates4emeil_check_in_out[ count( $my_dates4emeil_check_in_out ) - 1 ] . " +1 day" ) ) ); //FixIn: 6.0.1.11
|
1042 |
|
1043 |
// Cost ////////////////////////////////////////////////////////////////////
|
@@ -1050,6 +1054,9 @@ function wpbc__get_replace_shortcodes__email_new_admin( $booking_id, $bktype, $f
|
|
1050 |
$replace[ 'dates' ] = $my_dates_4_send;
|
1051 |
$replace[ 'check_in_date' ] = $my_check_in_date;
|
1052 |
$replace[ 'check_out_date' ] = $my_check_out_date;
|
|
|
|
|
|
|
1053 |
$replace[ 'check_out_plus1day'] = $my_check_out_plus1day; //FixIn: 6.0.1.11
|
1054 |
$replace[ 'dates_count' ] = count( $my_dates4emeil_check_in_out );
|
1055 |
$replace[ 'cost' ] = $booking_cost;
|
1038 |
|
1039 |
$my_check_in_date = wpbc_change_dates_format( $my_dates4emeil_check_in_out[0] );
|
1040 |
$my_check_out_date = wpbc_change_dates_format( $my_dates4emeil_check_in_out[ count( $my_dates4emeil_check_in_out ) - 1 ] );
|
1041 |
+
//FixIn: 8.7.2.5
|
1042 |
+
$my_check_in_onlydate = wpbc_change_dates_format( date_i18n( 'Y-m-d 00:00:00', strtotime( $my_dates4emeil_check_in_out[0] ) ) );
|
1043 |
+
$my_check_out_onlydate = wpbc_change_dates_format( date_i18n( 'Y-m-d 00:00:00', strtotime( $my_dates4emeil_check_in_out[ count( $my_dates4emeil_check_in_out ) - 1 ] ) ) );
|
1044 |
+
|
1045 |
$my_check_out_plus1day = wpbc_change_dates_format( date_i18n( 'Y-m-d H:i:s', strtotime( $my_dates4emeil_check_in_out[ count( $my_dates4emeil_check_in_out ) - 1 ] . " +1 day" ) ) ); //FixIn: 6.0.1.11
|
1046 |
|
1047 |
// Cost ////////////////////////////////////////////////////////////////////
|
1054 |
$replace[ 'dates' ] = $my_dates_4_send;
|
1055 |
$replace[ 'check_in_date' ] = $my_check_in_date;
|
1056 |
$replace[ 'check_out_date' ] = $my_check_out_date;
|
1057 |
+
//FixIn: 8.7.2.5
|
1058 |
+
$replace[ 'check_in_only_date' ] = $my_check_in_onlydate;
|
1059 |
+
$replace[ 'check_out_only_date' ] = $my_check_out_onlydate;
|
1060 |
$replace[ 'check_out_plus1day'] = $my_check_out_plus1day; //FixIn: 6.0.1.11
|
1061 |
$replace[ 'dates_count' ] = count( $my_dates4emeil_check_in_out );
|
1062 |
$replace[ 'cost' ] = $booking_cost;
|
core/admin/page-email-new-visitor.php
CHANGED
@@ -956,6 +956,10 @@ function wpbc__get_replace_shortcodes__email_new_visitor( $booking_id, $bktype,
|
|
956 |
|
957 |
$my_check_in_date = wpbc_change_dates_format( $my_dates4emeil_check_in_out[0] );
|
958 |
$my_check_out_date = wpbc_change_dates_format( $my_dates4emeil_check_in_out[ count( $my_dates4emeil_check_in_out ) - 1 ] );
|
|
|
|
|
|
|
|
|
959 |
$my_check_out_plus1day = wpbc_change_dates_format( date_i18n( 'Y-m-d H:i:s', strtotime( $my_dates4emeil_check_in_out[ count( $my_dates4emeil_check_in_out ) - 1 ] . " +1 day" ) ) ); //FixIn: 6.0.1.11
|
960 |
$my_check_out_minus1day = wpbc_change_dates_format( date_i18n( 'Y-m-d H:i:s', strtotime( $my_dates4emeil_check_in_out[ count( $my_dates4emeil_check_in_out ) - 1 ] . " -1 day" ) ) ); //FixIn: 7.2.1.6
|
961 |
|
@@ -969,6 +973,10 @@ function wpbc__get_replace_shortcodes__email_new_visitor( $booking_id, $bktype,
|
|
969 |
$replace[ 'dates' ] = $my_dates_4_send;
|
970 |
$replace[ 'check_in_date' ] = $my_check_in_date;
|
971 |
$replace[ 'check_out_date' ] = $my_check_out_date;
|
|
|
|
|
|
|
|
|
972 |
$replace[ 'check_out_plus1day'] = $my_check_out_plus1day; //FixIn: 6.0.1.11
|
973 |
// $replace[ 'current_date_plus2days'] = wpbc_change_dates_format( date_i18n( 'Y-m-d H:i:s', strtotime( "+2 days" ) ) );
|
974 |
$replace[ 'check_out_minus1day'] = $my_check_out_minus1day; //FixIn: 7.2.1.6
|
956 |
|
957 |
$my_check_in_date = wpbc_change_dates_format( $my_dates4emeil_check_in_out[0] );
|
958 |
$my_check_out_date = wpbc_change_dates_format( $my_dates4emeil_check_in_out[ count( $my_dates4emeil_check_in_out ) - 1 ] );
|
959 |
+
//FixIn: 8.7.2.5
|
960 |
+
$my_check_in_onlydate = wpbc_change_dates_format( date_i18n( 'Y-m-d 00:00:00', strtotime( $my_dates4emeil_check_in_out[0] ) ) );
|
961 |
+
$my_check_out_onlydate = wpbc_change_dates_format( date_i18n( 'Y-m-d 00:00:00', strtotime( $my_dates4emeil_check_in_out[ count( $my_dates4emeil_check_in_out ) - 1 ] ) ) );
|
962 |
+
|
963 |
$my_check_out_plus1day = wpbc_change_dates_format( date_i18n( 'Y-m-d H:i:s', strtotime( $my_dates4emeil_check_in_out[ count( $my_dates4emeil_check_in_out ) - 1 ] . " +1 day" ) ) ); //FixIn: 6.0.1.11
|
964 |
$my_check_out_minus1day = wpbc_change_dates_format( date_i18n( 'Y-m-d H:i:s', strtotime( $my_dates4emeil_check_in_out[ count( $my_dates4emeil_check_in_out ) - 1 ] . " -1 day" ) ) ); //FixIn: 7.2.1.6
|
965 |
|
973 |
$replace[ 'dates' ] = $my_dates_4_send;
|
974 |
$replace[ 'check_in_date' ] = $my_check_in_date;
|
975 |
$replace[ 'check_out_date' ] = $my_check_out_date;
|
976 |
+
//FixIn: 8.7.2.5
|
977 |
+
$replace[ 'check_in_only_date' ] = $my_check_in_onlydate;
|
978 |
+
$replace[ 'check_out_only_date' ] = $my_check_out_onlydate;
|
979 |
+
|
980 |
$replace[ 'check_out_plus1day'] = $my_check_out_plus1day; //FixIn: 6.0.1.11
|
981 |
// $replace[ 'current_date_plus2days'] = wpbc_change_dates_format( date_i18n( 'Y-m-d H:i:s', strtotime( "+2 days" ) ) );
|
982 |
$replace[ 'check_out_minus1day'] = $my_check_out_minus1day; //FixIn: 7.2.1.6
|
core/admin/page-email-trash.php
CHANGED
@@ -998,6 +998,10 @@ function wpbc__get_replace_shortcodes__email_trash( $booking_id, $bktype, $formd
|
|
998 |
|
999 |
$my_check_in_date = wpbc_change_dates_format( $my_dates4emeil_check_in_out[0] );
|
1000 |
$my_check_out_date = wpbc_change_dates_format( $my_dates4emeil_check_in_out[ count( $my_dates4emeil_check_in_out ) - 1 ] );
|
|
|
|
|
|
|
|
|
1001 |
$my_check_out_plus1day = wpbc_change_dates_format( date_i18n( 'Y-m-d H:i:s', strtotime( $my_dates4emeil_check_in_out[ count( $my_dates4emeil_check_in_out ) - 1 ] . " +1 day" ) ) ); //FixIn: 6.0.1.11
|
1002 |
|
1003 |
// Cost ////////////////////////////////////////////////////////////////////
|
@@ -1010,6 +1014,10 @@ function wpbc__get_replace_shortcodes__email_trash( $booking_id, $bktype, $formd
|
|
1010 |
$replace[ 'dates' ] = $my_dates_4_send;
|
1011 |
$replace[ 'check_in_date' ] = $my_check_in_date;
|
1012 |
$replace[ 'check_out_date' ] = $my_check_out_date;
|
|
|
|
|
|
|
|
|
1013 |
$replace[ 'check_out_plus1day'] = $my_check_out_plus1day; //FixIn: 6.0.1.11
|
1014 |
$replace[ 'dates_count' ] = count( $my_dates4emeil_check_in_out );
|
1015 |
$replace[ 'cost' ] = $booking_cost;
|
998 |
|
999 |
$my_check_in_date = wpbc_change_dates_format( $my_dates4emeil_check_in_out[0] );
|
1000 |
$my_check_out_date = wpbc_change_dates_format( $my_dates4emeil_check_in_out[ count( $my_dates4emeil_check_in_out ) - 1 ] );
|
1001 |
+
//FixIn: 8.7.2.5
|
1002 |
+
$my_check_in_onlydate = wpbc_change_dates_format( date_i18n( 'Y-m-d 00:00:00', strtotime( $my_dates4emeil_check_in_out[0] ) ) );
|
1003 |
+
$my_check_out_onlydate = wpbc_change_dates_format( date_i18n( 'Y-m-d 00:00:00', strtotime( $my_dates4emeil_check_in_out[ count( $my_dates4emeil_check_in_out ) - 1 ] ) ) );
|
1004 |
+
|
1005 |
$my_check_out_plus1day = wpbc_change_dates_format( date_i18n( 'Y-m-d H:i:s', strtotime( $my_dates4emeil_check_in_out[ count( $my_dates4emeil_check_in_out ) - 1 ] . " +1 day" ) ) ); //FixIn: 6.0.1.11
|
1006 |
|
1007 |
// Cost ////////////////////////////////////////////////////////////////////
|
1014 |
$replace[ 'dates' ] = $my_dates_4_send;
|
1015 |
$replace[ 'check_in_date' ] = $my_check_in_date;
|
1016 |
$replace[ 'check_out_date' ] = $my_check_out_date;
|
1017 |
+
//FixIn: 8.7.2.5
|
1018 |
+
$replace[ 'check_in_only_date' ] = $my_check_in_onlydate;
|
1019 |
+
$replace[ 'check_out_only_date' ] = $my_check_out_onlydate;
|
1020 |
+
|
1021 |
$replace[ 'check_out_plus1day'] = $my_check_out_plus1day; //FixIn: 6.0.1.11
|
1022 |
$replace[ 'dates_count' ] = count( $my_dates4emeil_check_in_out );
|
1023 |
$replace[ 'cost' ] = $booking_cost;
|
core/any/css/admin-toolbar.css
CHANGED
@@ -132,7 +132,11 @@
|
|
132 |
float:left;
|
133 |
margin-right:15px;
|
134 |
margin-top:8px;
|
135 |
-
min-height:
|
|
|
|
|
|
|
|
|
136 |
}
|
137 |
.wpdevelop .control-group .dropdown-toggle label.label_in_filters {
|
138 |
font-weight: 600;
|
@@ -183,14 +187,14 @@
|
|
183 |
vertical-align: bottom;
|
184 |
}
|
185 |
.wpdevelop .control-group .btn-toolbar .input-group > .input-group-btn .button {
|
186 |
-
line-height:
|
187 |
font-size: 13px;
|
188 |
vertical-align: middle;
|
189 |
padding: 0 10px -1px;
|
190 |
}
|
191 |
.wpdevelop .control-group .btn-toolbar .input-group > input[type='text'] {
|
192 |
padding: 4px 4px 4px 8px;
|
193 |
-
height:
|
194 |
}
|
195 |
.wpdevelop .control-group .btn-toolbar .input-group > select {
|
196 |
height: 28px;
|
@@ -430,4 +434,9 @@
|
|
430 |
.wpdevelop .wpbc-sm-100 {
|
431 |
width:100% !important;
|
432 |
}
|
|
|
|
|
|
|
|
|
|
|
433 |
}
|
132 |
float:left;
|
133 |
margin-right:15px;
|
134 |
margin-top:8px;
|
135 |
+
min-height: 31px;
|
136 |
+
}
|
137 |
+
.wpdevelop .btn-toolbar > .btn,
|
138 |
+
.wpdevelop .btn-toolbar > .btn-group {
|
139 |
+
min-height: 31px;
|
140 |
}
|
141 |
.wpdevelop .control-group .dropdown-toggle label.label_in_filters {
|
142 |
font-weight: 600;
|
187 |
vertical-align: bottom;
|
188 |
}
|
189 |
.wpdevelop .control-group .btn-toolbar .input-group > .input-group-btn .button {
|
190 |
+
line-height: 28px;
|
191 |
font-size: 13px;
|
192 |
vertical-align: middle;
|
193 |
padding: 0 10px -1px;
|
194 |
}
|
195 |
.wpdevelop .control-group .btn-toolbar .input-group > input[type='text'] {
|
196 |
padding: 4px 4px 4px 8px;
|
197 |
+
height: 30px;
|
198 |
}
|
199 |
.wpdevelop .control-group .btn-toolbar .input-group > select {
|
200 |
height: 28px;
|
434 |
.wpdevelop .wpbc-sm-100 {
|
435 |
width:100% !important;
|
436 |
}
|
437 |
+
}
|
438 |
+
|
439 |
+
|
440 |
+
.wp-core-ui .chzn-right-buttons a {
|
441 |
+
min-height: 31px;
|
442 |
}
|
core/wpbc-emails.php
CHANGED
@@ -197,12 +197,14 @@ function wpbc_get_email_help_shortcodes( $skip_shortcodes = array() , $email_exa
|
|
197 |
$fields[] = sprintf(__('%s - inserting the dates of booking' ,'booking'),'<code>[dates]</code>');
|
198 |
|
199 |
// [check_in_date]
|
200 |
-
if ( ! in_array( 'check_in_date', $skip_shortcodes ) )
|
201 |
-
|
202 |
-
|
|
|
203 |
// [check_out_date] [check_out_plus1day]
|
204 |
if ( ! in_array( 'check_out_date', $skip_shortcodes ) ) {
|
205 |
$fields[] = sprintf(__('%s - inserting check-out date (last day of reservation),' ,'booking'),'<code>[check_out_date]</code>');
|
|
|
206 |
$fields[] = sprintf(__('%s - inserting check-out date (last day of reservation),' ,'booking'),'<code>[check_out_plus1day]</code>') . ' + 1 ' . __('day', 'booking');
|
207 |
}
|
208 |
|
197 |
$fields[] = sprintf(__('%s - inserting the dates of booking' ,'booking'),'<code>[dates]</code>');
|
198 |
|
199 |
// [check_in_date]
|
200 |
+
if ( ! in_array( 'check_in_date', $skip_shortcodes ) ) {
|
201 |
+
$fields[] = sprintf( __( '%s - inserting check-in date (first day of reservation),', 'booking' ), '<code>[check_in_date]</code>' );
|
202 |
+
$fields[] = sprintf( __( '%s - inserting check-in date (only date without time) (first day of reservation),', 'booking' ), '<code>[check_in_only_date]</code>' ); //FixIn: 8.7.2.5
|
203 |
+
}
|
204 |
// [check_out_date] [check_out_plus1day]
|
205 |
if ( ! in_array( 'check_out_date', $skip_shortcodes ) ) {
|
206 |
$fields[] = sprintf(__('%s - inserting check-out date (last day of reservation),' ,'booking'),'<code>[check_out_date]</code>');
|
207 |
+
$fields[] = sprintf(__('%s - inserting check-out date (only date without time) (last day of reservation),' ,'booking'),'<code>[check_out_only_date]</code>'); //FixIn: 8.7.2.5
|
208 |
$fields[] = sprintf(__('%s - inserting check-out date (last day of reservation),' ,'booking'),'<code>[check_out_plus1day]</code>') . ' + 1 ' . __('day', 'booking');
|
209 |
}
|
210 |
|
core/wpbc-functions.php
CHANGED
@@ -268,6 +268,7 @@ function wpbc_get_booking_params( $booking_id, $formdata, $booking_resource_id =
|
|
268 |
|
269 |
$my_check_in_date = wpbc_change_dates_format( $sql_dates_format_check_in_out[0] );
|
270 |
$my_check_out_date = wpbc_change_dates_format( $sql_dates_format_check_in_out[ count( $sql_dates_format_check_in_out ) - 1 ] );
|
|
|
271 |
$my_check_out_plus1day = wpbc_change_dates_format( date_i18n( 'Y-m-d H:i:s', strtotime( $sql_dates_format_check_in_out[ count( $sql_dates_format_check_in_out ) - 1 ] . " +1 day" ) ) ); //FixIn: 6.0.1.11
|
272 |
|
273 |
|
268 |
|
269 |
$my_check_in_date = wpbc_change_dates_format( $sql_dates_format_check_in_out[0] );
|
270 |
$my_check_out_date = wpbc_change_dates_format( $sql_dates_format_check_in_out[ count( $sql_dates_format_check_in_out ) - 1 ] );
|
271 |
+
|
272 |
$my_check_out_plus1day = wpbc_change_dates_format( date_i18n( 'Y-m-d H:i:s', strtotime( $sql_dates_format_check_in_out[ count( $sql_dates_format_check_in_out ) - 1 ] . " +1 day" ) ) ); //FixIn: 6.0.1.11
|
273 |
|
274 |
|
css/admin.css
CHANGED
@@ -178,7 +178,7 @@ select option.wpbc_child_resource{
|
|
178 |
min-height: 30px;
|
179 |
padding: 0 10px;
|
180 |
*/
|
181 |
-
line-height:
|
182 |
height: 28px;
|
183 |
padding: 0 10px 1px;
|
184 |
}
|
@@ -270,7 +270,7 @@ select option.wpbc_child_resource{
|
|
270 |
}
|
271 |
/**********************************************************************************************************************/
|
272 |
.wp-core-ui .wpbc_page .control-group input[type="text"] {
|
273 |
-
min-height:
|
274 |
}
|
275 |
.wp-core-ui .wpbc_page input[type="text"] {
|
276 |
min-height: 28px;
|
@@ -278,6 +278,9 @@ select option.wpbc_child_resource{
|
|
278 |
.wp-admin .wpbc_page select {
|
279 |
color:#32373c;
|
280 |
}
|
|
|
|
|
|
|
281 |
@media (max-width: 782px) {
|
282 |
|
283 |
.wpdevelop .control-group .btn-group > .button,
|
178 |
min-height: 30px;
|
179 |
padding: 0 10px;
|
180 |
*/
|
181 |
+
line-height: 28px;
|
182 |
height: 28px;
|
183 |
padding: 0 10px 1px;
|
184 |
}
|
270 |
}
|
271 |
/**********************************************************************************************************************/
|
272 |
.wp-core-ui .wpbc_page .control-group input[type="text"] {
|
273 |
+
min-height: 29px;
|
274 |
}
|
275 |
.wp-core-ui .wpbc_page input[type="text"] {
|
276 |
min-height: 28px;
|
278 |
.wp-admin .wpbc_page select {
|
279 |
color:#32373c;
|
280 |
}
|
281 |
+
.wpdevelop input, .wpdevelop button, .wpdevelop select, .wpdevelop textarea {
|
282 |
+
line-height: 2;
|
283 |
+
}
|
284 |
@media (max-width: 782px) {
|
285 |
|
286 |
.wpdevelop .control-group .btn-group > .button,
|
css/calendar.css
CHANGED
@@ -475,6 +475,7 @@ div#datepick-div textarea {
|
|
475 |
padding:0;
|
476 |
width:100%;
|
477 |
text-shadow:none;
|
|
|
478 |
}
|
479 |
/*******************************************************************************/
|
480 |
/* Respondive Design For Mobile Devices ****************************************/
|
475 |
padding:0;
|
476 |
width:100%;
|
477 |
text-shadow:none;
|
478 |
+
position: relative;
|
479 |
}
|
480 |
/*******************************************************************************/
|
481 |
/* Respondive Design For Mobile Devices ****************************************/
|
js/wpbc_times.js
CHANGED
@@ -913,10 +913,12 @@ function wpbc_is_time_field_in_booking_form( resource_id, form_elements ){
|
|
913 |
|
914 |
var check_times_fields=[
|
915 |
[ time_slot_field_name, time_slot_field_name2 ],
|
916 |
-
[ start_time_slot_field_name, start_time_slot_field_name2 ]
|
917 |
-
[ end_time_slot_field_name, end_time_slot_field_name2 ]
|
918 |
];
|
919 |
-
|
|
|
|
|
|
|
920 |
|
921 |
for ( var ctf= 0; ctf < check_times_fields.length; ctf++ ){
|
922 |
|
913 |
|
914 |
var check_times_fields=[
|
915 |
[ time_slot_field_name, time_slot_field_name2 ],
|
916 |
+
[ start_time_slot_field_name, start_time_slot_field_name2 ]
|
|
|
917 |
];
|
918 |
+
// Check about disabling "end times" only in "single day" selection mode //FixIn: 8.7.2.1
|
919 |
+
if ( ( bk_days_selection_mode == 'single' ) ) {
|
920 |
+
check_times_fields.push( [ end_time_slot_field_name, end_time_slot_field_name2 ] );
|
921 |
+
}
|
922 |
|
923 |
for ( var ctf= 0; ctf < check_times_fields.length; ctf++ ){
|
924 |
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: booking calendar, booking system, availability calendar, events calendar,
|
|
5 |
Requires at least: 4.0
|
6 |
Requires PHP: 5.2.4
|
7 |
Tested up to: 5.3
|
8 |
-
Stable tag: 8.7.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -227,6 +227,16 @@ Please see [Video Guides](https://wpbookingcalendar.com/help/).
|
|
227 |
13. **Time Slots**. Simple configuration of **time slots** selection in booking form.
|
228 |
|
229 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
230 |
= 8.7.1 =
|
231 |
- Changes in **all** versions:
|
232 |
* **Improvement**. Changed title 'Trash' to 'Trash / Reject', as some users can confuse missed Reject status.
|
@@ -264,7 +274,7 @@ Please see [Video Guides](https://wpbookingcalendar.com/help/).
|
|
264 |
* **Improvement**. Add ability to use only labels in shortcode for showing one payment method (its works only with these exact options): [select payment-method "All payment methods@@" "Stripe" "PayPal" "Authorize.Net" "Sage Pay" "Bank Transfer" "Pay in Cash" "iPay88" "iDEAL"] (8.6.1.16) *(Business Small/Medium/Large, MultiUser)*
|
265 |
* **Improvement**. Ability to activate updating booking cost after editing booking in admin panel, based on new booking data. You can activate this option at the Booking > Settings > Payment page (8.6.1.24) *(Business Small/Medium/Large, MultiUser)*
|
266 |
* **Deprecated**. Removing deprecated Stripe v.1 integration. Now available only Stripe v.3 integration that support SCA (8.6.1.12) *(Business Small/Medium/Large, MultiUser)*
|
267 |
-
* **Fix**. Show payment description about the booking in Stripe dashboard in Metadata section for Stripe v.3 integration (8.6.1.20)
|
268 |
* **Fix**. Issue of showing negative balance hint, during using deposit feature with zero cost (8.6.1.5) *(Business Medium/Large, MultiUser)*
|
269 |
* **Fix**. Issue of incorrectly showing available results in "Advanced search results" (while using the shortcode like this [additional_search "3"] at the Booking > Settings > Search page), and if dates in some resources was marked as unavailable via season filters. (8.6.1.14) *(Business Large, MultiUser)*
|
270 |
* **Fix**. Issue of incorrectly showing available results, when searching only for 1 specific day (check in/out dates the same in availability form), and we have booked (as full day), this day in specific booking resource. (8.6.1.19) *(Business Large, MultiUser)*
|
@@ -677,5 +687,5 @@ Please see [Video Guides](https://wpbookingcalendar.com/help/).
|
|
677 |
For more information, see the [full release notes](https://wpbookingcalendar.com/changelog/).
|
678 |
|
679 |
== Upgrade Notice ==
|
680 |
-
= 8.7 =
|
681 |
Latest WordPress version support. New calendar skin. In paid versions, ability to define dates format for searching; logging feature, ...
|
5 |
Requires at least: 4.0
|
6 |
Requires PHP: 5.2.4
|
7 |
Tested up to: 5.3
|
8 |
+
Stable tag: 8.7.2
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
227 |
13. **Time Slots**. Simple configuration of **time slots** selection in booking form.
|
228 |
|
229 |
== Changelog ==
|
230 |
+
= 8.7.2 =
|
231 |
+
- Changes in **all** versions:
|
232 |
+
* **New**. Shortcode for emails: [check_in_only_date] and [check_out_only_date] - inserting check in/out **date without time** in emails at the Booking > Settings > Emails page. (8.7.2.5)
|
233 |
+
* **Improvement**. Update CSS of interface elements relative to WordPress 5.3.1 update.
|
234 |
+
- Changes in **Personal / Business Small / Business Medium / Business Large / MultiUser** versions:
|
235 |
+
* **New**. shortcodes [days_count] and [nights_count] that possible to use in the Additional cost settings with arithmetic operations. For example like this: ( [days_count] * 5 ) (8.7.2.4) *(Business Medium/Large, MultiUser)*
|
236 |
+
* **New**. Ability to apply coupon codes directly to days cost (without additional costs) or apply coupon code discounts to final booking cost with additional costs. You can activate it at the Booking > Settings > Payment page in Payment Options section. (8.7.2.2) *(Business Large, MultiUser)*
|
237 |
+
* **Fix**. Check about disabling "end times" only in "single day" selection mode (8.7.2.1) *(Business Small/Medium/Large, MultiUser)*
|
238 |
+
* **Fix**. Issue if incorrectly showing cost for 1 day, if was booked entire day, if cost was set per 1 hour or activated option "Time impact to cost". Previosly system was showing cost per 2 days instead of 1 day cost (8.7.2.3) *(Business Small/Medium/Large, MultiUser)*
|
239 |
+
|
240 |
= 8.7.1 =
|
241 |
- Changes in **all** versions:
|
242 |
* **Improvement**. Changed title 'Trash' to 'Trash / Reject', as some users can confuse missed Reject status.
|
274 |
* **Improvement**. Add ability to use only labels in shortcode for showing one payment method (its works only with these exact options): [select payment-method "All payment methods@@" "Stripe" "PayPal" "Authorize.Net" "Sage Pay" "Bank Transfer" "Pay in Cash" "iPay88" "iDEAL"] (8.6.1.16) *(Business Small/Medium/Large, MultiUser)*
|
275 |
* **Improvement**. Ability to activate updating booking cost after editing booking in admin panel, based on new booking data. You can activate this option at the Booking > Settings > Payment page (8.6.1.24) *(Business Small/Medium/Large, MultiUser)*
|
276 |
* **Deprecated**. Removing deprecated Stripe v.1 integration. Now available only Stripe v.3 integration that support SCA (8.6.1.12) *(Business Small/Medium/Large, MultiUser)*
|
277 |
+
* **Fix**. Show payment description about the booking in Stripe dashboard in Metadata section for Stripe v.3 integration (8.6.1.20)
|
278 |
* **Fix**. Issue of showing negative balance hint, during using deposit feature with zero cost (8.6.1.5) *(Business Medium/Large, MultiUser)*
|
279 |
* **Fix**. Issue of incorrectly showing available results in "Advanced search results" (while using the shortcode like this [additional_search "3"] at the Booking > Settings > Search page), and if dates in some resources was marked as unavailable via season filters. (8.6.1.14) *(Business Large, MultiUser)*
|
280 |
* **Fix**. Issue of incorrectly showing available results, when searching only for 1 specific day (check in/out dates the same in availability form), and we have booked (as full day), this day in specific booking resource. (8.6.1.19) *(Business Large, MultiUser)*
|
687 |
For more information, see the [full release notes](https://wpbookingcalendar.com/changelog/).
|
688 |
|
689 |
== Upgrade Notice ==
|
690 |
+
= 8.7.1 =
|
691 |
Latest WordPress version support. New calendar skin. In paid versions, ability to define dates format for searching; logging feature, ...
|
wpdev-booking.php
CHANGED
@@ -7,7 +7,7 @@ Author: wpdevelop, oplugins
|
|
7 |
Author URI: https://wpbookingcalendar.com/
|
8 |
Text Domain: booking
|
9 |
Domain Path: /languages/
|
10 |
-
Version: 8.7.
|
11 |
*/
|
12 |
|
13 |
/* Copyright 2009 - 2019 www.wpbookingcalendar.com (email: info@wpbookingcalendar.com),
|
@@ -29,7 +29,7 @@ Version: 8.7.1
|
|
29 |
if ( ! defined( 'ABSPATH' ) ) die( '<h3>Direct access to this file do not allow!</h3>' ); // Exit if accessed directly
|
30 |
|
31 |
|
32 |
-
if ( ! defined( 'WP_BK_VERSION_NUM' ) ) { define( 'WP_BK_VERSION_NUM', '8.7.
|
33 |
|
34 |
////////////////////////////////////////////////////////////////////////////////
|
35 |
// PRIMARY URL CONSTANTS
|
7 |
Author URI: https://wpbookingcalendar.com/
|
8 |
Text Domain: booking
|
9 |
Domain Path: /languages/
|
10 |
+
Version: 8.7.2
|
11 |
*/
|
12 |
|
13 |
/* Copyright 2009 - 2019 www.wpbookingcalendar.com (email: info@wpbookingcalendar.com),
|
29 |
if ( ! defined( 'ABSPATH' ) ) die( '<h3>Direct access to this file do not allow!</h3>' ); // Exit if accessed directly
|
30 |
|
31 |
|
32 |
+
if ( ! defined( 'WP_BK_VERSION_NUM' ) ) { define( 'WP_BK_VERSION_NUM', '8.7.2' ); }
|
33 |
|
34 |
////////////////////////////////////////////////////////////////////////////////
|
35 |
// PRIMARY URL CONSTANTS
|