WordPress Online Booking and Scheduling Plugin – Bookly - Version 19.4

Version Description

Download this release

Release Info

Developer Ladela
Plugin Icon 128x128 WordPress Online Booking and Scheduling Plugin – Bookly
Version 19.4
Comparing to
See all releases

Code changes from version 19.3 to 19.4

backend/components/dialogs/appointment/edit/resources/js/ng-appointment.js CHANGED
@@ -559,7 +559,7 @@
559
  $scope.dataSource.setEndTimeBasedOnService();
560
  $scope.form.end_time = start_date.format('YYYY-MM-DD') == end_date.format('YYYY-MM-DD')
561
  ? $scope.dataSource.findTime('end', end_date.format('HH:mm'))
562
- : $scope.dataSource.findTime('end', (24 * Math.floor(end_date.diff(start_date, 'hours') / 24) + end_date.hour()) + end_date.format(':mm'));
563
  } else {
564
  $scope.form.date = moment().local();
565
  $scope.form.start_time = $scope.dataSource.findTime('start', moment().format('HH:mm'));
559
  $scope.dataSource.setEndTimeBasedOnService();
560
  $scope.form.end_time = start_date.format('YYYY-MM-DD') == end_date.format('YYYY-MM-DD')
561
  ? $scope.dataSource.findTime('end', end_date.format('HH:mm'))
562
+ : $scope.dataSource.findTime('end', (24 * end_date.clone().startOf('day').diff(start_date.clone().startOf('day'), 'days') + end_date.hour()) + end_date.format(':mm'));
563
  } else {
564
  $scope.form.date = moment().local();
565
  $scope.form.start_time = $scope.dataSource.findTime('start', moment().format('HH:mm'));
lib/notifications/assets/base/Codes.php CHANGED
@@ -35,21 +35,37 @@ abstract class Codes
35
  $codes = $this->getReplaceCodes( 'text' );
36
 
37
  // Impersonal codes.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38
  $impersonal_codes = array();
 
39
  foreach ( $codes as $name => $code ) {
40
- $count = Utils\SMSCounter::count( (string) $code );
41
- if ( $count->encoding == Utils\SMSCounter::UTF16 ) {
42
- $impersonal_symbol = 'Х'; // ascii 208
43
  } else {
44
- $impersonal_symbol = 'X'; // ascii 88
 
 
 
 
 
 
45
  }
46
- $impersonal_codes[ $name ] = preg_replace( '/[^\s]/', $impersonal_symbol, $code );
47
  }
48
 
49
- return array(
50
- 'personal' => strtr( $text, $codes ),
51
- 'impersonal' => strtr( $text, $impersonal_codes ),
52
- );
53
  }
54
 
55
  /**
35
  $codes = $this->getReplaceCodes( 'text' );
36
 
37
  // Impersonal codes.
38
+ $impersonal_codes = $this->_impersonalCodes( $codes );
39
+
40
+ return array(
41
+ 'personal' => Utils\Codes::replace( $text, $codes, false ),
42
+ 'impersonal' => Utils\Codes::replace( $text, $impersonal_codes, false ),
43
+ );
44
+ }
45
+
46
+ /**
47
+ * @param array $codes
48
+ * @return array
49
+ */
50
+ protected function _impersonalCodes( $codes )
51
+ {
52
  $impersonal_codes = array();
53
+
54
  foreach ( $codes as $name => $code ) {
55
+ if ( is_array( $code ) ) {
56
+ $impersonal_codes[ $name ] = $this->_impersonalCodes( $code );
 
57
  } else {
58
+ $count = Utils\SMSCounter::count( (string) $code );
59
+ if ( $count->encoding == Utils\SMSCounter::UTF16 ) {
60
+ $impersonal_symbol = 'х'; // ascii 245
61
+ } else {
62
+ $impersonal_symbol = 'x'; // ascii 120
63
+ }
64
+ $impersonal_codes[ $name ] = preg_replace( '/[^\s]/', $impersonal_symbol, $code );
65
  }
 
66
  }
67
 
68
+ return $impersonal_codes;
 
 
 
69
  }
70
 
71
  /**
main.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Bookly
4
  Plugin URI: https://www.booking-wp-plugin.com/?utm_source=bookly_admin&utm_medium=plugins_page&utm_campaign=plugins_page
5
  Description: Bookly Plugin – is a great easy-to-use and easy-to-manage booking tool for service providers who think about their customers. The plugin supports a wide range of services provided by business and individuals who offer reservations through websites. Set up any reservation quickly, pleasantly and easily with Bookly!
6
- Version: 19.3
7
  Author: Bookly
8
  Author URI: https://www.booking-wp-plugin.com/?utm_source=bookly_admin&utm_medium=plugins_page&utm_campaign=plugins_page
9
  Text Domain: bookly
3
  Plugin Name: Bookly
4
  Plugin URI: https://www.booking-wp-plugin.com/?utm_source=bookly_admin&utm_medium=plugins_page&utm_campaign=plugins_page
5
  Description: Bookly Plugin – is a great easy-to-use and easy-to-manage booking tool for service providers who think about their customers. The plugin supports a wide range of services provided by business and individuals who offer reservations through websites. Set up any reservation quickly, pleasantly and easily with Bookly!
6
+ Version: 19.4
7
  Author: Bookly
8
  Author URI: https://www.booking-wp-plugin.com/?utm_source=bookly_admin&utm_medium=plugins_page&utm_campaign=plugins_page
9
  Text Domain: bookly
readme.txt CHANGED
@@ -3,9 +3,9 @@ Contributors: Ladela
3
  Tags: Booking, booking system, appointment booking, Booking calendar, reservation calendar, appointment scheduler, appointment calendar
4
  Donate link: https://www.booking-wp-plugin.com/
5
  Requires at least: 3.7
6
- Tested up to: 5.6
7
  Requires PHP: 5.3.7
8
- Stable tag: 19.3
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
 
3
  Tags: Booking, booking system, appointment booking, Booking calendar, reservation calendar, appointment scheduler, appointment calendar
4
  Donate link: https://www.booking-wp-plugin.com/
5
  Requires at least: 3.7
6
+ Tested up to: 5.6.1
7
  Requires PHP: 5.3.7
8
+ Stable tag: 19.4
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11