Version Description
- Changes in all versions:
- Translation Dutch translation [100% completed] by Boris Hoekmeijer
- Fix issue of not ability to add Booking Calendar blocks, because of error: "TypeError: wp.editor is undefined" in WordPress 5.0 or in WordPress 4.9.9 together with Gutenberg Version 4.5.1, during adding new Booking Calendar blocks in post/page. (8.4.3.1)
- Fix CSS loyout in WordPress 5.0 for new blocks editor in Chrome browser (8.4.3.2)
Download this release
Release Info
Developer | wpdevelop |
Plugin | Booking Calendar |
Version | 8.4.3 |
Comparing to | |
See all releases |
Code changes from version 8.4.2 to 8.4.3
- core/lib/wpdev-booking-class.php +2 -1
- core/wpbc-constants.php +1 -1
- css/wpbc-gutenberg.css +15 -8
- js/wpbc-gutenberg.js +3 -1
- languages/booking-nl_NL.mo +0 -0
- readme.txt +10 -4
- wpdev-booking.php +1 -1
core/lib/wpdev-booking-class.php
CHANGED
@@ -184,7 +184,8 @@ class wpdev_booking {
|
|
184 |
|
185 |
$blocked_days_range = array( $my_date->booking_date );
|
186 |
//debuge( 'before', $blocked_days_range, $prior_check_out_date );
|
187 |
-
|
|
|
188 |
//debuge( 'after', $blocked_days_range, $prior_check_out_date );
|
189 |
// Define booked dates and times
|
190 |
foreach ( $blocked_days_range as $in_date) {
|
184 |
|
185 |
$blocked_days_range = array( $my_date->booking_date );
|
186 |
//debuge( 'before', $blocked_days_range, $prior_check_out_date );
|
187 |
+
//if ( ! in_array( (string) $bk_type, array( '2', '3' ) ) ) // Skip these booking resources '2' and '3' from adding additional unavailable times before after the booking
|
188 |
+
list( $blocked_days_range, $prior_check_out_date ) = apply_filters( 'wpbc_get_extended_block_dates_filter', array( $blocked_days_range, $prior_check_out_date ) );
|
189 |
//debuge( 'after', $blocked_days_range, $prior_check_out_date );
|
190 |
// Define booked dates and times
|
191 |
foreach ( $blocked_days_range as $in_date) {
|
core/wpbc-constants.php
CHANGED
@@ -26,7 +26,7 @@ if ( ! defined( 'WP_BK_CHECK_OUT_MINUS_DAY_SEARCH' ) ) { define( 'WP_BK_C
|
|
26 |
////////////////////////////////////////////////////////////
|
27 |
// SYSTEM CONSTANTS //////////////
|
28 |
////////////////////////////////////////////////////////////
|
29 |
-
if ( ! defined( 'WP_BK_VERSION_NUM' ) ) { define( 'WP_BK_VERSION_NUM', '8.4.
|
30 |
if ( ! defined( 'WP_BK_MINOR_UPDATE' ) ) { define( 'WP_BK_MINOR_UPDATE', true ); }
|
31 |
if ( ! defined( 'WP_BK_RESPONSE' ) ) { define( 'WP_BK_RESPONSE', false ); }
|
32 |
if ( ! defined( 'WP_BK_BETA_DATA_FILL' ) ) { define( 'WP_BK_BETA_DATA_FILL', 0 ); } // Set 0 for no filling or 2 for 241 bookings or more for more
|
26 |
////////////////////////////////////////////////////////////
|
27 |
// SYSTEM CONSTANTS //////////////
|
28 |
////////////////////////////////////////////////////////////
|
29 |
+
if ( ! defined( 'WP_BK_VERSION_NUM' ) ) { define( 'WP_BK_VERSION_NUM', '8.4.3' ); }
|
30 |
if ( ! defined( 'WP_BK_MINOR_UPDATE' ) ) { define( 'WP_BK_MINOR_UPDATE', true ); }
|
31 |
if ( ! defined( 'WP_BK_RESPONSE' ) ) { define( 'WP_BK_RESPONSE', false ); }
|
32 |
if ( ! defined( 'WP_BK_BETA_DATA_FILL' ) ) { define( 'WP_BK_BETA_DATA_FILL', 0 ); } // Set 0 for no filling or 2 for 241 bookings or more for more
|
css/wpbc-gutenberg.css
CHANGED
@@ -55,26 +55,28 @@ DIV.wpbc_gb_block_shortcode_preview_wrapper.wpbc_gb_block_preview_bookingtimelin
|
|
55 |
|
56 |
/* == Block Preview == */
|
57 |
.wpbc_gb_block_shortcode_preview_wrapper {
|
58 |
-
font-size:
|
|
|
59 |
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
60 |
}
|
61 |
|
|
|
62 |
/* == Block Preview - Content and Header == */
|
63 |
-
.wpbc_gb_block_shortcode_preview_content {
|
64 |
border: #e4951b solid 1px;
|
65 |
border-bottom: none;
|
66 |
padding: 0 10px 20px;
|
67 |
}
|
68 |
|
69 |
/* == Block Preview - Header == */
|
70 |
-
.wpbc_gb_block_preview_inner_header{
|
71 |
border-bottom: #e4951b solid 1px;
|
72 |
margin: 0.5em 0 1em;
|
73 |
font-weight: 600;
|
74 |
}
|
75 |
|
76 |
/* == Block Preview - Header Title == */
|
77 |
-
.wpbc_gb_block_preview_inner_title_text {
|
78 |
font-size: 1.3em;
|
79 |
vertical-align: middle;
|
80 |
line-height: 2.1em;
|
@@ -83,7 +85,7 @@ DIV.wpbc_gb_block_shortcode_preview_wrapper.wpbc_gb_block_preview_bookingtimelin
|
|
83 |
}
|
84 |
|
85 |
/* == Block Preview - Header link - Click to edit == */
|
86 |
-
.wpbc_gb_block_preview_inner_title_edit {
|
87 |
font-size: 0.85em;
|
88 |
vertical-align: middle;
|
89 |
cursor: pointer;
|
@@ -92,7 +94,7 @@ DIV.wpbc_gb_block_shortcode_preview_wrapper.wpbc_gb_block_preview_bookingtimelin
|
|
92 |
}
|
93 |
|
94 |
/* == Block Preview - Header Description == */
|
95 |
-
.wpbc_gb_block_preview_inner_title_desc {
|
96 |
font-size: 0.9em;
|
97 |
font-style: italic;
|
98 |
text-align: left;
|
@@ -105,12 +107,12 @@ DIV.wpbc_gb_block_shortcode_preview_wrapper.wpbc_gb_block_preview_bookingtimelin
|
|
105 |
}
|
106 |
|
107 |
/* == Block Preview - Content == */
|
108 |
-
.wpbc_gb_block_preview_inner_body{
|
109 |
|
110 |
}
|
111 |
|
112 |
/* == Block Preview - Footer == */
|
113 |
-
.wpbc_gb_block_preview_inner_footer {
|
114 |
width: 100%;
|
115 |
background: #f0f0f0;
|
116 |
margin: 0;
|
@@ -173,4 +175,9 @@ DIV.wpbc_gb_block_shortcode_preview_wrapper.wpbc_gb_block_preview_bookingtimelin
|
|
173 |
background: none repeat scroll 0 0 #E9E9E9;
|
174 |
border: 1px solid #BBBBBB;
|
175 |
width: 100%;
|
|
|
|
|
|
|
|
|
|
|
176 |
}
|
55 |
|
56 |
/* == Block Preview == */
|
57 |
.wpbc_gb_block_shortcode_preview_wrapper {
|
58 |
+
font-size: 13px; /* FixIn: 8.4.3.2 */
|
59 |
+
line-height: 2em; /* FixIn: 8.4.3.2 */
|
60 |
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
61 |
}
|
62 |
|
63 |
+
/* FixIn: 8.4.3.2 */
|
64 |
/* == Block Preview - Content and Header == */
|
65 |
+
.wpbc_gb_block_shortcode_preview_wrapper .wpbc_gb_block_shortcode_preview_content {
|
66 |
border: #e4951b solid 1px;
|
67 |
border-bottom: none;
|
68 |
padding: 0 10px 20px;
|
69 |
}
|
70 |
|
71 |
/* == Block Preview - Header == */
|
72 |
+
.wpbc_gb_block_shortcode_preview_wrapper .wpbc_gb_block_preview_inner_header{
|
73 |
border-bottom: #e4951b solid 1px;
|
74 |
margin: 0.5em 0 1em;
|
75 |
font-weight: 600;
|
76 |
}
|
77 |
|
78 |
/* == Block Preview - Header Title == */
|
79 |
+
.wpbc_gb_block_shortcode_preview_wrapper .wpbc_gb_block_preview_inner_title_text {
|
80 |
font-size: 1.3em;
|
81 |
vertical-align: middle;
|
82 |
line-height: 2.1em;
|
85 |
}
|
86 |
|
87 |
/* == Block Preview - Header link - Click to edit == */
|
88 |
+
.wpbc_gb_block_shortcode_preview_wrapper .wpbc_gb_block_preview_inner_title_edit {
|
89 |
font-size: 0.85em;
|
90 |
vertical-align: middle;
|
91 |
cursor: pointer;
|
94 |
}
|
95 |
|
96 |
/* == Block Preview - Header Description == */
|
97 |
+
.wpbc_gb_block_shortcode_preview_wrapper .wpbc_gb_block_preview_inner_title_desc {
|
98 |
font-size: 0.9em;
|
99 |
font-style: italic;
|
100 |
text-align: left;
|
107 |
}
|
108 |
|
109 |
/* == Block Preview - Content == */
|
110 |
+
.wpbc_gb_block_shortcode_preview_wrapper .wpbc_gb_block_preview_inner_body{
|
111 |
|
112 |
}
|
113 |
|
114 |
/* == Block Preview - Footer == */
|
115 |
+
.wpbc_gb_block_shortcode_preview_wrapper .wpbc_gb_block_preview_inner_footer {
|
116 |
width: 100%;
|
117 |
background: #f0f0f0;
|
118 |
margin: 0;
|
175 |
background: none repeat scroll 0 0 #E9E9E9;
|
176 |
border: 1px solid #BBBBBB;
|
177 |
width: 100%;
|
178 |
+
}
|
179 |
+
|
180 |
+
/* FixIn: 8.4.3.2 */
|
181 |
+
div.wpbc_gb_block_shortcode_preview_wrapper strong {
|
182 |
+
font-weight: 600;
|
183 |
}
|
js/wpbc-gutenberg.js
CHANGED
@@ -40,10 +40,12 @@
|
|
40 |
*/
|
41 |
var __ = wp.i18n.__;
|
42 |
|
|
|
|
|
43 |
var source = wp.blocks.source,
|
44 |
RichText = wp.editor.RichText,
|
45 |
BlockControls = wp.editor.BlockControls,
|
46 |
-
AlignmentToolbar = wp.editor.AlignmentToolbar
|
47 |
|
48 |
|
49 |
registerBlockType( 'booking/booking', {
|
40 |
*/
|
41 |
var __ = wp.i18n.__;
|
42 |
|
43 |
+
//FixIn: 8.4.3.1
|
44 |
+
/*
|
45 |
var source = wp.blocks.source,
|
46 |
RichText = wp.editor.RichText,
|
47 |
BlockControls = wp.editor.BlockControls,
|
48 |
+
AlignmentToolbar = wp.editor.AlignmentToolbar;*/
|
49 |
|
50 |
|
51 |
registerBlockType( 'booking/booking', {
|
languages/booking-nl_NL.mo
CHANGED
Binary file
|
readme.txt
CHANGED
@@ -4,8 +4,8 @@ Donate link: https://wpbookingcalendar.com/buy/
|
|
4 |
Tags: booking calendar, booking system, availability calendar, events calendar, appointments , booking form, reservation, availability, oplugins, calendar, Booking Calendar, ical
|
5 |
Requires at least: 4.0
|
6 |
Requires PHP: 5.2.4
|
7 |
-
Tested up to: 5.
|
8 |
-
Stable tag: 8.4.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -167,9 +167,9 @@ Please see [FAQ](https://wpbookingcalendar.com/faq/).
|
|
167 |
= Support Languages =
|
168 |
|
169 |
- English
|
|
|
170 |
- German [99% Completed]
|
171 |
- Finnish [99% Completed]
|
172 |
-
- Dutch [97% Completed]
|
173 |
- Danish [97% Completed]
|
174 |
- Greek [97% Completed]
|
175 |
- Bulgarian [97% Completed]
|
@@ -225,6 +225,12 @@ Please see [Video Guides](https://wpbookingcalendar.com/help/).
|
|
225 |
13. **Time Slots**. Simple configuration of **time slots** selection in booking form.
|
226 |
|
227 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
228 |
= 8.4.2 =
|
229 |
- Changes in **all** versions:
|
230 |
* **Translation**. Finnish translation [99% completed] by Tero Janhunen
|
@@ -494,4 +500,4 @@ For more information, see the [full release notes](https://wpbookingcalendar.com
|
|
494 |
|
495 |
== Upgrade Notice ==
|
496 |
= 8.4 =
|
497 |
-
Support Gutenberg editor.
|
4 |
Tags: booking calendar, booking system, availability calendar, events calendar, appointments , booking form, reservation, availability, oplugins, calendar, Booking Calendar, ical
|
5 |
Requires at least: 4.0
|
6 |
Requires PHP: 5.2.4
|
7 |
+
Tested up to: 5.1
|
8 |
+
Stable tag: 8.4.3
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
167 |
= Support Languages =
|
168 |
|
169 |
- English
|
170 |
+
- Dutch [100% Completed]
|
171 |
- German [99% Completed]
|
172 |
- Finnish [99% Completed]
|
|
|
173 |
- Danish [97% Completed]
|
174 |
- Greek [97% Completed]
|
175 |
- Bulgarian [97% Completed]
|
225 |
13. **Time Slots**. Simple configuration of **time slots** selection in booking form.
|
226 |
|
227 |
== Changelog ==
|
228 |
+
= 8.4.3 =
|
229 |
+
- Changes in **all** versions:
|
230 |
+
* **Translation** Dutch translation [100% completed] by Boris Hoekmeijer
|
231 |
+
* **Fix** issue of not ability to add Booking Calendar blocks, because of error: "TypeError: wp.editor is undefined" in WordPress 5.0 or in WordPress 4.9.9 together with Gutenberg Version 4.5.1, during adding new Booking Calendar blocks in post/page. (8.4.3.1)
|
232 |
+
* **Fix** CSS loyout in WordPress 5.0 for new blocks editor in Chrome browser (8.4.3.2)
|
233 |
+
|
234 |
= 8.4.2 =
|
235 |
- Changes in **all** versions:
|
236 |
* **Translation**. Finnish translation [99% completed] by Tero Janhunen
|
500 |
|
501 |
== Upgrade Notice ==
|
502 |
= 8.4 =
|
503 |
+
Support WordPress 5.0 and new Gutenberg editor. Use new Booking Calendar blocks in posts and pages.
|
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.4.
|
11 |
*/
|
12 |
|
13 |
/* Copyright 2009 - 2018 www.wpbookingcalendar.com (email: info@wpbookingcalendar.com),
|
7 |
Author URI: https://wpbookingcalendar.com/
|
8 |
Text Domain: booking
|
9 |
Domain Path: /languages/
|
10 |
+
Version: 8.4.3
|
11 |
*/
|
12 |
|
13 |
/* Copyright 2009 - 2018 www.wpbookingcalendar.com (email: info@wpbookingcalendar.com),
|