Restaurant Reservations - Version 2.1.11

Version Description

(2020-06-25) = - Updated naming of settings sections to make it more clear - A few styling updates to the admin panel - Small correction so the walk-through doesn't automatically run if you previously had the plugin installed

Download this release

Release Info

Developer Rustaurius
Plugin Icon 128x128 Restaurant Reservations
Version 2.1.11
Comparing to
See all releases

Code changes from version 2.1.10 to 2.1.11

assets/js/admin.js CHANGED
@@ -1021,46 +1021,35 @@ jQuery(document).ready(function($){
1021
  });
1022
 
1023
  /*LOCK BOXES*/
1024
- jQuery(document).ready(function($){
1025
 
1026
- setTimeout(function(){
1027
- $('.rtb-premium-options-table-overlay').each(function(){
1028
- var eachProTableOverlay = $(this);
1029
- var associatedTable = eachProTableOverlay.next();
1030
- var tableWidth = associatedTable.outerWidth(true);
1031
- associatedTable.css('min-height', '240px');
1032
- var tableHeight = associatedTable.outerHeight();
1033
- var tablePosition = associatedTable.position();
1034
- var tableLeft = tablePosition.left;
1035
- var tableTop = tablePosition.top;
1036
- eachProTableOverlay.css('width', tableWidth+'px');
1037
- eachProTableOverlay.css('height', tableHeight+'px');
1038
- eachProTableOverlay.css('left', tableLeft+'px');
1039
- eachProTableOverlay.css('top', tableTop+'px');
1040
- })
1041
- }, 500);
1042
 
 
 
 
 
 
1043
 
1044
- $(function(){
1045
- $(window).resize(function(){
1046
- $('.rtb-premium-options-table-overlay').each(function(){
1047
- var eachProTableOverlay = $(this);
1048
- var associatedTable = eachProTableOverlay.next();
1049
- var tableWidth = associatedTable.outerWidth(true);
1050
- associatedTable.css('min-height', '240px');
1051
- var tableHeight = associatedTable.outerHeight();
1052
- var tablePosition = associatedTable.position();
1053
- var tableLeft = tablePosition.left;
1054
- var tableTop = tablePosition.top;
1055
- eachProTableOverlay.css('width', tableWidth+'px');
1056
- eachProTableOverlay.css('height', tableHeight+'px');
1057
- eachProTableOverlay.css('left', tableLeft+'px');
1058
- eachProTableOverlay.css('top', tableTop+'px');
1059
- });
1060
- }).resize();
1061
- });
1062
  });
1063
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1064
  //OPTIONS PAGE YES/NO TOGGLE SWITCHES
1065
  jQuery(document).ready(function($){
1066
  $('.rtb-admin-option-toggle').on('change', function() {
1021
  });
1022
 
1023
  /*LOCK BOXES*/
1024
+ jQuery( document ).ready( function() {
1025
 
1026
+ setTimeout( resizeLockdownBoxes, 1500 );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1027
 
1028
+ jQuery( window ).on( 'resize', resizeLockdownBoxes );
1029
+
1030
+ jQuery( '.mcfrtb-list-select select' ).on( 'click.resizeLockdownBoxes', function() {
1031
+ setTimeout( resizeLockdownBoxes, 1500 );
1032
+ } );
1033
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1034
  });
1035
 
1036
+ function resizeLockdownBoxes() {
1037
+ jQuery('.rtb-premium-options-table-overlay').each(function(){
1038
+
1039
+ var eachProTableOverlay = jQuery( this );
1040
+ var associatedTable = eachProTableOverlay.next();
1041
+ associatedTable.css('min-height', '260px');
1042
+ var tablePosition = associatedTable.position();
1043
+
1044
+ eachProTableOverlay.css( 'width', associatedTable.outerWidth(true) + 'px' );
1045
+ eachProTableOverlay.css( 'height', associatedTable.outerHeight() + 'px' );
1046
+ eachProTableOverlay.css( 'left', tablePosition.left + 'px' );
1047
+ eachProTableOverlay.css( 'top', tablePosition.top + 'px' );
1048
+ });
1049
+ }
1050
+
1051
+
1052
+
1053
  //OPTIONS PAGE YES/NO TOGGLE SWITCHES
1054
  jQuery(document).ready(function($){
1055
  $('.rtb-admin-option-toggle').on('change', function() {
includes/InstallationWalkthrough.class.php CHANGED
@@ -30,9 +30,9 @@ class rtbInstallationWalkthrough {
30
  if ( is_network_admin() || isset( $_GET['activate-multi'] ) )
31
  return;
32
 
33
- $bookings = get_posts(array('post_type' => 'rtb-booking'));
34
- if ( ! empty($bookings)) {
35
- set_transient('rtb-admin-install-notice', true, 5);
36
  return;
37
  }
38
 
30
  if ( is_network_admin() || isset( $_GET['activate-multi'] ) )
31
  return;
32
 
33
+ $bookings = get_posts( array( 'post_type' => 'rtb-booking', 'post_status' => 'any' ) );
34
+ if ( ! empty( $bookings ) ) {
35
+ set_transient( 'rtb-admin-install-notice', true, 5 );
36
  return;
37
  }
38
 
includes/Settings.class.php CHANGED
@@ -1147,7 +1147,7 @@ If you were not the one to cancel this booking, please contact us.
1147
  'rtb-settings',
1148
  array(
1149
  'id' => 'rtb-premium',
1150
- 'title' => __( 'Premium', 'restaurant-reservations' ),
1151
  'is_tab' => true,
1152
  )
1153
  );
1147
  'rtb-settings',
1148
  array(
1149
  'id' => 'rtb-premium',
1150
+ 'title' => __( 'Advanced', 'restaurant-reservations' ),
1151
  'is_tab' => true,
1152
  )
1153
  );
readme.txt CHANGED
@@ -196,6 +196,11 @@ Find answers to even more questions in the [FAQ](http://doc.fivestarplugins.com/
196
 
197
  == Changelog ==
198
 
 
 
 
 
 
199
  = 2.1.10 (2020-06-16) =
200
  - Fixes timezone issues that some users were having for their reservation reminders and max reservation/late bookings settings
201
 
196
 
197
  == Changelog ==
198
 
199
+ = 2.1.11 (2020-06-25) =
200
+ - Updated naming of settings sections to make it more clear
201
+ - A few styling updates to the admin panel
202
+ - Small correction so the walk-through doesn't automatically run if you previously had the plugin installed
203
+
204
  = 2.1.10 (2020-06-16) =
205
  - Fixes timezone issues that some users were having for their reservation reminders and max reservation/late bookings settings
206
 
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.1.10
7
  * Author: FiveStarPlugins
8
  * Author URI: https://profiles.wordpress.org/fivestarplugins/
9
  * Text Domain: restaurant-reservations
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.1.11
7
  * Author: FiveStarPlugins
8
  * Author URI: https://profiles.wordpress.org/fivestarplugins/
9
  * Text Domain: restaurant-reservations