Version Description
(2021-12-23) = - Fixed issue with front-end booking cancellation.
Download this release
Release Info
Developer | Rustaurius |
Plugin | Restaurant Reservations |
Version | 2.4.10 |
Comparing to | |
See all releases |
Code changes from version 2.4.9 to 2.4.10
- assets/js/admin-settings.js +17 -23
- assets/js/booking-form.js +2 -0
- includes/Settings.class.php +9 -8
- readme.txt +4 -1
- restaurant-reservations.php +2 -2
assets/js/admin-settings.js
CHANGED
@@ -11,29 +11,23 @@ jQuery( document ).ready( function() {
|
|
11 |
|
12 |
function manageHidingSections() {
|
13 |
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
jQuery( '.sap-settings-page .form-table tr:not(.sap-hidden)' ).each(function(){
|
32 |
-
|
33 |
-
var associatedNonEmptyTable = jQuery( this ).parent().parent();
|
34 |
-
|
35 |
-
associatedNonEmptyTable.show();
|
36 |
-
associatedNonEmptyTable.prev( 'h2' ).show();
|
37 |
});
|
38 |
}
|
39 |
|
11 |
|
12 |
function manageHidingSections() {
|
13 |
|
14 |
+
jQuery( '.sap-settings-page .form-table' ).each(function(){
|
15 |
+
|
16 |
+
var table = jQuery( this );
|
17 |
+
var action = 'hide';
|
18 |
+
|
19 |
+
if( table.find( '> tbody > tr:not(.sap-hidden)' ).length ) {
|
20 |
+
action = 'show';
|
21 |
+
}
|
22 |
+
|
23 |
+
table[action]();
|
24 |
+
if( ( ovrly = table.prev( '.sap-premium-options-table-overlay' ) ).length ) {
|
25 |
+
ovrly[action]();
|
26 |
+
ovrly.prev( 'h2' )[action]();
|
27 |
+
}
|
28 |
+
else {
|
29 |
+
table.prev( 'h2' )[action]();
|
30 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
});
|
32 |
}
|
33 |
|
assets/js/booking-form.js
CHANGED
@@ -728,6 +728,8 @@ function cancellationHandler() {
|
|
728 |
var booking_id = btn.data('bookingid');
|
729 |
var booking_email = btn.data('bookingemail');
|
730 |
|
|
|
|
|
731 |
params.action = 'rtb_cancel_reservations';
|
732 |
params.nonce = rtb_booking_form_js_localize.nonce;
|
733 |
params.booking_id = booking_id;
|
728 |
var booking_id = btn.data('bookingid');
|
729 |
var booking_email = btn.data('bookingemail');
|
730 |
|
731 |
+
var params = {};
|
732 |
+
|
733 |
params.action = 'rtb_cancel_reservations';
|
734 |
params.nonce = rtb_booking_form_js_localize.nonce;
|
735 |
params.booking_id = booking_id;
|
includes/Settings.class.php
CHANGED
@@ -872,14 +872,15 @@ If you were not the one to cancel this booking, please contact us.
|
|
872 |
'title' => __( 'Early Bookings', 'restaurant-reservations' ),
|
873 |
'description' => __( 'Select how early customers can make their booking. (Administrators and Booking Managers are not restricted by this setting.)', 'restaurant-reservations' ),
|
874 |
'blank_option' => false,
|
875 |
-
'options' => array(
|
876 |
-
|
877 |
-
|
878 |
-
|
879 |
-
|
880 |
-
|
881 |
-
|
882 |
-
|
|
|
883 |
)
|
884 |
)
|
885 |
);
|
872 |
'title' => __( 'Early Bookings', 'restaurant-reservations' ),
|
873 |
'description' => __( 'Select how early customers can make their booking. (Administrators and Booking Managers are not restricted by this setting.)', 'restaurant-reservations' ),
|
874 |
'blank_option' => false,
|
875 |
+
'options' => apply_filters( 'rtb_setting_early_booking_options', array(
|
876 |
+
'' => __( 'Any time', 'restaurant-reservations' ),
|
877 |
+
'1' => __( 'From 1 day in advance', 'restaurant-reservations' ),
|
878 |
+
'7' => __( 'From 1 week in advance', 'restaurant-reservations' ),
|
879 |
+
'14' => __( 'From 2 weeks in advance', 'restaurant-reservations' ),
|
880 |
+
'30' => __( 'From 30 days in advance', 'restaurant-reservations' ),
|
881 |
+
'60' => __( 'From 60 days in advance', 'restaurant-reservations' ),
|
882 |
+
'90' => __( 'From 90 days in advance', 'restaurant-reservations' ),
|
883 |
+
)
|
884 |
)
|
885 |
)
|
886 |
);
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: FiveStarPlugins
|
|
3 |
Requires at Least: 4.4
|
4 |
Tested Up To: 5.8
|
5 |
Tags: reservation, reservations, restaurant reservations, reservation form, restaurant booking, restaurant reservation form, restaurant booking form, restaurant booking system, reservation system, online reservations, online restaurant booking, dinner reservations, restaurant form, gutenberg reservations, gutenberg restaurant reservations, gutenberg restaurant booking, mobile reservations, responsive reservations, table reservations, open table, book table, reserve table, easy reservations, simple reservations, quick restaurant reservations, custom reservation form, custom restaurant reservations
|
6 |
-
Stable tag: 2.4.
|
7 |
License: GPLv3
|
8 |
License URI:http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
Donate Link: https://www.etoilewebdesign.com/plugin-donations/
|
@@ -197,6 +197,9 @@ Find answers to even more questions in the [FAQ](http://doc.fivestarplugins.com/
|
|
197 |
|
198 |
== Changelog ==
|
199 |
|
|
|
|
|
|
|
200 |
= 2.4.9 (2021-12-20) =
|
201 |
- Corrected a few elements that were misaligned on the settings page if you had multiple locations enabled (in the Business Profile plugin) and you switched which location you were configuring.
|
202 |
|
3 |
Requires at Least: 4.4
|
4 |
Tested Up To: 5.8
|
5 |
Tags: reservation, reservations, restaurant reservations, reservation form, restaurant booking, restaurant reservation form, restaurant booking form, restaurant booking system, reservation system, online reservations, online restaurant booking, dinner reservations, restaurant form, gutenberg reservations, gutenberg restaurant reservations, gutenberg restaurant booking, mobile reservations, responsive reservations, table reservations, open table, book table, reserve table, easy reservations, simple reservations, quick restaurant reservations, custom reservation form, custom restaurant reservations
|
6 |
+
Stable tag: 2.4.10
|
7 |
License: GPLv3
|
8 |
License URI:http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
Donate Link: https://www.etoilewebdesign.com/plugin-donations/
|
197 |
|
198 |
== Changelog ==
|
199 |
|
200 |
+
= 2.4.10 (2021-12-23) =
|
201 |
+
- Fixed issue with front-end booking cancellation.
|
202 |
+
|
203 |
= 2.4.9 (2021-12-20) =
|
204 |
- Corrected a few elements that were misaligned on the settings page if you had multiple locations enabled (in the Business Profile plugin) and you switched which location you were configuring.
|
205 |
|
restaurant-reservations.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Five Star Restaurant Reservations - WordPress Booking Plugin
|
4 |
* Plugin URI: http://www.fivestarplugins.com/plugins/five-star-restaurant-reservations/
|
5 |
* Description: Restaurant reservations made easy. Accept bookings online. Quickly confirm or reject reservations, send email notifications, set booking times and more.
|
6 |
-
* Version: 2.4.
|
7 |
* Author: FiveStarPlugins
|
8 |
* Author URI: https://profiles.wordpress.org/fivestarplugins/
|
9 |
* Text Domain: restaurant-reservations
|
@@ -39,7 +39,7 @@ class rtbInit {
|
|
39 |
public function __construct() {
|
40 |
|
41 |
// Common strings
|
42 |
-
define( 'RTB_VERSION', '2.4.
|
43 |
define( 'RTB_PLUGIN_DIR', untrailingslashit( plugin_dir_path( __FILE__ ) ) );
|
44 |
define( 'RTB_PLUGIN_URL', untrailingslashit( plugins_url( basename( plugin_dir_path( __FILE__ ) ), basename( __FILE__ ) ) ) );
|
45 |
define( 'RTB_PLUGIN_FNAME', plugin_basename( __FILE__ ) );
|
3 |
* Plugin Name: Five Star Restaurant Reservations - WordPress Booking Plugin
|
4 |
* Plugin URI: http://www.fivestarplugins.com/plugins/five-star-restaurant-reservations/
|
5 |
* Description: Restaurant reservations made easy. Accept bookings online. Quickly confirm or reject reservations, send email notifications, set booking times and more.
|
6 |
+
* Version: 2.4.10
|
7 |
* Author: FiveStarPlugins
|
8 |
* Author URI: https://profiles.wordpress.org/fivestarplugins/
|
9 |
* Text Domain: restaurant-reservations
|
39 |
public function __construct() {
|
40 |
|
41 |
// Common strings
|
42 |
+
define( 'RTB_VERSION', '2.4.10' );
|
43 |
define( 'RTB_PLUGIN_DIR', untrailingslashit( plugin_dir_path( __FILE__ ) ) );
|
44 |
define( 'RTB_PLUGIN_URL', untrailingslashit( plugins_url( basename( plugin_dir_path( __FILE__ ) ), basename( __FILE__ ) ) ) );
|
45 |
define( 'RTB_PLUGIN_FNAME', plugin_basename( __FILE__ ) );
|