Restaurant Reservations - Version 2.5.8

Version Description

(2022-04-12) = - Fixed an issue in which the MailChimp subscription was not working when the "Confirmed Redirect Page" option was being used. - Added in labelling options, which can be used to translate or change the wording of each label that appears on the front end of the plugin. - Added an option to select the time the summary email sends. - Updated the message of the summary email for when there are no bookings today. - Added the ability to display custom fields in the View Bookings form. - Added an option to specify which columns show in the View Bookings form. - Updated the styling of the View Bookings form. - Added a booking summary to the deposit payment page. - Added a message when there are no available tables. - Added the ability to pre-select which day is chosen in the booking form using a URL parameter (for more info, see here: https://doc.fivestarplugins.com/plugins/restaurant-reservations/user/faq#pre-selected) - Added a feature that makes it so that, if a date range is selected on the Bookings screen in the admin, that range is automatically set as the default for exporting. - Fresh .pot file.

Download this release

Release Info

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

Code changes from version 2.5.7 to 2.5.8

Files changed (55) hide show
  1. assets/css/admin.css +3 -0
  2. assets/css/booking-form.css +98 -15
  3. assets/img/premium-screenshots/labelling1.png +0 -0
  4. assets/img/premium-screenshots/labelling2.png +0 -0
  5. assets/js/admin.js +6 -6
  6. assets/js/booking-form.js +18 -1
  7. includes/Ajax.class.php +3 -1
  8. includes/Booking.class.php +9 -1
  9. includes/ExportHandler.class.php +2 -2
  10. includes/MailChimp.class.php +142 -31
  11. includes/MultipleLocations.class.php +26 -2
  12. includes/Notification.class.php +4 -4
  13. includes/Notifications.class.php +52 -32
  14. includes/PaymentGatewayPayPal.class.php +6 -6
  15. includes/PaymentGatewayStripe.class.php +18 -12
  16. includes/PaymentManager.class.php +56 -5
  17. includes/Permissions.class.php +1 -0
  18. includes/Settings.class.php +188 -41
  19. includes/integrations/business-profile.php +3 -1
  20. includes/template-functions.php +67 -29
  21. languages/restaurant-reservations.pot +524 -462
  22. lib/simple-admin-pages/classes/AdminPage.Menu.class.php +1 -1
  23. lib/simple-admin-pages/classes/AdminPage.Submenu.class.php +1 -1
  24. lib/simple-admin-pages/classes/AdminPage.Themes.class.php +1 -1
  25. lib/simple-admin-pages/classes/AdminPage.class.php +1 -1
  26. lib/simple-admin-pages/classes/AdminPageSection.class.php +1 -1
  27. lib/simple-admin-pages/classes/AdminPageSetting.Address.class.php +1 -1
  28. lib/simple-admin-pages/classes/AdminPageSetting.Checkbox.class.php +3 -1
  29. lib/simple-admin-pages/classes/AdminPageSetting.ColorPicker.class.php +1 -1
  30. lib/simple-admin-pages/classes/AdminPageSetting.Count.class.php +1 -1
  31. lib/simple-admin-pages/classes/AdminPageSetting.Editor.class.php +1 -1
  32. lib/simple-admin-pages/classes/AdminPageSetting.FileUpload.class.php +1 -1
  33. lib/simple-admin-pages/classes/AdminPageSetting.HTML.class.php +1 -1
  34. lib/simple-admin-pages/classes/AdminPageSetting.Image.class.php +1 -1
  35. lib/simple-admin-pages/classes/AdminPageSetting.InfiniteTable.class.php +5 -3
  36. lib/simple-admin-pages/classes/AdminPageSetting.McApiKey.class.php +1 -1
  37. lib/simple-admin-pages/classes/AdminPageSetting.McListMerge.class.php +1 -1
  38. lib/simple-admin-pages/classes/AdminPageSetting.Number.class.php +1 -1
  39. lib/simple-admin-pages/classes/AdminPageSetting.OpeningHours.class.php +1 -1
  40. lib/simple-admin-pages/classes/AdminPageSetting.Ordering.class.php +1 -1
  41. lib/simple-admin-pages/classes/AdminPageSetting.Radio.class.php +1 -1
  42. lib/simple-admin-pages/classes/AdminPageSetting.Scheduler.class.php +1 -1
  43. lib/simple-admin-pages/classes/AdminPageSetting.Select.class.php +1 -1
  44. lib/simple-admin-pages/classes/AdminPageSetting.SelectMenu.class.php +1 -1
  45. lib/simple-admin-pages/classes/AdminPageSetting.SelectPost.class.php +1 -1
  46. lib/simple-admin-pages/classes/AdminPageSetting.SelectTaxonomy.class.php +1 -1
  47. lib/simple-admin-pages/classes/AdminPageSetting.Text.class.php +1 -1
  48. lib/simple-admin-pages/classes/AdminPageSetting.Textarea.class.php +1 -1
  49. lib/simple-admin-pages/classes/AdminPageSetting.Time.class.php +1 -1
  50. lib/simple-admin-pages/classes/AdminPageSetting.Toggle.class.php +1 -1
  51. lib/simple-admin-pages/classes/AdminPageSetting.WarningTip.class.php +1 -1
  52. lib/simple-admin-pages/classes/AdminPageSetting.class.php +1 -1
  53. lib/simple-admin-pages/classes/Library.class.php +8 -4
  54. readme.txt +16 -1
  55. restaurant-reservations.php +13 -11
assets/css/admin.css CHANGED
@@ -2775,6 +2775,9 @@ SETTINGS PREVIEW SCREENS
2775
  border: 8px solid #ddd;
2776
  margin-right: 40px;
2777
  }
 
 
 
2778
 
2779
  .rtb-settings-preview .rtb-dashboard-new-footer-one-benefits {
2780
  margin-top: 24px;
2775
  border: 8px solid #ddd;
2776
  margin-right: 40px;
2777
  }
2778
+ .rtb-settings-preview img:nth-of-type(n+3) {
2779
+ margin-top: 12px;
2780
+ }
2781
 
2782
  .rtb-settings-preview .rtb-dashboard-new-footer-one-benefits {
2783
  margin-top: 24px;
assets/css/booking-form.css CHANGED
@@ -110,7 +110,45 @@
110
  }
111
 
112
 
113
- /* ARRIVAL LIGHTBOX */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
114
  .rtb-view-bookings-form-confirmation-background-div {
115
  position: fixed;
116
  top: 0;
@@ -129,17 +167,14 @@
129
  margin: 0;
130
  background: #fff;
131
  font-size: 18px;
132
- text-transform: uppercase;
133
- font-weight: bold;
134
  text-align: center;
 
 
135
  }
136
  .rtb-view-bookings-form-confirmation-div-inside {
137
  position: relative;
138
  float: left;
139
- width: calc(100% - 6px);
140
- height: calc(100% - 12px);
141
- border: 3px solid #ddd;
142
- margin: 3px;
143
  }
144
  .rtb-view-bookings-form-confirmation-div-title {
145
  position: relative;
@@ -149,41 +184,59 @@
149
  color: #333;
150
  }
151
  .rtb-view-bookings-form-confirmation-accept {
 
152
  position: relative;
153
  float: left;
154
  width: 32%;
155
  margin: 24px 34% 0;
156
  padding: 8px 0;
157
- background: #444;
158
  color: #fff;
 
159
  cursor: pointer;
 
160
  }
161
  .rtb-view-bookings-form-confirmation-accept:hover {
162
  background: #555;
163
  }
164
  .rtb-view-bookings-form-confirmation-decline {
 
165
  position: relative;
166
  float: left;
167
  width: 32%;
168
  margin: 8px 34% 24px;
169
- padding: 8px 0;
170
- background: #bbb;
171
- color: #444;
 
 
172
  cursor: pointer;
 
173
  }
174
  .rtb-view-bookings-form-confirmation-decline:hover {
175
- background: #ccc;
 
 
176
  }
177
 
178
  #rtb-view-bookings-form-close {
179
  position: absolute;
 
 
 
180
  top: 0;
181
  right: 0;
182
- width: 24px;
183
- height: 24px;
184
- background: #ddd;
 
 
185
  font-size: 15px;
186
  cursor: pointer;
 
 
 
 
187
  }
188
 
189
  @media screen and (max-width: 568px) {
@@ -306,4 +359,34 @@ label[for="rtb-modification-email"] {
306
  }
307
  :is(.rtb-booking-form, #stripe-booking-form) button:disabled:hover {
308
  text-decoration: none;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
309
  }
110
  }
111
 
112
 
113
+ /* VIEW BOOKINGS TABLE AND ARRIVAL LIGHTBOX */
114
+
115
+ .rtb-view-bookings-table {
116
+ margin-top: 24px;
117
+ border-collapse: collapse;
118
+ }
119
+ .rtb-view-bookings-table,
120
+ .rtb-view-bookings-table tr,
121
+ .rtb-view-bookings-table th,
122
+ .rtb-view-bookings-table td {
123
+ border: 1px solid #ccc;
124
+ }
125
+ .rtb-view-bookings-table th {
126
+ font-weight: bold;
127
+ text-align: center;
128
+ }
129
+
130
+ @media screen and (max-width: 900px) {
131
+ .rtb-view-bookings-table th:nth-of-type(n+6),
132
+ .rtb-view-bookings-table td:nth-of-type(n+6) {
133
+ display: none;
134
+ }
135
+ }
136
+ @media screen and (max-width: 600px) {
137
+ .rtb-view-bookings-table th:nth-of-type(n+5),
138
+ .rtb-view-bookings-table td:nth-of-type(n+5) {
139
+ display: none;
140
+ }
141
+ }
142
+
143
+ .rtb-edit-view-booking {
144
+ width: 20px;
145
+ height: 20px;
146
+ margin-left: calc(50% - 10px);
147
+ }
148
+ .rtb-edit-view-booking[disabled] {
149
+ opacity: .75;
150
+ }
151
+
152
  .rtb-view-bookings-form-confirmation-background-div {
153
  position: fixed;
154
  top: 0;
167
  margin: 0;
168
  background: #fff;
169
  font-size: 18px;
 
 
170
  text-align: center;
171
+ border-radius: 2px;
172
+ box-shadow: 0 0 4px #555;
173
  }
174
  .rtb-view-bookings-form-confirmation-div-inside {
175
  position: relative;
176
  float: left;
177
+ width: 100%;
 
 
 
178
  }
179
  .rtb-view-bookings-form-confirmation-div-title {
180
  position: relative;
184
  color: #333;
185
  }
186
  .rtb-view-bookings-form-confirmation-accept {
187
+ box-sizing: border-box;
188
  position: relative;
189
  float: left;
190
  width: 32%;
191
  margin: 24px 34% 0;
192
  padding: 8px 0;
193
+ background: #222;
194
  color: #fff;
195
+ border-radius: 2px;
196
  cursor: pointer;
197
+ transition: background .35s;
198
  }
199
  .rtb-view-bookings-form-confirmation-accept:hover {
200
  background: #555;
201
  }
202
  .rtb-view-bookings-form-confirmation-decline {
203
+ box-sizing: border-box;
204
  position: relative;
205
  float: left;
206
  width: 32%;
207
  margin: 8px 34% 24px;
208
+ padding: 6px 0;
209
+ background: transparent;
210
+ color: #222;
211
+ border: 2px solid #222;
212
+ border-radius: 2px;
213
  cursor: pointer;
214
+ transition: background .35s, border-color .35s;
215
  }
216
  .rtb-view-bookings-form-confirmation-decline:hover {
217
+ background: #555;
218
+ color: #fff;
219
+ border-color: #555;
220
  }
221
 
222
  #rtb-view-bookings-form-close {
223
  position: absolute;
224
+ display: flex;
225
+ justify-content: center;
226
+ align-items: center;
227
  top: 0;
228
  right: 0;
229
+ width: 32px;
230
+ height: 32px;
231
+ background: #555;
232
+ color: #fff;
233
+ border-bottom-left-radius: 2px;
234
  font-size: 15px;
235
  cursor: pointer;
236
+ transition: background .35s;
237
+ }
238
+ #rtb-view-bookings-form-close:hover {
239
+ background: #222;
240
  }
241
 
242
  @media screen and (max-width: 568px) {
359
  }
360
  :is(.rtb-booking-form, #stripe-booking-form) button:disabled:hover {
361
  text-decoration: none;
362
+ }
363
+
364
+ /* Payment Detail Summary */
365
+ .booking-payment-wrapper .summary-title {
366
+ width: 100%;
367
+ display: block;
368
+ }
369
+ .booking-payment-wrapper dl.summary-detail {
370
+ box-sizing: border-box;
371
+ width: 100%;
372
+ display: block;
373
+ padding: 12px 16px;
374
+ background: #fafafa;
375
+ border: 1px solid #ddd;
376
+ border-radius: 2px;
377
+ }
378
+ .booking-payment-wrapper dl.summary-detail dt {
379
+ width: 120px;
380
+ padding-right: 20px;
381
+ display: inline-block;
382
+ margin: 0 0 8px;
383
+ }
384
+ .booking-payment-wrapper dl.summary-detail dd {
385
+ width: calc(100% - 140px);
386
+ display: inline-block;
387
+ margin: 0 0 8px;
388
+ }
389
+ .booking-payment-wrapper dl.summary-detail dt:last-of-type,
390
+ .booking-payment-wrapper dl.summary-detail dd:last-of-type {
391
+ margin-bottom: 0;
392
  }
assets/img/premium-screenshots/labelling1.png ADDED
Binary file
assets/img/premium-screenshots/labelling2.png ADDED
Binary file
assets/js/admin.js CHANGED
@@ -1020,12 +1020,6 @@ jQuery(document).ready(function ($) {
1020
  // Set the hidden field value
1021
  ebfrtb_export_modal_date_range.find( 'input[name="date_range"]' ).val( target.data( 'type' ) );
1022
 
1023
- // Reset date input fields
1024
- if ( ebfrtb_picker_start_date && ebfrtb_picker_end_date ) {
1025
- ebfrtb_picker_start_date.pickadate( 'picker' ).clear();
1026
- ebfrtb_picker_end_date.pickadate( 'picker' ).clear();
1027
- }
1028
-
1029
  // Show selection details
1030
  ebfrtb_export_modal_date_range.find( '.selector > div' ).slideUp();
1031
  ebfrtb_export_modal_date_range.find( '.' + target.data( 'type' ) ).slideDown();
@@ -1050,8 +1044,14 @@ jQuery(document).ready(function ($) {
1050
  container: 'body'
1051
  };
1052
 
 
 
 
1053
  ebfrtb_picker_start_date = $( '#ebfrtb-start-date' ).pickadate( settings );
1054
  ebfrtb_picker_end_date = $( '#ebfrtb-end-date' ).pickadate( settings );
 
 
 
1055
  }
1056
 
1057
  // Load export
1020
  // Set the hidden field value
1021
  ebfrtb_export_modal_date_range.find( 'input[name="date_range"]' ).val( target.data( 'type' ) );
1022
 
 
 
 
 
 
 
1023
  // Show selection details
1024
  ebfrtb_export_modal_date_range.find( '.selector > div' ).slideUp();
1025
  ebfrtb_export_modal_date_range.find( '.' + target.data( 'type' ) ).slideDown();
1044
  container: 'body'
1045
  };
1046
 
1047
+ var start_date = $( '#ebfrtb-start-date' ).val();
1048
+ var end_date = $( '#ebfrtb-end-date' ).val();
1049
+
1050
  ebfrtb_picker_start_date = $( '#ebfrtb-start-date' ).pickadate( settings );
1051
  ebfrtb_picker_end_date = $( '#ebfrtb-end-date' ).pickadate( settings );
1052
+
1053
+ ebfrtb_picker_start_date.pickadate( 'picker' ).set( 'select', start_date, { format: 'yyyy-mm-dd' } );
1054
+ ebfrtb_picker_end_date.pickadate( 'picker' ).set( 'select', end_date, { format: 'yyyy-mm-dd' } );
1055
  }
1056
 
1057
  // Load export
assets/js/booking-form.js CHANGED
@@ -49,6 +49,9 @@ jQuery(document).ready(function ($) {
49
  min: !rtb_pickadate.allow_past,
50
  container: 'body',
51
  firstDay: rtb_pickadate.first_day,
 
 
 
52
 
53
  onStart: function() {
54
 
@@ -64,6 +67,12 @@ jQuery(document).ready(function ($) {
64
  this.set( 'select', date );
65
  }
66
  }
 
 
 
 
 
 
67
  }
68
  });
69
 
@@ -79,6 +88,7 @@ jQuery(document).ready(function ($) {
79
  hiddenName: true,
80
  interval: parseInt( rtb_pickadate.time_interval, 10 ),
81
  container: 'body',
 
82
 
83
  // Select the value when loaded if a value has been set
84
  onStart: function() {
@@ -710,6 +720,13 @@ jQuery(document).ready(function ($) {
710
  table_select.find('> option').hide();
711
  table_select.find('> option').attr('disabled', 'disabled');
712
 
 
 
 
 
 
 
 
713
  jQuery.each(available_tables, function(index, element) {
714
 
715
  if ( index.indexOf( ',' ) === -1 ) {
@@ -722,7 +739,7 @@ jQuery(document).ready(function ($) {
722
 
723
  });
724
 
725
- if ( response.selected_table != -1 ) {
726
  table_select.val( response.selected_table );
727
  }
728
 
49
  min: !rtb_pickadate.allow_past,
50
  container: 'body',
51
  firstDay: rtb_pickadate.first_day,
52
+ today: rtb_pickadate.date_today_label,
53
+ clear: rtb_pickadate.date_clear_label,
54
+ close: rtb_pickadate.date_close_label,
55
 
56
  onStart: function() {
57
 
67
  this.set( 'select', date );
68
  }
69
  }
70
+ else if ( jQuery( '.rtb-selected-date' ).length ) {
71
+ var date = new Date( jQuery( '.rtb-selected-date' ).val() );
72
+ if ( Object.prototype.toString.call( date ) === "[object Date]" ) {
73
+ this.set( 'select', date );
74
+ }
75
+ }
76
  }
77
  });
78
 
88
  hiddenName: true,
89
  interval: parseInt( rtb_pickadate.time_interval, 10 ),
90
  container: 'body',
91
+ clear: rtb_pickadate.time_clear_label,
92
 
93
  // Select the value when loaded if a value has been set
94
  onStart: function() {
720
  table_select.find('> option').hide();
721
  table_select.find('> option').attr('disabled', 'disabled');
722
 
723
+ if( 1 > available_tables.length ) {
724
+ displayFieldError( 'table', rtb_booking_form_js_localize.error['no-table-available'] );
725
+ }
726
+ else {
727
+ clearPrevFieldError( 'table' );
728
+ }
729
+
730
  jQuery.each(available_tables, function(index, element) {
731
 
732
  if ( index.indexOf( ',' ) === -1 ) {
739
 
740
  });
741
 
742
+ if ( response.selected_table != -1 ) {
743
  table_select.val( response.selected_table );
744
  }
745
 
includes/Ajax.class.php CHANGED
@@ -125,7 +125,7 @@ if ( !class_exists( 'rtbAJAX' ) ) {
125
  wp_send_json_error(
126
  array(
127
  'error' => 'nobookings',
128
- 'msg' => __( 'No bookings were found for the email address you entered.', 'restaurant-reservations' ),
129
  )
130
  );
131
  }
@@ -807,6 +807,8 @@ if ( !class_exists( 'rtbAJAX' ) ) {
807
  if ( $current_booking->table ) { $valid_tables = array_merge( $valid_tables, $current_booking->table ); }
808
  }
809
 
 
 
810
  if ( isset( $this->party ) ) {
811
 
812
  $possible_combinations = array();
125
  wp_send_json_error(
126
  array(
127
  'error' => 'nobookings',
128
+ 'msg' => esc_html( $rtb_controller->settings->get_setting( 'label-modify-no-bookings-found' ) ),
129
  )
130
  );
131
  }
807
  if ( $current_booking->table ) { $valid_tables = array_merge( $valid_tables, $current_booking->table ); }
808
  }
809
 
810
+ $return_tables = array();
811
+
812
  if ( isset( $this->party ) ) {
813
 
814
  $possible_combinations = array();
includes/Booking.class.php CHANGED
@@ -60,7 +60,6 @@ class rtbBooking {
60
  * @since 0.0.1
61
  */
62
  public function load_wp_post( $post ) {
63
-
64
  // Store post for access to other data if needed by extensions
65
  $this->post = $post;
66
 
@@ -80,6 +79,7 @@ class rtbBooking {
80
  * @since 0.0.1
81
  */
82
  public function load_post_metadata() {
 
83
 
84
  $meta_defaults = array(
85
  'party' => '',
@@ -95,6 +95,7 @@ class rtbBooking {
95
  'receipt_id' => '',
96
  'reminder_sent' => false,
97
  'late_arrival_sent' => false,
 
98
  );
99
 
100
  $meta_defaults = apply_filters( 'rtb_booking_metadata_defaults', $meta_defaults );
@@ -118,6 +119,13 @@ class rtbBooking {
118
  $this->receipt_id = $meta['receipt_id'];
119
  $this->late_arrival_sent = $meta['late_arrival_sent'];
120
  $this->reminder_sent = $meta['reminder_sent'];
 
 
 
 
 
 
 
121
  }
122
 
123
  /**
60
  * @since 0.0.1
61
  */
62
  public function load_wp_post( $post ) {
 
63
  // Store post for access to other data if needed by extensions
64
  $this->post = $post;
65
 
79
  * @since 0.0.1
80
  */
81
  public function load_post_metadata() {
82
+ global $rtb_controller;
83
 
84
  $meta_defaults = array(
85
  'party' => '',
95
  'receipt_id' => '',
96
  'reminder_sent' => false,
97
  'late_arrival_sent' => false,
98
+ 'mc_optin' => false
99
  );
100
 
101
  $meta_defaults = apply_filters( 'rtb_booking_metadata_defaults', $meta_defaults );
119
  $this->receipt_id = $meta['receipt_id'];
120
  $this->late_arrival_sent = $meta['late_arrival_sent'];
121
  $this->reminder_sent = $meta['reminder_sent'];
122
+
123
+ // Did they opt out?
124
+ $optout = $rtb_controller->settings->get_setting( 'mc-optout' );
125
+ // Because mcfrtbInit::reload_booking_meta() does not fire when needed for unknown reason
126
+ if ( $optout != 'no' ) {
127
+ $this->mc_optin = $meta['mc_optin'];
128
+ }
129
  }
130
 
131
  /**
includes/ExportHandler.class.php CHANGED
@@ -267,13 +267,13 @@ class rtbExportHandler {
267
  <label for="ebfrtb-start-date">
268
  <?php esc_html_e( 'Start', 'restaurant-reservations' ); ?>
269
  </label>
270
- <input type="text" name="start_date" id="ebfrtb-start-date">
271
  </div>
272
  <div class="date-end">
273
  <label for="ebfrtb-end-date">
274
  <?php esc_html_e( 'End', 'restaurant-reservations' ); ?>
275
  </label>
276
- <input type="text" name="end_date" id="ebfrtb-end-date">
277
  </div>
278
  </div>
279
  </div>
267
  <label for="ebfrtb-start-date">
268
  <?php esc_html_e( 'Start', 'restaurant-reservations' ); ?>
269
  </label>
270
+ <input type="text" name="start_date" id="ebfrtb-start-date" value="<?php echo ! empty( $_GET['start_date'] ) ? esc_attr( $_GET['start_date'] ) : ''; ?>">
271
  </div>
272
  <div class="date-end">
273
  <label for="ebfrtb-end-date">
274
  <?php esc_html_e( 'End', 'restaurant-reservations' ); ?>
275
  </label>
276
+ <input type="text" name="end_date" id="ebfrtb-end-date" value="<?php echo ! empty( $_GET['end_date'] ) ? esc_attr( $_GET['end_date'] ) : ''; ?>">
277
  </div>
278
  </div>
279
  </div>
includes/MailChimp.class.php CHANGED
@@ -14,9 +14,30 @@ class mcfrtbInit {
14
 
15
  public $api_call_cache = array();
16
 
 
 
17
  public function __construct() {
 
 
 
 
 
 
 
 
 
 
 
18
 
19
- add_action( 'plugins_loaded', array( $this, 'init' ) );
 
 
 
 
 
 
 
 
20
 
21
  }
22
 
@@ -24,10 +45,10 @@ class mcfrtbInit {
24
  * Initialize the plugin and register hooks
25
  */
26
  public function init() {
27
- global $rtb_controller;
28
 
29
  // Initialize the plugin
30
- add_action( 'init', array( $this, 'load_config' ), 9 ); // Load before the settings panel is defined in Restaurant Reservations
 
31
  add_action( 'mcfrtb_list_merge_fields', array( $this, 'maybe_add_location_merge_field' ) );
32
  add_action( 'mcfrtb_list_merge_fields', array( $this, 'maybe_add_merge_options' ) );
33
 
@@ -48,19 +69,6 @@ class mcfrtbInit {
48
  add_action( 'wp_ajax_mcfrtb-subscribe', array( $this, 'subscribe' ) );
49
  add_filter( 'mcfrtb_merge_fields_data', array( $this, 'maybe_send_location_merge_field' ), 10, 3 );
50
  add_filter( 'mcfrtb_merge_fields_data', array( $this, 'maybe_send_merge_fields' ), 10, 3 );
51
-
52
- // Only add the opt-in details with the frontend form
53
- if ( !is_admin() and $rtb_controller->permissions->check_permission( 'mailchimp' ) ) {
54
-
55
- // Add optin checkbox to booking form
56
- add_filter( 'rtb_booking_form_fields', array( $this, 'add_optin_field' ), 10, 2 );
57
-
58
- // Validate the optin request data
59
- add_filter( 'rtb_validate_booking_submission', array( $this, 'validate_optin_request' ) );
60
-
61
- // Enqueue assets to send subscription request
62
- add_filter( 'rtb_insert_booking', array( $this, 'enqueue_subscription_call' ) );
63
- }
64
  }
65
 
66
 
@@ -317,13 +325,60 @@ class mcfrtbInit {
317
  }
318
 
319
  /**
320
- * Validate the optin request data
 
 
321
  */
322
- public function validate_optin_request( $request ) {
 
 
 
 
 
 
 
 
323
 
 
 
 
 
 
 
 
 
 
324
  global $rtb_controller;
325
- if ( $rtb_controller->settings->get_setting( 'mc-optout' ) !== 'no' && !empty( $_POST['mc-optin'] ) && $_POST['mc-optin'] == '1' ) {
326
- $request->mc_optin = true;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
327
  }
328
  }
329
 
@@ -331,20 +386,48 @@ class mcfrtbInit {
331
  * Enqueue some JavaScript to subscribe the user after they've
332
  * booked.
333
  */
334
- public function enqueue_subscription_call( $booking ) {
335
-
336
  global $rtb_controller;
337
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
338
  // Did they opt out?
339
  $optout = $rtb_controller->settings->get_setting( 'mc-optout' );
340
- if ( !$optout && empty( $booking->mc_optin ) ) {
341
- return;
342
  }
343
 
344
  // Do we have a list and email address to make the subscription
345
  $lists = $rtb_controller->settings->get_setting( 'mc-lists' );
346
  if ( empty( $lists['list'] ) || empty( $booking->email ) ) {
347
- return;
 
 
 
 
 
 
 
348
  }
349
 
350
  wp_enqueue_script( 'rtb-mc-subscribe', RTB_PLUGIN_URL . '/assets/js/mailchimp-subscribe.js', array( 'jquery' ), '', true );
@@ -354,16 +437,18 @@ class mcfrtbInit {
354
  array(
355
  'ajax_nonce' => wp_create_nonce( 'rtb-mc-subscribe' ),
356
  'ajax_url' => admin_url( 'admin-ajax.php' ),
357
- 'booking' => $booking,
358
  )
359
  );
360
 
 
361
  }
362
 
363
  /**
364
  * Process a subscription request
365
  */
366
  public function subscribe() {
 
367
 
368
  if ( !check_ajax_referer( 'rtb-mc-subscribe', 'nonce' ) || empty( $_POST['booking'] ) ) {
369
  wp_send_json_error(
@@ -372,23 +457,34 @@ class mcfrtbInit {
372
  'msg' => __( 'The subscription request has been rejected because it does not appear to have come from this site.', 'restaurant-reservations' ),
373
  )
374
  );
375
-
376
  return;
377
  }
378
 
379
- $booking = is_array( $_POST['booking'] ) ? array_map( 'sanitize_text_field', $_POST['booking'] ) : array();
380
 
381
- global $rtb_controller;
 
 
 
 
 
 
 
 
 
 
382
 
383
  // Did they opt out?
384
  $optout = $rtb_controller->settings->get_setting( 'mc-optout' );
385
  if ( $optout != 'no' && empty( $booking['mc_optin'] ) ) {
 
386
  return;
387
  }
388
 
389
  // Do we have a list and email address to make the subscription
390
  $lists = $rtb_controller->settings->get_setting( 'mc-lists' );
391
  if ( empty( $lists['list'] ) || empty( $booking['email'] ) ) {
 
392
  return;
393
  }
394
 
@@ -407,9 +503,17 @@ class mcfrtbInit {
407
 
408
  $params = apply_filters( 'mcfrtb_mailchimp_subscribe_args', $params, $booking );
409
 
410
- $this->load_api( $this->api_key );
411
 
412
- $this->api_call( '/lists/' . $lists['list'] . '/members', 'POST', $params )->send_json_response();
 
 
 
 
 
 
 
 
413
  }
414
 
415
  /**
@@ -500,5 +604,12 @@ class mcfrtbInit {
500
 
501
  return $send;
502
  }
 
 
 
 
 
 
 
503
  }
504
  } // endif;
14
 
15
  public $api_call_cache = array();
16
 
17
+ public $transit_cookie_name = 'rtb-mc-sbscrb';
18
+
19
  public function __construct() {
20
+ global $rtb_controller;
21
+
22
+ add_action( 'init', array( $this, 'init' ) );
23
+
24
+ if ( !is_admin() and $rtb_controller->permissions->check_permission( 'mailchimp' ) ) {
25
+
26
+ // Add optin checkbox to booking form
27
+ add_filter( 'rtb_booking_form_fields', array( $this, 'add_optin_field' ), 10, 2 );
28
+
29
+ // Validate the optin request data
30
+ add_action( 'rtb_validate_booking_submission', array( $this, 'validate_optin_request' ) );
31
 
32
+ // Enqueue assets to send subscription request
33
+ add_filter( 'rtb_insert_booking', array( $this, 'enqueue_subscription_call' ) );
34
+ add_filter( 'init', array( $this, 'enqueue_subscription_call' ) );
35
+
36
+ // Save mc-optin user input value
37
+ add_filter( 'rtb_insert_booking_metadata', array( $this, 'add_booking_meta' ), 10, 2 );
38
+ // Reload meta information
39
+ add_action( 'rtb_booking_load_post_data', array( $this, 'reload_booking_meta' ), 20, 2 );
40
+ }
41
 
42
  }
43
 
45
  * Initialize the plugin and register hooks
46
  */
47
  public function init() {
 
48
 
49
  // Initialize the plugin
50
+ $this->load_config();
51
+
52
  add_action( 'mcfrtb_list_merge_fields', array( $this, 'maybe_add_location_merge_field' ) );
53
  add_action( 'mcfrtb_list_merge_fields', array( $this, 'maybe_add_merge_options' ) );
54
 
69
  add_action( 'wp_ajax_mcfrtb-subscribe', array( $this, 'subscribe' ) );
70
  add_filter( 'mcfrtb_merge_fields_data', array( $this, 'maybe_send_location_merge_field' ), 10, 3 );
71
  add_filter( 'mcfrtb_merge_fields_data', array( $this, 'maybe_send_merge_fields' ), 10, 3 );
 
 
 
 
 
 
 
 
 
 
 
 
 
72
  }
73
 
74
 
325
  }
326
 
327
  /**
328
+ * Validate the optin request data and save on booking object
329
+ * @param rtbBooking $booking Booking object
330
+ * @return void
331
  */
332
+ public function validate_optin_request( $booking ) {
333
+ global $rtb_controller;
334
+
335
+ $booking->mc_optin = false;
336
+
337
+ if ( $rtb_controller->settings->get_setting( 'mc-optout' ) !== 'no' && isset( $_POST['mc-optin'] ) && $_POST['mc-optin'] == '1' ) {
338
+ $booking->mc_optin = true;
339
+ }
340
+ }
341
 
342
+ /**
343
+ * Save mc-optin user selection to booking for future reference
344
+ * @param array $meta Booking meta info
345
+ * @param rtbBooking $booking Booking object
346
+ *
347
+ * @return array $meta array of meta info
348
+ */
349
+ public function add_booking_meta( $meta, $booking )
350
+ {
351
  global $rtb_controller;
352
+
353
+ // Did they opt out?
354
+ $optout = $rtb_controller->settings->get_setting( 'mc-optout' );
355
+
356
+ if ( $optout != 'no' ) {
357
+ $meta['mc_optin'] = $booking->mc_optin;
358
+ }
359
+
360
+ return $meta;
361
+ }
362
+
363
+ /**
364
+ * Reload mailchimp meta data for booking object
365
+ * @param rtbBooking $booking Booking object
366
+ * @param wp_post $post Booking post object
367
+ */
368
+ public function reload_booking_meta( $booking, $post )
369
+ {
370
+ global $rtb_controller;
371
+
372
+ // Did they opt out?
373
+ $optout = $rtb_controller->settings->get_setting( 'mc-optout' );
374
+
375
+ if ( $optout != 'no' ) {
376
+ $booking->mc_optin = false;
377
+ $meta = get_post_meta( $booking->ID, 'rtb', true );
378
+
379
+ if ( is_array( $meta ) && isset( $meta['mc_optin'] ) ) {
380
+ $booking->mc_optin = $meta['mc_optin'];
381
+ }
382
  }
383
  }
384
 
386
  * Enqueue some JavaScript to subscribe the user after they've
387
  * booked.
388
  */
389
+ public function enqueue_subscription_call( $arg = null ) {
 
390
  global $rtb_controller;
391
 
392
+ $transit = null;
393
+ if( null == $arg ) {
394
+ $rtb_mc_sbscrb = isset( $_COOKIE['rtb-mc-sbscrb'] ) ? $_COOKIE['rtb-mc-sbscrb'] : null;
395
+ if( null != $rtb_mc_sbscrb ) {
396
+ $transit = get_transient( $rtb_mc_sbscrb );
397
+ }
398
+
399
+ if( false == $transit ) {
400
+ return $arg;
401
+ }
402
+
403
+ require_once( RTB_PLUGIN_DIR . '/includes/Booking.class.php' );
404
+ $booking = new rtbBooking();
405
+ //Invalid booking
406
+ if( false == $booking->load_post( $transit ) ) {
407
+ return $arg;
408
+ }
409
+ }
410
+ else {
411
+ $booking = $arg;
412
+ }
413
+
414
  // Did they opt out?
415
  $optout = $rtb_controller->settings->get_setting( 'mc-optout' );
416
+ if ( $optout != 'no' && empty( $booking->mc_optin ) ) {
417
+ return $arg;
418
  }
419
 
420
  // Do we have a list and email address to make the subscription
421
  $lists = $rtb_controller->settings->get_setting( 'mc-lists' );
422
  if ( empty( $lists['list'] ) || empty( $booking->email ) ) {
423
+ return $arg;
424
+ }
425
+
426
+ // To later subscribe via JS
427
+ if( null == $transit ) {
428
+ $hash = $this->get_booking_hash( $booking );
429
+ setcookie( $this->transit_cookie_name, $hash, time() + DAY_IN_SECONDS, '/' );
430
+ set_transient( $hash, $booking->ID, DAY_IN_SECONDS );
431
  }
432
 
433
  wp_enqueue_script( 'rtb-mc-subscribe', RTB_PLUGIN_URL . '/assets/js/mailchimp-subscribe.js', array( 'jquery' ), '', true );
437
  array(
438
  'ajax_nonce' => wp_create_nonce( 'rtb-mc-subscribe' ),
439
  'ajax_url' => admin_url( 'admin-ajax.php' ),
440
+ 'booking' => $booking->ID,
441
  )
442
  );
443
 
444
+ return $arg;
445
  }
446
 
447
  /**
448
  * Process a subscription request
449
  */
450
  public function subscribe() {
451
+ global $rtb_controller;
452
 
453
  if ( !check_ajax_referer( 'rtb-mc-subscribe', 'nonce' ) || empty( $_POST['booking'] ) ) {
454
  wp_send_json_error(
457
  'msg' => __( 'The subscription request has been rejected because it does not appear to have come from this site.', 'restaurant-reservations' ),
458
  )
459
  );
 
460
  return;
461
  }
462
 
463
+ $booking_id = sanitize_text_field( $_POST['booking'] );
464
 
465
+ require_once( RTB_PLUGIN_DIR . '/includes/Booking.class.php' );
466
+ $booking = new rtbBooking();
467
+ $this->load_api( $this->api_key );
468
+
469
+ // invalid booking
470
+ if( false == $booking->load_post( $booking_id ) ) {
471
+ $this->mc->send_json_response();
472
+ return;
473
+ }
474
+
475
+ $booking = (array) $booking;
476
 
477
  // Did they opt out?
478
  $optout = $rtb_controller->settings->get_setting( 'mc-optout' );
479
  if ( $optout != 'no' && empty( $booking['mc_optin'] ) ) {
480
+ $this->mc->send_json_response();
481
  return;
482
  }
483
 
484
  // Do we have a list and email address to make the subscription
485
  $lists = $rtb_controller->settings->get_setting( 'mc-lists' );
486
  if ( empty( $lists['list'] ) || empty( $booking['email'] ) ) {
487
+ $this->mc->send_json_response();
488
  return;
489
  }
490
 
503
 
504
  $params = apply_filters( 'mcfrtb_mailchimp_subscribe_args', $params, $booking );
505
 
506
+ $mc = $this->api_call( '/lists/' . $lists['list'] . '/members', 'POST', $params );
507
 
508
+ // Prevent further attempts to subscribe
509
+ $hash = $this->get_booking_hash( $booking );
510
+ if( ( $transit = get_transient( $hash ) ) !== false ) {
511
+ unset( $_COOKIE[ $this->transit_cookie_name ] );
512
+ setcookie( $this->transit_cookie_name, null, -1, '/' );
513
+ delete_transient( $hash );
514
+ }
515
+
516
+ $mc->send_json_response();
517
  }
518
 
519
  /**
604
 
605
  return $send;
606
  }
607
+
608
+ // Helper for cookie and transient to re-attempt subsribe
609
+ public function get_booking_hash( $booking )
610
+ {
611
+ $booking = (array) $booking;
612
+ return md5( $booking['ID'].'-'.$booking['email'] );
613
+ }
614
  }
615
  } // endif;
includes/MultipleLocations.class.php CHANGED
@@ -93,6 +93,7 @@ if ( ! class_exists( 'rtbMultipleLocations', false ) ) {
93
  add_filter( 'rtb_settings_page', array( $this, 'maybe_add_location_settings' ) );
94
  add_action( 'admin_init', array( $this, 'remove_location_select_setting' ) );
95
  add_filter( 'rtb_booking_form_init', array( $this, 'pass_location_data_to_js' ) );
 
96
  }
97
 
98
  /**
@@ -269,6 +270,7 @@ if ( ! class_exists( 'rtbMultipleLocations', false ) ) {
269
  * @since 1.6
270
  */
271
  public function add_location_field( $fields, $request = null, $args = array() ) {
 
272
 
273
  // If the location is specified, don't add a field.
274
  // A hidden field is added automatically in rtb_print_booking_form()
@@ -304,7 +306,7 @@ if ( ! class_exists( 'rtbMultipleLocations', false ) ) {
304
  $placement = array_merge(
305
  array(
306
  'location' => array(
307
- 'title' => __( 'Location', 'restaurant-reservations' ),
308
  'request_input' => empty( $request->location ) ? '' : $request->location,
309
  'callback' => 'rtb_print_form_select_field',
310
  'callback_args' => array(
@@ -1018,7 +1020,7 @@ if ( ! class_exists( 'rtbMultipleLocations', false ) ) {
1018
  ];
1019
 
1020
  // Specific location
1021
- $location_term = $shortcode_arg['location'] ? get_term( $shortcode_arg['location'] ) : false;
1022
  if( $location_term and ! is_wp_error( $location_term ) ) {
1023
  $locations[$location_term->term_id] = $location_term->slug;
1024
 
@@ -1070,5 +1072,27 @@ if ( ! class_exists( 'rtbMultipleLocations', false ) ) {
1070
 
1071
  return $shortcode_arg;
1072
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1073
  }
1074
  }
93
  add_filter( 'rtb_settings_page', array( $this, 'maybe_add_location_settings' ) );
94
  add_action( 'admin_init', array( $this, 'remove_location_select_setting' ) );
95
  add_filter( 'rtb_booking_form_init', array( $this, 'pass_location_data_to_js' ) );
96
+ add_filter( 'rtb-payment-summary-data', array( $this, 'add_payment_summary' ), 10, 2);
97
  }
98
 
99
  /**
270
  * @since 1.6
271
  */
272
  public function add_location_field( $fields, $request = null, $args = array() ) {
273
+ global $rtb_controller;
274
 
275
  // If the location is specified, don't add a field.
276
  // A hidden field is added automatically in rtb_print_booking_form()
306
  $placement = array_merge(
307
  array(
308
  'location' => array(
309
+ 'title' => esc_html( $rtb_controller->settings->get_setting( 'label-location' ) ),
310
  'request_input' => empty( $request->location ) ? '' : $request->location,
311
  'callback' => 'rtb_print_form_select_field',
312
  'callback_args' => array(
1020
  ];
1021
 
1022
  // Specific location
1023
+ $location_term = ! empty( $shortcode_arg['location'] ) ? get_term( $shortcode_arg['location'] ) : false;
1024
  if( $location_term and ! is_wp_error( $location_term ) ) {
1025
  $locations[$location_term->term_id] = $location_term->slug;
1026
 
1072
 
1073
  return $shortcode_arg;
1074
  }
1075
+
1076
+ /**
1077
+ * Add location information in Payment Summary list on checkout
1078
+ * @param array $summary_data [label -> data] list
1079
+ * @param rtbBooking $booking current booking
1080
+ */
1081
+ public function add_payment_summary( $summary_data, $booking )
1082
+ {
1083
+ global $rtb_controller;
1084
+
1085
+ if( property_exists( $booking, 'location' ) && ! empty( $booking->location ) ) {
1086
+ $loc_term = get_term( $booking->location, $rtb_controller->locations->location_taxonomy, OBJECT );
1087
+ if ( !$loc_term || is_a( $loc_term, 'WP_Error' ) ) {
1088
+ unset( $summary_data['location'] );
1089
+ }
1090
+ else {
1091
+ $summary_data['location'] = $loc_term->name;
1092
+ }
1093
+ }
1094
+
1095
+ return $summary_data;
1096
+ }
1097
  }
1098
  }
includes/Notification.class.php CHANGED
@@ -101,10 +101,10 @@ abstract class rtbNotification {
101
  '{date}' => $this->booking->format_date( $this->booking->date ),
102
  '{phone}' => $this->booking->phone,
103
  '{message}' => $this->booking->message,
104
- '{bookings_link}' => '<a href="' . admin_url( 'admin.php?page=rtb-bookings&status=pending' ) . '">' . __( 'View pending bookings', 'restaurant-reservations' ) . '</a>',
105
- '{cancel_link}' => '<a href="' . esc_attr( $cancellation_url ) . '">' . __( 'Cancel booking', 'restaurant-reservations' ) . '</a>',
106
- '{confirm_link}' => '<a href="' . admin_url( 'admin.php?page=rtb-bookings&rtb-quicklink=confirm&booking=' . esc_attr( $this->booking->ID ) ) . '">' . __( 'Confirm this booking', 'restaurant-reservations' ) . '</a>',
107
- '{close_link}' => '<a href="' . admin_url( 'admin.php?page=rtb-bookings&rtb-quicklink=close&booking=' . esc_attr( $this->booking->ID ) ) . '">' . __( 'Reject this booking', 'restaurant-reservations' ) . '</a>',
108
  '{site_name}' => get_bloginfo( 'name' ),
109
  '{site_link}' => '<a href="' . home_url( '/' ) . '">' . get_bloginfo( 'name' ) . '</a>',
110
  '{current_time}' => date_i18n( get_option( 'date_format' ), current_time( 'timestamp' ) ) . ' ' . date_i18n( get_option( 'time_format' ), current_time( 'timestamp' ) ),
101
  '{date}' => $this->booking->format_date( $this->booking->date ),
102
  '{phone}' => $this->booking->phone,
103
  '{message}' => $this->booking->message,
104
+ '{bookings_link}' => '<a href="' . admin_url( 'admin.php?page=rtb-bookings&status=pending' ) . '">' . esc_html( $rtb_controller->settings->get_setting( 'label-bookings-link-tag' ) ) . '</a>',
105
+ '{cancel_link}' => '<a href="' . esc_attr( $cancellation_url ) . '">' . esc_html( $rtb_controller->settings->get_setting( 'label-cancel-link-tag' ) ) . '</a>',
106
+ '{confirm_link}' => '<a href="' . admin_url( 'admin.php?page=rtb-bookings&rtb-quicklink=confirm&booking=' . esc_attr( $this->booking->ID ) ) . '">' . esc_html( $rtb_controller->settings->get_setting( 'label-confirm-link-tag' ) ) . '</a>',
107
+ '{close_link}' => '<a href="' . admin_url( 'admin.php?page=rtb-bookings&rtb-quicklink=close&booking=' . esc_attr( $this->booking->ID ) ) . '">' . esc_html( $rtb_controller->settings->get_setting( 'label-close-link-tag' ) ) . '</a>',
108
  '{site_name}' => get_bloginfo( 'name' ),
109
  '{site_link}' => '<a href="' . home_url( '/' ) . '">' . get_bloginfo( 'name' ) . '</a>',
110
  '{current_time}' => date_i18n( get_option( 'date_format' ), current_time( 'timestamp' ) ) . ' ' . date_i18n( get_option( 'time_format' ), current_time( 'timestamp' ) ),
includes/Notifications.class.php CHANGED
@@ -99,7 +99,16 @@ class rtbNotifications {
99
 
100
  if ( empty( $rtb_controller->settings->get_setting( 'daily-summary-address' ) ) ) { return; }
101
 
102
- if ( get_option( 'rtb-daily-summary-send-date' ) == date( 'Y-m-d' ) ) { return; }
 
 
 
 
 
 
 
 
 
103
 
104
  require_once( RTB_PLUGIN_DIR . '/includes/Booking.class.php' );
105
 
@@ -123,38 +132,47 @@ class rtbNotifications {
123
  ob_start();
124
 
125
  ?>
126
- <?php _e('Please find a summary of today\'s reservations in the table below.', 'restaurant-reservations'); ?>
127
-
128
- <table class='rtb-view-bookings-table'>
129
- <thead>
130
- <tr>
131
- <th><?php _e('Time', 'restaurant-reservations'); ?></th>
132
- <th><?php _e('Party', 'restaurant-reservations'); ?></th>
133
- <th><?php _e('Name', 'restaurant-reservations'); ?></th>
134
- <th><?php _e('Email', 'restaurant-reservations'); ?></th>
135
- <th><?php _e('Phone', 'restaurant-reservations'); ?></th>
136
- <?php if ( $display_table ) {?> <th><?php _e('Table', 'restaurant-reservations'); ?></th><?php } ?>
137
- <th><?php _e('Status', 'restaurant-reservations'); ?></th>
138
- <th><?php _e('Details', 'restaurant-reservations'); ?></th>
139
- </tr>
140
- </thead>
141
- <tbody>
142
- <?php foreach ( $bookings as $booking ) { ?>
143
- <?php $booking_object = new rtbBooking(); ?>
144
- <?php $booking_object->load_post( $booking ); ?>
145
  <tr>
146
- <td><?php echo ( new DateTime( $booking_object->date ) )->format( 'H:i:s' ); ?></td>
147
- <td><?php echo $booking_object->party; ?></td>
148
- <td><?php echo $booking_object->name; ?></td>
149
- <td><?php echo $booking_object->email; ?></td>
150
- <td><?php echo $booking_object->phone; ?></td>
151
- <?php if ( $display_table ) { $table = implode(', ', $booking_object->table ); echo "<td>{$table}</td>"; } ?>
152
- <td><?php echo $rtb_controller->cpts->booking_statuses[$booking_object->post_status]['label'] ?></td>
153
- <td><?php echo apply_filters( 'rtb_bookings_table_column_details', $booking_object->message, $booking_object ); ?></td>
154
  </tr>
155
- <?php } ?>
156
- </tbody>
157
- </table>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
158
 
159
  <?php
160
 
@@ -172,7 +190,9 @@ class rtbNotifications {
172
 
173
  if ( $notification->send_notification() ) {
174
 
175
- update_option( 'rtb-daily-summary-send-date', date( 'Y-m-d' ) );
 
 
176
  }
177
  }
178
  }
99
 
100
  if ( empty( $rtb_controller->settings->get_setting( 'daily-summary-address' ) ) ) { return; }
101
 
102
+ $last_send_datetime = new DateTime( get_option( 'rtb-daily-summary-send-date' ), wp_timezone() );
103
+
104
+ $last_send_datetime->add( new DateInterval( 'P1D' ) );
105
+
106
+ $send_time_hours = substr( $rtb_controller->settings->get_setting( 'daily-summary-address-send-time' ), 0, strpos( $rtb_controller->settings->get_setting( 'daily-summary-address-send-time' ), ':' ) );
107
+ $send_time_minutes = substr( $rtb_controller->settings->get_setting( 'daily-summary-address-send-time' ), strpos( $rtb_controller->settings->get_setting( 'daily-summary-address-send-time' ), ':' ) + 1 );
108
+
109
+ $next_send_time = $last_send_datetime->format('U') + $send_time_hours * 60*60 + $send_time_minutes * 60;
110
+
111
+ if ( $next_send_time > time() ) { return; }
112
 
113
  require_once( RTB_PLUGIN_DIR . '/includes/Booking.class.php' );
114
 
132
  ob_start();
133
 
134
  ?>
135
+
136
+ <?php if ( empty( $bookings ) ) { ?>
137
+
138
+ <p><?php _e( 'There are currently no bookings today.', 'restaurant-reservations' ); ?></p>
139
+
140
+ <?php } else { ?>
141
+
142
+ <p><?php _e( 'Please find a summary of today\'s reservations in the table below.', 'restaurant-reservations' ); ?></p>
143
+
144
+ <table class='rtb-view-bookings-table'>
145
+ <thead>
 
 
 
 
 
 
 
 
146
  <tr>
147
+ <th><?php _e('Time', 'restaurant-reservations'); ?></th>
148
+ <th><?php _e('Party', 'restaurant-reservations'); ?></th>
149
+ <th><?php _e('Name', 'restaurant-reservations'); ?></th>
150
+ <th><?php _e('Email', 'restaurant-reservations'); ?></th>
151
+ <th><?php _e('Phone', 'restaurant-reservations'); ?></th>
152
+ <?php if ( $display_table ) {?> <th><?php _e('Table', 'restaurant-reservations'); ?></th><?php } ?>
153
+ <th><?php _e('Status', 'restaurant-reservations'); ?></th>
154
+ <th><?php _e('Details', 'restaurant-reservations'); ?></th>
155
  </tr>
156
+ </thead>
157
+ <tbody>
158
+ <?php foreach ( $bookings as $booking ) { ?>
159
+ <?php $booking_object = new rtbBooking(); ?>
160
+ <?php $booking_object->load_post( $booking ); ?>
161
+ <tr>
162
+ <td><?php echo ( new DateTime( $booking_object->date ) )->format( 'H:i:s' ); ?></td>
163
+ <td><?php echo $booking_object->party; ?></td>
164
+ <td><?php echo $booking_object->name; ?></td>
165
+ <td><?php echo $booking_object->email; ?></td>
166
+ <td><?php echo $booking_object->phone; ?></td>
167
+ <?php if ( $display_table ) { $table = implode(', ', $booking_object->table ); echo "<td>{$table}</td>"; } ?>
168
+ <td><?php echo $rtb_controller->cpts->booking_statuses[$booking_object->post_status]['label'] ?></td>
169
+ <td><?php echo apply_filters( 'rtb_bookings_table_column_details', $booking_object->message, $booking_object ); ?></td>
170
+ </tr>
171
+ <?php } ?>
172
+ </tbody>
173
+ </table>
174
+
175
+ <?php } ?>
176
 
177
  <?php
178
 
190
 
191
  if ( $notification->send_notification() ) {
192
 
193
+ $now = new DateTime( 'now', wp_timezone() );
194
+
195
+ update_option( 'rtb-daily-summary-send-date', $now->format( 'Y-m-d' ) );
196
  }
197
  }
198
  }
includes/PaymentGatewayPayPal.class.php CHANGED
@@ -35,9 +35,9 @@ class rtbPaymentGatewayPayPal implements rtbPaymentGateway {
35
  *
36
  * @return rtbPaymentGatewayPayPal instance
37
  */
38
- public static function get_instance()
39
- {
40
- if( ! isset( self::$_instance ) ) {
41
  self::$_instance = new rtbPaymentGatewayPayPal();
42
  }
43
 
@@ -45,6 +45,7 @@ class rtbPaymentGatewayPayPal implements rtbPaymentGateway {
45
  }
46
 
47
  public function register_hooks() {
 
48
  // If there's an IPN request, add our setup function to potentially handle it
49
  if ( isset($_POST['ipn_track_id']) ) {
50
  add_action( 'init', [$this, 'handle_ipn'], 11 );
@@ -55,8 +56,7 @@ class rtbPaymentGatewayPayPal implements rtbPaymentGateway {
55
  }
56
  }
57
 
58
- public function print_payment_form( $booking )
59
- {
60
  global $rtb_controller;
61
 
62
  // Define the form's action parameter
@@ -83,7 +83,7 @@ class rtbPaymentGatewayPayPal implements rtbPaymentGateway {
83
  <input type='hidden' name='currency_code' value='{$currency}' />
84
  <input type='hidden' name='return' value='{$booking_page}' />
85
  <input type='hidden' name='notify_url' value='{$notify_url}' />
86
- <input type='submit' class='submit-button' value='Pay via PayPal' />
87
  </form>
88
  ";
89
  }
35
  *
36
  * @return rtbPaymentGatewayPayPal instance
37
  */
38
+ public static function get_instance() {
39
+
40
+ if ( ! isset( self::$_instance ) ) {
41
  self::$_instance = new rtbPaymentGatewayPayPal();
42
  }
43
 
45
  }
46
 
47
  public function register_hooks() {
48
+
49
  // If there's an IPN request, add our setup function to potentially handle it
50
  if ( isset($_POST['ipn_track_id']) ) {
51
  add_action( 'init', [$this, 'handle_ipn'], 11 );
56
  }
57
  }
58
 
59
+ public function print_payment_form( $booking ) {
 
60
  global $rtb_controller;
61
 
62
  // Define the form's action parameter
83
  <input type='hidden' name='currency_code' value='{$currency}' />
84
  <input type='hidden' name='return' value='{$booking_page}' />
85
  <input type='hidden' name='notify_url' value='{$notify_url}' />
86
+ <input type='submit' class='submit-button' value='" . esc_attr( $rtb_controller->settings->get_setting( 'label-pay-via-paypal' ) ) . "' />
87
  </form>
88
  ";
89
  }
includes/PaymentGatewayStripe.class.php CHANGED
@@ -141,22 +141,30 @@ class rtbPaymentGatewayStripe implements rtbPaymentGateway {
141
  <?php if( $SCA ) { ?>
142
 
143
  <div class='form-row'>
144
- <label><?php _e('Card Detail', 'restaurant-reservations'); ?></label>
 
 
145
  <span id="cardElement"></span>
146
  </div>
147
 
148
  <?php } else { ?>
149
 
150
  <div class='form-row'>
151
- <label><?php _e('Card Number', 'restaurant-reservations'); ?></label>
 
 
152
  <input type='text' size='20' autocomplete='off' data-stripe='card_number'/>
153
  </div>
154
  <div class='form-row'>
155
- <label><?php _e('CVC', 'restaurant-reservations'); ?></label>
 
 
156
  <input type='text' size='4' autocomplete='off' data-stripe='card_cvc'/>
157
  </div>
158
  <div class='form-row'>
159
- <label><?php _e('Expiration (MM/YYYY)', 'restaurant-reservations'); ?></label>
 
 
160
  <?php echo $cc_exp_single_field; ?>
161
  </div>
162
  <input type='hidden' name='action' value='rtb_stripe_booking_payment'/>
@@ -167,11 +175,11 @@ class rtbPaymentGatewayStripe implements rtbPaymentGateway {
167
  <?php } ?>
168
 
169
  <p class="stripe-payment-help-text">
170
- <?php _e( 'Please wait. Do not refresh until the button enables or the page reloads.', 'restaurant-reservations' ); ?>
171
  </p>
172
 
173
  <button type='submit' id='stripe-submit' <?php echo $btn_disabled; ?>>
174
- <?php _e( 'Make Deposit', 'restaurant-reservations'); ?>
175
  </button>
176
 
177
  </form>
@@ -693,8 +701,7 @@ class rtbPaymentGatewayStripe implements rtbPaymentGateway {
693
  * Get Stripe secret
694
  * @return string
695
  */
696
- public function get_secret()
697
- {
698
  global $rtb_controller;
699
 
700
  return 'test' == $rtb_controller->settings->get_setting( 'rtb-stripe-mode' )
@@ -702,12 +709,11 @@ class rtbPaymentGatewayStripe implements rtbPaymentGateway {
702
  : $rtb_controller->settings->get_setting( 'rtb-stripe-live-secret' );
703
  }
704
 
705
- public function payment_summary()
706
- {
707
  global $rtb_controller;
708
 
709
- if( $rtb_controller->settings->get_setting('rtb-stripe-sca') && $rtb_controller->settings->get_setting( 'rtb-stripe-hold' ) ) {
710
- echo '<p class="stripe-payment-hold-msg">' . __( 'We are only placing a hold for the above amount on your payment instrument. You will be charged later.', 'restaurant-reservations' ) . '</p>';
711
  }
712
  }
713
  }
141
  <?php if( $SCA ) { ?>
142
 
143
  <div class='form-row'>
144
+ <label>
145
+ <?php echo esc_html( $rtb_controller->settings->get_setting( 'label-card-detail' ) ); ?>
146
+ </label>
147
  <span id="cardElement"></span>
148
  </div>
149
 
150
  <?php } else { ?>
151
 
152
  <div class='form-row'>
153
+ <label>
154
+ <?php echo esc_html( $rtb_controller->settings->get_setting( 'label-card-number' ) ); ?>
155
+ </label>
156
  <input type='text' size='20' autocomplete='off' data-stripe='card_number'/>
157
  </div>
158
  <div class='form-row'>
159
+ <label>
160
+ <?php echo esc_html( $rtb_controller->settings->get_setting( 'label-cvc' ) ); ?>
161
+ </label>
162
  <input type='text' size='4' autocomplete='off' data-stripe='card_cvc'/>
163
  </div>
164
  <div class='form-row'>
165
+ <label>
166
+ <?php echo esc_html( $rtb_controller->settings->get_setting( 'label-expiration' ) ); ?>
167
+ </label>
168
  <?php echo $cc_exp_single_field; ?>
169
  </div>
170
  <input type='hidden' name='action' value='rtb_stripe_booking_payment'/>
175
  <?php } ?>
176
 
177
  <p class="stripe-payment-help-text">
178
+ <?php echo esc_html( $rtb_controller->settings->get_setting( 'label-please-wait' ) ); ?>
179
  </p>
180
 
181
  <button type='submit' id='stripe-submit' <?php echo $btn_disabled; ?>>
182
+ <?php echo esc_html( $rtb_controller->settings->get_setting( 'label-make-deposit' ) ); ?>
183
  </button>
184
 
185
  </form>
701
  * Get Stripe secret
702
  * @return string
703
  */
704
+ public function get_secret() {
 
705
  global $rtb_controller;
706
 
707
  return 'test' == $rtb_controller->settings->get_setting( 'rtb-stripe-mode' )
709
  : $rtb_controller->settings->get_setting( 'rtb-stripe-live-secret' );
710
  }
711
 
712
+ public function payment_summary() {
 
713
  global $rtb_controller;
714
 
715
+ if ( $rtb_controller->settings->get_setting('rtb-stripe-sca') && $rtb_controller->settings->get_setting( 'rtb-stripe-hold' ) ) {
716
+ echo '<p class="stripe-payment-hold-msg">' . esc_html( $rtb_controller->settings->get_setting( 'label-deposit-placing-hold' ) ) . '</p>';
717
  }
718
  }
719
  }
includes/PaymentManager.class.php CHANGED
@@ -170,8 +170,9 @@ class rtbPaymentManager {
170
  * @param stdObject $request
171
  * @param array $args
172
  */
173
- public function add_field_booking_form_gateway( $fields, $request, $args )
174
- {
 
175
  if ( ! $this->is_payment_enabled() ) {
176
  return $fields;
177
  }
@@ -191,7 +192,7 @@ class rtbPaymentManager {
191
  // Field names are prefixed with "rtb-" while rendering field's HTML
192
  'payment-gateway' => [
193
  'required' => true,
194
- 'title' => __( 'Payment Gateway', 'restaurant-reservations' ),
195
  'callback' => 'rtb_print_form_select_field',
196
  'callback_args' => [
197
  'options' => $this->get_enabled_gateway_list(),
@@ -302,9 +303,59 @@ class rtbPaymentManager {
302
  : $this->booking->calculate_deposit() . $_gs( 'rtb-stripe-currency-symbol' );
303
  ?>
304
 
305
- <h2>
306
- <?php echo __( 'Deposit Required: ', 'restaurant-reservations' ) . esc_html( $payment_amount ); ?>
307
  </h2>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
308
  <?php
309
 
310
  do_action( 'rtb_payment_summary' );
170
  * @param stdObject $request
171
  * @param array $args
172
  */
173
+ public function add_field_booking_form_gateway( $fields, $request, $args ) {
174
+ global $rtb_controller;
175
+
176
  if ( ! $this->is_payment_enabled() ) {
177
  return $fields;
178
  }
192
  // Field names are prefixed with "rtb-" while rendering field's HTML
193
  'payment-gateway' => [
194
  'required' => true,
195
+ 'title' => esc_html( $rtb_controller->settings->get_setting( 'label-payment-gateway' ) ),
196
  'callback' => 'rtb_print_form_select_field',
197
  'callback_args' => [
198
  'options' => $this->get_enabled_gateway_list(),
303
  : $this->booking->calculate_deposit() . $_gs( 'rtb-stripe-currency-symbol' );
304
  ?>
305
 
306
+ <h2 class="summary-title">
307
+ <?php echo esc_html( $rtb_controller->settings->get_setting( 'label-deposit-required' ) ) . ' ' . esc_html( $payment_amount ); ?>
308
  </h2>
309
+ <dl class="summary-detail">
310
+ <?php
311
+ $fields_to_omit = apply_filters( 'rtb-payment-summary-omit-fields', ['payment-gateway'] );
312
+ $summary_data = [];
313
+
314
+ // Retrieve the form fields
315
+ $fieldSets = $rtb_controller->settings->get_booking_form_fields();
316
+
317
+ foreach ( $fieldSets as $fieldset => $list ) {
318
+ foreach ( $list['fields'] as $slug => $field_data ) {
319
+ if( property_exists( $this->booking, $slug ) ) {
320
+ // Tables are saved as arrays
321
+ if( is_array( $this->booking->{$slug} ) || is_object( $this->booking->{$slug} ) ) continue;
322
+ $summary_data[ $slug ] = esc_html( $this->booking->{$slug} );
323
+ }
324
+ }
325
+ }
326
+
327
+ // Tables are not avialable always
328
+ unset( $summary_data['table'] );
329
+ if( $rtb_controller->settings->get_setting( 'enable-tables' ) ) {
330
+ $summary_data['table'] = esc_html( implode( ',', $this->booking->table ) );
331
+ }
332
+
333
+ // Format date/time
334
+ $summary_data['date / time'] = ( new DateTime( $summary_data['date'], wp_timezone() ) )
335
+ ->format(
336
+ get_option('date_format')
337
+ .' '.
338
+ get_option('time_format')
339
+ );
340
+ unset( $summary_data['date'] );
341
+
342
+ // omit certain fields
343
+ foreach ($fields_to_omit as $value) {
344
+ unset( $summary_data[ $value ] );
345
+ }
346
+
347
+ $summary_data = apply_filters( 'rtb-payment-summary-data', $summary_data, $this->booking );
348
+
349
+ foreach( $summary_data as $dt => $dd ) {
350
+ ?>
351
+ <dt><?php echo ucwords( $dt ); ?>:</dt>
352
+ <dd><?php echo $dd; ?></dd>
353
+ <?php
354
+ }
355
+ ?>
356
+
357
+ </dl>
358
+
359
  <?php
360
 
361
  do_action( 'rtb_payment_summary' );
includes/Permissions.class.php CHANGED
@@ -16,6 +16,7 @@ class rtbPermissions {
16
  $this->plugin_permissions = array(
17
  "premium" => 2,
18
  "advanced" => 2,
 
19
  "styling" => 2,
20
  "import" => 2,
21
  "export" => 2,
16
  $this->plugin_permissions = array(
17
  "premium" => 2,
18
  "advanced" => 2,
19
+ "labelling" => 2,
20
  "styling" => 2,
21
  "import" => 2,
22
  "export" => 2,
includes/Settings.class.php CHANGED
@@ -27,6 +27,11 @@ class rtbSettings {
27
  */
28
  public $premium_permissions = array();
29
 
 
 
 
 
 
30
  /**
31
  * Currencies accepted for deposits
32
  */
@@ -368,9 +373,9 @@ class rtbSettings {
368
  public function check_permissions() {
369
  global $rtb_controller;
370
 
371
- $this->premium_permissions['view_bookings'] = array();
372
  if ( ! $rtb_controller->permissions->check_permission('premium_view_bookings') ) {
373
- $this->premium_permissions['view_bookings'] = array(
374
  'disabled' => true,
375
  'disabled_image' => '#',
376
  'purchase_link' => 'https://www.fivestarplugins.com/plugins/five-star-restaurant-reservations/'
@@ -386,18 +391,18 @@ class rtbSettings {
386
  );
387
  }
388
 
389
- $this->premium_permissions['seat_restrictions'] = array();
390
  if ( ! $rtb_controller->permissions->check_permission('premium_seat_restrictions') ) {
391
- $this->premium_permissions['seat_restrictions'] = array(
392
  'disabled' => true,
393
  'disabled_image' => '#',
394
  'purchase_link' => 'https://www.fivestarplugins.com/plugins/five-star-restaurant-reservations/'
395
  );
396
  }
397
 
398
- $this->premium_permissions['table_restrictions'] = array();
399
  if ( ! $rtb_controller->permissions->check_permission('premium_table_restrictions') ) {
400
- $this->premium_permissions['table_restrictions'] = array(
401
  'disabled' => true,
402
  'disabled_image' => '#',
403
  'purchase_link' => 'https://www.fivestarplugins.com/plugins/five-star-restaurant-reservations/',
@@ -452,6 +457,15 @@ class rtbSettings {
452
  );
453
  }
454
 
 
 
 
 
 
 
 
 
 
455
  $this->premium_permissions = apply_filters( 'rtb_settings_check_permissions', $this->premium_permissions );
456
  }
457
 
@@ -471,6 +485,8 @@ class rtbSettings {
471
  'time-format' => _x( 'h:i A', 'Default time format for display. Must match formatting rules at http://amsul.ca/pickadate.js/time/#formats', 'restaurant-reservations' ),
472
  'time-interval' => _x( '30', 'Default interval in minutes when selecting a time.', 'restaurant-reservations' ),
473
 
 
 
474
  // Payment defaults
475
  'rtb-deposit-applicable' => 'always',
476
  'rtb-paypal-email' => get_option( 'admin_email' ),
@@ -485,11 +501,87 @@ class rtbSettings {
485
  'ebfrtb-pdf-lib' => 'mpdf',
486
  'ebfrtb-csv-date-format' => get_option( 'date_format' ),
487
 
 
 
 
 
 
 
 
 
 
 
 
488
  'table-sections' => array(),
489
 
490
  // MailChimp defaults
491
  'mc-optprompt' => __( 'Sign up for our mailing list.', 'restaurant-reservations' ),
492
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
493
  // Email address where admin notifications should be sent
494
  'admin-email-address' => get_option( 'admin_email' ),
495
  'ultimate-purchase-email' => get_option( 'admin_email' ),
@@ -686,6 +778,28 @@ If you were not the one to cancel this booking, please contact us.
686
  $this->currency_options = apply_filters( 'rtb_payments_currency_options', $this->currency_options );
687
 
688
  $this->payment_gateway_options = $rtb_controller->payment_manager->get_available_gateway_list();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
689
  }
690
 
691
  /**
@@ -758,7 +872,7 @@ If you were not the one to cancel this booking, please contact us.
758
  require_once( RTB_PLUGIN_DIR . '/lib/simple-admin-pages/simple-admin-pages.php' );
759
  $sap = sap_initialize_library(
760
  $args = array(
761
- 'version' => '2.6.5',
762
  'theme' => 'blue',
763
  'lib_url' => RTB_PLUGIN_URL . '/lib/simple-admin-pages/',
764
  )
@@ -783,6 +897,7 @@ If you were not the one to cancel this booking, please contact us.
783
  'id' => 'rtb-schedule-tab',
784
  'title' => __( 'Booking Schedule', 'restaurant-reservations' ),
785
  'is_tab' => true,
 
786
  )
787
  );
788
 
@@ -974,6 +1089,7 @@ If you were not the one to cancel this booking, please contact us.
974
  'id' => 'rtb-basic',
975
  'title' => __( 'Basic', 'restaurant-reservations' ),
976
  'is_tab' => true,
 
977
  )
978
  );
979
 
@@ -1351,6 +1467,7 @@ If you were not the one to cancel this booking, please contact us.
1351
  'id' => 'rtb-notifications-tab',
1352
  'title' => __( 'Notifications', 'restaurant-reservations' ),
1353
  'is_tab' => true,
 
1354
  )
1355
  );
1356
 
@@ -1374,6 +1491,17 @@ If you were not the one to cancel this booking, please contact us.
1374
  )
1375
  );
1376
 
 
 
 
 
 
 
 
 
 
 
 
1377
  $sap->add_section(
1378
  'rtb-settings',
1379
  array(
@@ -1655,27 +1783,6 @@ If you were not the one to cancel this booking, please contact us.
1655
  )
1656
  );
1657
 
1658
-
1659
-
1660
- $sap->add_section(
1661
- 'rtb-settings',
1662
- array(
1663
- 'id' => 'rtb-payments-tab',
1664
- 'title' => __( 'Payments', 'restaurant-reservations' ),
1665
- 'is_tab' => true,
1666
- )
1667
- );
1668
-
1669
-
1670
- //Create a tab for export settings
1671
- $sap->add_section(
1672
- 'rtb-settings',
1673
- array(
1674
- 'id' => 'rtb-export-tab',
1675
- 'title' => _x( 'Export', 'Label for the Export tab in the settings page', 'restaurant-reservations' ),
1676
- 'is_tab' => true,
1677
- )
1678
- );
1679
 
1680
  /**
1681
  * Premium options preview only
@@ -1687,6 +1794,7 @@ If you were not the one to cancel this booking, please contact us.
1687
  'id' => 'rtb-advanced-tab',
1688
  'title' => __( 'Advanced', 'restaurant-reservations' ),
1689
  'is_tab' => true,
 
1690
  'show_submit_button' => $this->show_submit_button( 'premium' )
1691
  )
1692
  );
@@ -1706,6 +1814,7 @@ If you were not the one to cancel this booking, please contact us.
1706
  'id' => 'rtb-payments-tab',
1707
  'title' => __( 'Payments', 'restaurant-reservations' ),
1708
  'is_tab' => true,
 
1709
  'show_submit_button' => $this->show_submit_button( 'payments' )
1710
  )
1711
  );
@@ -1725,6 +1834,7 @@ If you were not the one to cancel this booking, please contact us.
1725
  'id' => 'rtb-export-tab',
1726
  'title' => __( 'Export', 'restaurant-reservations' ),
1727
  'is_tab' => true,
 
1728
  'show_submit_button' => $this->show_submit_button( 'export' )
1729
  )
1730
  );
@@ -1736,6 +1846,26 @@ If you were not the one to cancel this booking, please contact us.
1736
  'callback' => $this->premium_info( 'export' )
1737
  )
1738
  );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1739
 
1740
  // "Styling" Tab
1741
  $sap->add_section(
@@ -1744,6 +1874,7 @@ If you were not the one to cancel this booking, please contact us.
1744
  'id' => 'rtb-styling-tab',
1745
  'title' => __( 'Styling', 'restaurant-reservations' ),
1746
  'is_tab' => true,
 
1747
  'show_submit_button' => $this->show_submit_button( 'styling' )
1748
  )
1749
  );
@@ -1869,6 +2000,22 @@ If you were not the one to cancel this booking, please contact us.
1869
 
1870
  break;
1871
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1872
  case 'styling':
1873
 
1874
  $content = '
@@ -1961,10 +2108,10 @@ If you were not the one to cancel this booking, please contact us.
1961
  }
1962
 
1963
  if( ! empty( $table_section_name ) ) {
1964
- $option = $table->number . ' - ' . $table_section_name . ' (min. ' . $table->min_people . '/max. ' . $table->max_people . ')';
1965
  }
1966
  else {
1967
- $option = $table->number . ' (min. ' . $table->min_people . '/max. ' . $table->max_people . ')';
1968
  }
1969
 
1970
  $options[ $table->number ] = $option;
@@ -2064,22 +2211,22 @@ If you were not the one to cancel this booking, please contact us.
2064
 
2065
  // Reservation details fieldset
2066
  'reservation' => array(
2067
- 'legend' => __( 'Book a table', 'restaurant-reservations' ),
2068
  'fields' => array(
2069
  'date' => array(
2070
- 'title' => __( 'Date', 'restaurant-reservations' ),
2071
  'request_input' => empty( $request->request_date ) ? '' : $request->request_date,
2072
  'callback' => 'rtb_print_form_text_field',
2073
  'required' => true,
2074
  ),
2075
  'time' => array(
2076
- 'title' => __( 'Time', 'restaurant-reservations' ),
2077
  'request_input' => empty( $request->request_time ) ? '' : $request->request_time,
2078
  'callback' => 'rtb_print_form_text_field',
2079
  'required' => true,
2080
  ),
2081
  'party' => array(
2082
- 'title' => __( 'Party', 'restaurant-reservations' ),
2083
  'request_input' => empty( $request->party ) ? '' : $request->party,
2084
  'callback' => 'rtb_print_form_select_field',
2085
  'callback_args' => array(
@@ -2092,16 +2239,16 @@ If you were not the one to cancel this booking, please contact us.
2092
 
2093
  // Contact details fieldset
2094
  'rtb-contact' => array(
2095
- 'legend' => __( 'Contact Details', 'restaurant-reservations' ),
2096
  'fields' => array(
2097
  'name' => array(
2098
- 'title' => __( 'Name', 'restaurant-reservations' ),
2099
  'request_input' => empty( $request->name ) ? '' : $request->name,
2100
  'callback' => 'rtb_print_form_text_field',
2101
  'required' => true,
2102
  ),
2103
  'email' => array(
2104
- 'title' => __( 'Email', 'restaurant-reservations' ),
2105
  'request_input' => empty( $request->email ) ? '' : $request->email,
2106
  'callback' => 'rtb_print_form_text_field',
2107
  'callback_args' => array(
@@ -2110,7 +2257,7 @@ If you were not the one to cancel this booking, please contact us.
2110
  'required' => true,
2111
  ),
2112
  'phone' => array(
2113
- 'title' => __( 'Phone', 'restaurant-reservations' ),
2114
  'request_input' => empty( $request->phone ) ? '' : $request->phone,
2115
  'callback' => 'rtb_print_form_text_field',
2116
  'callback_args' => array(
@@ -2118,12 +2265,12 @@ If you were not the one to cancel this booking, please contact us.
2118
  ),
2119
  ),
2120
  'add-message' => array(
2121
- 'title' => __( 'Add a Message', 'restaurant-reservations' ),
2122
  'request_input' => '',
2123
  'callback' => 'rtb_print_form_message_link',
2124
  ),
2125
  'message' => array(
2126
- 'title' => __( 'Message', 'restaurant-reservations' ),
2127
  'request_input' => empty( $request->message ) ? '' : $request->message,
2128
  'callback' => 'rtb_print_form_textarea_field',
2129
  ),
@@ -2159,7 +2306,7 @@ If you were not the one to cancel this booking, please contact us.
2159
  if ( $enable_tables ) {
2160
 
2161
  $fields['reservation']['fields']['table'] = array(
2162
- 'title' => __( 'Table(s)', 'restaurant-reservations' ),
2163
  /**
2164
  * Raw, unprocessed value because processed value is an array
2165
  */
27
  */
28
  public $premium_permissions = array();
29
 
30
+ /**
31
+ * Columns which can be selected for the front-end view bookings form
32
+ */
33
+ public $view_bookings_column_options = array();
34
+
35
  /**
36
  * Currencies accepted for deposits
37
  */
373
  public function check_permissions() {
374
  global $rtb_controller;
375
 
376
+ $this->premium_permissions['premium_view_bookings'] = array();
377
  if ( ! $rtb_controller->permissions->check_permission('premium_view_bookings') ) {
378
+ $this->premium_permissions['premium_view_bookings'] = array(
379
  'disabled' => true,
380
  'disabled_image' => '#',
381
  'purchase_link' => 'https://www.fivestarplugins.com/plugins/five-star-restaurant-reservations/'
391
  );
392
  }
393
 
394
+ $this->premium_permissions['premium_seat_restrictions'] = array();
395
  if ( ! $rtb_controller->permissions->check_permission('premium_seat_restrictions') ) {
396
+ $this->premium_permissions['premium_seat_restrictions'] = array(
397
  'disabled' => true,
398
  'disabled_image' => '#',
399
  'purchase_link' => 'https://www.fivestarplugins.com/plugins/five-star-restaurant-reservations/'
400
  );
401
  }
402
 
403
+ $this->premium_permissions['premium_table_restrictions'] = array();
404
  if ( ! $rtb_controller->permissions->check_permission('premium_table_restrictions') ) {
405
+ $this->premium_permissions['premium_table_restrictions'] = array(
406
  'disabled' => true,
407
  'disabled_image' => '#',
408
  'purchase_link' => 'https://www.fivestarplugins.com/plugins/five-star-restaurant-reservations/',
457
  );
458
  }
459
 
460
+ $this->premium_permissions['labelling'] = array();
461
+ if ( ! $rtb_controller->permissions->check_permission('labelling') ) {
462
+ $this->premium_permissions['labelling'] = array(
463
+ 'disabled' => true,
464
+ 'disabled_image'=> '#',
465
+ 'purchase_link' => 'https://www.fivestarplugins.com/plugins/five-star-restaurant-reservations/'
466
+ );
467
+ }
468
+
469
  $this->premium_permissions = apply_filters( 'rtb_settings_check_permissions', $this->premium_permissions );
470
  }
471
 
485
  'time-format' => _x( 'h:i A', 'Default time format for display. Must match formatting rules at http://amsul.ca/pickadate.js/time/#formats', 'restaurant-reservations' ),
486
  'time-interval' => _x( '30', 'Default interval in minutes when selecting a time.', 'restaurant-reservations' ),
487
 
488
+ 'daily-summary-address-send-time' => '00:00',
489
+
490
  // Payment defaults
491
  'rtb-deposit-applicable' => 'always',
492
  'rtb-paypal-email' => get_option( 'admin_email' ),
501
  'ebfrtb-pdf-lib' => 'mpdf',
502
  'ebfrtb-csv-date-format' => get_option( 'date_format' ),
503
 
504
+ 'rtb-view-bookings-columns' => array(
505
+ 'time',
506
+ 'party',
507
+ 'name',
508
+ 'email',
509
+ 'phone',
510
+ 'table',
511
+ 'status',
512
+ 'details',
513
+ ),
514
+
515
  'table-sections' => array(),
516
 
517
  // MailChimp defaults
518
  'mc-optprompt' => __( 'Sign up for our mailing list.', 'restaurant-reservations' ),
519
 
520
+ //Labels
521
+ 'label-book-table' => __( 'Book a table', 'restaurant-reservations' ),
522
+ 'label-location' => __( 'Location', 'restaurant-reservations' ),
523
+ 'label-date' => __( 'Date', 'restaurant-reservations' ),
524
+ 'label-date-today' => __( 'Today', 'restaurant-reservations' ),
525
+ 'label-date-clear' => __( 'Clear', 'restaurant-reservations' ),
526
+ 'label-date-close' => __( 'Close', 'restaurant-reservations' ),
527
+ 'label-time' => __( 'Time', 'restaurant-reservations' ),
528
+ 'label-time-clear' => __( 'Clear', 'restaurant-reservations' ),
529
+ 'label-no-times-available' => __( 'There are currently no times available for booking on your selected date.', 'restaurant-reservations' ),
530
+ 'label-party' => __( 'Party', 'restaurant-reservations' ),
531
+ 'label-table-s' => __( 'Table(s)', 'restaurant-reservations' ),
532
+ 'label-table-min' => __( 'min.', 'restaurant-reservations' ),
533
+ 'label-table-max' => __( 'max.', 'restaurant-reservations' ),
534
+ 'label-contact-details' => __( 'Contact Details', 'restaurant-reservations' ),
535
+ 'label-name' => __( 'Name', 'restaurant-reservations' ),
536
+ 'label-email' => __( 'Email', 'restaurant-reservations' ),
537
+ 'label-phone' => __( 'Phone', 'restaurant-reservations' ),
538
+ 'label-add-message' => __( 'Add a Message', 'restaurant-reservations' ),
539
+ 'label-message' => __( 'Message', 'restaurant-reservations' ),
540
+ 'label-request-booking' => __( 'Request Booking', 'restaurant-reservations' ),
541
+
542
+ 'label-payment-gateway' => __( 'Payment Gateway', 'restaurant-reservations' ),
543
+ 'label-proceed-to-deposit' => __( 'Proceed to Deposit', 'restaurant-reservations' ),
544
+ 'label-request-or-deposit' => __( 'Request Booking or Proceed to Deposit', 'restaurant-reservations' ),
545
+ 'label-pay-via-paypal' => __( 'Pay via PayPal', 'restaurant-reservations' ),
546
+ 'label-deposit-required' => __( 'Deposit Required: ', 'restaurant-reservations' ),
547
+ 'label-deposit-placing-hold' => __( 'We are only placing a hold for the above amount on your payment instrument. You will be charged later.', 'restaurant-reservations' ),
548
+ 'label-card-detail' => __( 'Card Detail', 'restaurant-reservations' ),
549
+ 'label-card-number' => __( 'Card Number', 'restaurant-reservations' ),
550
+ 'label-cvc' => __( 'CVC', 'restaurant-reservations' ),
551
+ 'label-expiration' => __( 'Expiration (MM/YYYY)', 'restaurant-reservations' ),
552
+ 'label-please-wait' => __( 'Please wait. Do not refresh until the button enables or the page reloads.', 'restaurant-reservations' ),
553
+ 'label-make-deposit' => __( 'Make Deposit', 'restaurant-reservations' ),
554
+
555
+ 'label-modify-reservation' => __( 'Want to modify your reservation?', 'restaurant-reservations' ),
556
+ 'label-modify-make-reservation' => __( 'Make a reservation', 'restaurant-reservations' ),
557
+ 'label-modify-using-form' => __( 'Use the form below to modify your reservation', 'restaurant-reservations' ),
558
+ 'label-modify-form-email' => __( 'Email:', 'restaurant-reservations' ),
559
+ 'label-modify-find-reservations' => __( 'Find Reservations', 'restaurant-reservations' ),
560
+ 'label-modify-no-bookings-found' => __( 'No bookings were found for the email address you entered.', 'restaurant-reservations' ),
561
+ 'label-modify-cancel' => __( 'Cancel', 'restaurant-reservations' ),
562
+ 'label-modify-cancelled' => __( 'Cancelled', 'restaurant-reservations' ),
563
+ 'label-modify-deposit' => __( 'Deposit', 'restaurant-reservations' ),
564
+ 'label-modify-guest' => __( 'guest', 'restaurant-reservations' ),
565
+ 'label-modify-guests' => __( 'guests', 'restaurant-reservations' ),
566
+
567
+ 'label-view-arrived' => __( 'Arrived', 'restaurant-reservations' ),
568
+ 'label-view-time' => __( 'Time', 'restaurant-reservations' ),
569
+ 'label-view-party' => __( 'Party', 'restaurant-reservations' ),
570
+ 'label-view-name' => __( 'Name', 'restaurant-reservations' ),
571
+ 'label-view-email' => __( 'Email', 'restaurant-reservations' ),
572
+ 'label-view-phone' => __( 'Phone', 'restaurant-reservations' ),
573
+ 'label-view-table' => __( 'Table', 'restaurant-reservations' ),
574
+ 'label-view-status' => __( 'Status', 'restaurant-reservations' ),
575
+ 'label-view-details' => __( 'Details', 'restaurant-reservations' ),
576
+ 'label-view-set-status-arrived' => __( 'Set reservation status to \'Arrived\'?', 'restaurant-reservations' ),
577
+ 'label-view-arrived-yes' => __( 'Yes', 'restaurant-reservations' ),
578
+ 'label-view-arrived-no' => __( 'No', 'restaurant-reservations' ),
579
+
580
+ 'label-cancel-link-tag' => __( 'Cancel booking', 'restaurant-reservations' ),
581
+ 'label-bookings-link-tag' => __( 'View pending bookings', 'restaurant-reservations' ),
582
+ 'label-confirm-link-tag' => __( 'Confirm this booking', 'restaurant-reservations' ),
583
+ 'label-close-link-tag' => __( 'Reject this booking', 'restaurant-reservations' ),
584
+
585
  // Email address where admin notifications should be sent
586
  'admin-email-address' => get_option( 'admin_email' ),
587
  'ultimate-purchase-email' => get_option( 'admin_email' ),
778
  $this->currency_options = apply_filters( 'rtb_payments_currency_options', $this->currency_options );
779
 
780
  $this->payment_gateway_options = $rtb_controller->payment_manager->get_available_gateway_list();
781
+
782
+ $view_bookings_column_options = array(
783
+ 'time' => __( 'Time', 'restaurant-reservations' ),
784
+ 'party' => __( 'Party', 'restaurant-reservations' ),
785
+ 'name' => __( 'Name', 'restaurant-reservations' ),
786
+ 'email' => __( 'Email', 'restaurant-reservations' ),
787
+ 'phone' => __( 'Phone', 'restaurant-reservations' ),
788
+ 'table' => __( 'Table', 'restaurant-reservations' ),
789
+ 'status' => __( 'Status', 'restaurant-reservations' ),
790
+ 'details' => __( 'Details', 'restaurant-reservations' ),
791
+ );
792
+
793
+ $fields = rtb_get_custom_fields();
794
+
795
+ foreach ( $fields as $field ) {
796
+
797
+ if ( $field->type == 'fieldset' ) { continue; }
798
+
799
+ $view_bookings_column_options[ $field->slug ] = $field->title;
800
+ }
801
+
802
+ $this->view_bookings_column_options = $view_bookings_column_options;
803
  }
804
 
805
  /**
872
  require_once( RTB_PLUGIN_DIR . '/lib/simple-admin-pages/simple-admin-pages.php' );
873
  $sap = sap_initialize_library(
874
  $args = array(
875
+ 'version' => '2.6.7',
876
  'theme' => 'blue',
877
  'lib_url' => RTB_PLUGIN_URL . '/lib/simple-admin-pages/',
878
  )
897
  'id' => 'rtb-schedule-tab',
898
  'title' => __( 'Booking Schedule', 'restaurant-reservations' ),
899
  'is_tab' => true,
900
+ 'rank' => 1,
901
  )
902
  );
903
 
1089
  'id' => 'rtb-basic',
1090
  'title' => __( 'Basic', 'restaurant-reservations' ),
1091
  'is_tab' => true,
1092
+ 'rank' => 2,
1093
  )
1094
  );
1095
 
1467
  'id' => 'rtb-notifications-tab',
1468
  'title' => __( 'Notifications', 'restaurant-reservations' ),
1469
  'is_tab' => true,
1470
+ 'rank' => 4,
1471
  )
1472
  );
1473
 
1491
  )
1492
  );
1493
 
1494
+ $sap->add_setting(
1495
+ 'rtb-settings',
1496
+ 'rtb-notifications-daily-summary',
1497
+ 'time',
1498
+ array(
1499
+ 'id' => 'daily-summary-address-send-time',
1500
+ 'title' => __( 'Summary Email Send Time', 'restaurant-reservations' ),
1501
+ 'description' => __( 'What time should the summary email be sent at? This is based on your WordPress timezone setting.', 'restaurant-reservations' ),
1502
+ )
1503
+ );
1504
+
1505
  $sap->add_section(
1506
  'rtb-settings',
1507
  array(
1783
  )
1784
  );
1785
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1786
 
1787
  /**
1788
  * Premium options preview only
1794
  'id' => 'rtb-advanced-tab',
1795
  'title' => __( 'Advanced', 'restaurant-reservations' ),
1796
  'is_tab' => true,
1797
+ 'rank' => 3,
1798
  'show_submit_button' => $this->show_submit_button( 'premium' )
1799
  )
1800
  );
1814
  'id' => 'rtb-payments-tab',
1815
  'title' => __( 'Payments', 'restaurant-reservations' ),
1816
  'is_tab' => true,
1817
+ 'rank' => 5,
1818
  'show_submit_button' => $this->show_submit_button( 'payments' )
1819
  )
1820
  );
1834
  'id' => 'rtb-export-tab',
1835
  'title' => __( 'Export', 'restaurant-reservations' ),
1836
  'is_tab' => true,
1837
+ 'rank' => 8,
1838
  'show_submit_button' => $this->show_submit_button( 'export' )
1839
  )
1840
  );
1846
  'callback' => $this->premium_info( 'export' )
1847
  )
1848
  );
1849
+
1850
+ // "Labelling" Tab
1851
+ $sap->add_section(
1852
+ 'rtb-settings',
1853
+ array(
1854
+ 'id' => 'rtb-labelling-tab',
1855
+ 'title' => __( 'Labelling', 'restaurant-reservations' ),
1856
+ 'is_tab' => true,
1857
+ 'rank' => 7,
1858
+ 'show_submit_button' => $this->show_submit_button( 'labelling' )
1859
+ )
1860
+ );
1861
+ $sap->add_section(
1862
+ 'rtb-settings',
1863
+ array(
1864
+ 'id' => 'rtb-labelling-tab-body',
1865
+ 'tab' => 'rtb-labelling-tab',
1866
+ 'callback' => $this->premium_info( 'labelling' )
1867
+ )
1868
+ );
1869
 
1870
  // "Styling" Tab
1871
  $sap->add_section(
1874
  'id' => 'rtb-styling-tab',
1875
  'title' => __( 'Styling', 'restaurant-reservations' ),
1876
  'is_tab' => true,
1877
+ 'rank' => 6,
1878
  'show_submit_button' => $this->show_submit_button( 'styling' )
1879
  )
1880
  );
2000
 
2001
  break;
2002
 
2003
+ case 'labelling':
2004
+
2005
+ $content = '
2006
+ <div class="rtb-settings-preview">
2007
+ <h2>' . __( 'Labelling', 'restaurant-reservations' ) . '<span>' . __( 'Premium', 'restaurant-reservations' ) . '</span></h2>
2008
+ <p>' . __( 'The labelling options let you change the wording of the different labels that appear on the front end of the plugin. You can use this to translate them, customize the wording for your purpose, etc.', 'restaurant-reservations' ) . '</p>
2009
+ <div class="rtb-settings-preview-images">
2010
+ <img src="' . RTB_PLUGIN_URL . '/assets/img/premium-screenshots/labelling1.png" alt="RTB labelling screenshot one" />
2011
+ <img src="' . RTB_PLUGIN_URL . '/assets/img/premium-screenshots/labelling2.png" alt="RTB labelling screenshot two" />
2012
+ </div>
2013
+ ' . $premium_features . '
2014
+ </div>
2015
+ ';
2016
+
2017
+ break;
2018
+
2019
  case 'styling':
2020
 
2021
  $content = '
2108
  }
2109
 
2110
  if( ! empty( $table_section_name ) ) {
2111
+ $option = $table->number . ' - ' . $table_section_name . ' (' . $this->get_setting( 'label-table-min' ) . ' ' . $table->min_people . '/' . $this->get_setting( 'label-table-max' ) . ' ' . $table->max_people . ')';
2112
  }
2113
  else {
2114
+ $option = $table->number . ' (' . $this->get_setting( 'label-table-min' ) . ' ' . $table->min_people . '/' . $this->get_setting( 'label-table-max' ) . ' ' . $table->max_people . ')';
2115
  }
2116
 
2117
  $options[ $table->number ] = $option;
2211
 
2212
  // Reservation details fieldset
2213
  'reservation' => array(
2214
+ 'legend' => esc_html( $rtb_controller->settings->get_setting( 'label-book-table' ) ),
2215
  'fields' => array(
2216
  'date' => array(
2217
+ 'title' => esc_html( $rtb_controller->settings->get_setting( 'label-date' ) ),
2218
  'request_input' => empty( $request->request_date ) ? '' : $request->request_date,
2219
  'callback' => 'rtb_print_form_text_field',
2220
  'required' => true,
2221
  ),
2222
  'time' => array(
2223
+ 'title' => esc_html( $rtb_controller->settings->get_setting( 'label-time' ) ),
2224
  'request_input' => empty( $request->request_time ) ? '' : $request->request_time,
2225
  'callback' => 'rtb_print_form_text_field',
2226
  'required' => true,
2227
  ),
2228
  'party' => array(
2229
+ 'title' => esc_html( $rtb_controller->settings->get_setting( 'label-party' ) ),
2230
  'request_input' => empty( $request->party ) ? '' : $request->party,
2231
  'callback' => 'rtb_print_form_select_field',
2232
  'callback_args' => array(
2239
 
2240
  // Contact details fieldset
2241
  'rtb-contact' => array(
2242
+ 'legend' => esc_html( $rtb_controller->settings->get_setting( 'label-contact-details' ) ),
2243
  'fields' => array(
2244
  'name' => array(
2245
+ 'title' => esc_html( $rtb_controller->settings->get_setting( 'label-name' ) ),
2246
  'request_input' => empty( $request->name ) ? '' : $request->name,
2247
  'callback' => 'rtb_print_form_text_field',
2248
  'required' => true,
2249
  ),
2250
  'email' => array(
2251
+ 'title' => esc_html( $rtb_controller->settings->get_setting( 'label-email' ) ),
2252
  'request_input' => empty( $request->email ) ? '' : $request->email,
2253
  'callback' => 'rtb_print_form_text_field',
2254
  'callback_args' => array(
2257
  'required' => true,
2258
  ),
2259
  'phone' => array(
2260
+ 'title' => esc_html( $rtb_controller->settings->get_setting( 'label-phone' ) ),
2261
  'request_input' => empty( $request->phone ) ? '' : $request->phone,
2262
  'callback' => 'rtb_print_form_text_field',
2263
  'callback_args' => array(
2265
  ),
2266
  ),
2267
  'add-message' => array(
2268
+ 'title' => esc_html( $rtb_controller->settings->get_setting( 'label-add-message' ) ),
2269
  'request_input' => '',
2270
  'callback' => 'rtb_print_form_message_link',
2271
  ),
2272
  'message' => array(
2273
+ 'title' => esc_html( $rtb_controller->settings->get_setting( 'label-message' ) ),
2274
  'request_input' => empty( $request->message ) ? '' : $request->message,
2275
  'callback' => 'rtb_print_form_textarea_field',
2276
  ),
2306
  if ( $enable_tables ) {
2307
 
2308
  $fields['reservation']['fields']['table'] = array(
2309
+ 'title' => esc_html( $rtb_controller->settings->get_setting( 'label-table-s' ) ),
2310
  /**
2311
  * Raw, unprocessed value because processed value is an array
2312
  */
includes/integrations/business-profile.php CHANGED
@@ -97,7 +97,9 @@ function rtb_bp_print_booking_link( $location = false ) {
97
  if ( bpfwp_get_display( 'show_booking_link' ) ) :
98
  ?>
99
  <div class="bp-booking">
100
- <a href="<?php echo esc_url( get_permalink( $booking_page ) ); ?>"<?php if ( rtb_bp_is_schema_type_compatible( $schema_type ) ) : ?> itemprop="acceptsReservations"<?php endif; ?>><?php _e( 'Book a table', 'restaurant-reservations' ); ?></a>
 
 
101
  </div>
102
  <?php
103
  endif;
97
  if ( bpfwp_get_display( 'show_booking_link' ) ) :
98
  ?>
99
  <div class="bp-booking">
100
+ <a href="<?php echo esc_url( get_permalink( $booking_page ) ); ?>"<?php if ( rtb_bp_is_schema_type_compatible( $schema_type ) ) : ?> itemprop="acceptsReservations"<?php endif; ?>>
101
+ <?php echo esc_html( $rtb_controller->settings->get_setting( 'label-book-table' ) ); ?>
102
+ </a>
103
  </div>
104
  <?php
105
  endif;
includes/template-functions.php CHANGED
@@ -165,7 +165,7 @@ function rtb_print_booking_form( $args = array() )
165
  ->set_booking( $booking )
166
  ->print_payment_summary()
167
  ->print_payment_form();
168
- ?> <div class="booking-payment-wrapper"> <?php
169
 
170
  elseif ( isset($_GET['bookingCancelled']) and $_GET['bookingCancelled'] == 'success') : ?>
171
  <div class="rtb-message">
@@ -174,14 +174,22 @@ function rtb_print_booking_form( $args = array() )
174
  <?php else : ?>
175
 
176
  <?php if ( $rtb_controller->settings->get_setting( 'allow-cancellations' ) ) : ?>
177
- <div class="rtb-modification-toggle"><?php _e( 'Want to modify your reservation?', 'restaurant-reservations' ); ?></div>
 
 
178
  <div class="rtb-clear"></div>
179
  <form class="rtb-modification-form rtb-hidden">
180
- <div><?php _e( 'Use the form below to modify your reservation', 'restaurant-reservations' ); ?></div>
181
- <label for="rtb-modification-email"><?php _e( 'Email:', 'restaurant-reservations' ); ?></label>
 
 
 
 
182
  <input type="email" name="rtb_modification_email" />
183
  <div class="rtb-clear"></div>
184
- <div class="rtb-find-reservation-button"><?php _e( 'Find Reservations', 'restaurant-reservations' ); ?></div>
 
 
185
  <div class="rtb-clear"></div>
186
  <div class="rtb-bookings-results"></div>
187
  </form>
@@ -194,6 +202,10 @@ function rtb_print_booking_form( $args = array() )
194
  <input type="hidden" name="rtb-location" value="<?php echo absint( $args['location'] ); ?>">
195
  <?php endif; ?>
196
 
 
 
 
 
197
  <?php do_action( 'rtb_booking_form_before_fields' ); ?>
198
 
199
  <?php foreach( $fields as $fieldset => $contents ) :
@@ -236,9 +248,9 @@ function rtb_print_booking_form( $args = array() )
236
  <?php
237
  $button_text = $rtb_controller->settings->get_setting( 'require-deposit' )
238
  ? ( $rtb_controller->settings->get_setting( 'rtb-deposit-applicable' ) == 'always'
239
- ? __( 'Proceed to Deposit', 'restaurant-reservations' )
240
- : __( 'Request Booking or Proceed to Deposit', 'restaurant-reservations' ) )
241
- : __( 'Request Booking', 'restaurant-reservations' );
242
 
243
  $button = sprintf(
244
  '<button type="submit">%s</button>',
@@ -343,6 +355,10 @@ function rtb_print_view_bookings_form( $args = array() ) {
343
 
344
  $display_table = $rtb_controller->permissions->check_permission( 'premium_table_restrictions' ) && $rtb_controller->settings->get_setting( 'enable-tables' );
345
 
 
 
 
 
346
  ob_start();
347
 
348
  ?>
@@ -366,12 +382,12 @@ function rtb_print_view_bookings_form( $args = array() ) {
366
 
367
  <div class='rtb-view-bookings-form-confirmation-div rtb-hidden'>
368
  <div class='rtb-view-bookings-form-confirmation-div-inside'>
369
- <div id="rtb-view-bookings-form-close">x</div>
370
  <div class='rtb-view-bookings-form-confirmation-div-title'>
371
- <?php _e("Set reservation status to 'Arrived'?", 'restaurant-reservations'); ?>
372
  </div>
373
- <div class='rtb-view-bookings-form-confirmation-accept'><?php _e("Yes", 'restaurant-reservations'); ?></div>
374
- <div class='rtb-view-bookings-form-confirmation-decline'><?php _e("No", 'restaurant-reservations'); ?></div>
375
  </div>
376
  </div>
377
  <div class='rtb-view-bookings-form-confirmation-background-div rtb-hidden'></div>
@@ -379,15 +395,21 @@ function rtb_print_view_bookings_form( $args = array() ) {
379
  <table class='rtb-view-bookings-table'>
380
  <thead>
381
  <tr>
382
- <?php if ( $rtb_controller->settings->get_setting( 'view-bookings-arrivals' ) ) {?> <th><?php _e('Arrived', 'restaurant-reservations'); ?></th><?php } ?>
383
- <th><?php _e('Time', 'restaurant-reservations'); ?></th>
384
- <th><?php _e('Party', 'restaurant-reservations'); ?></th>
385
- <th><?php _e('Name', 'restaurant-reservations'); ?></th>
386
- <th><?php _e('Email', 'restaurant-reservations'); ?></th>
387
- <th><?php _e('Phone', 'restaurant-reservations'); ?></th>
388
- <?php if ( $display_table ) {?> <th><?php _e('Table', 'restaurant-reservations'); ?></th><?php } ?>
389
- <th><?php _e('Status', 'restaurant-reservations'); ?></th>
390
- <th><?php _e('Details', 'restaurant-reservations'); ?></th>
 
 
 
 
 
 
391
  </tr>
392
  </thead>
393
  <tbody>
@@ -400,14 +422,26 @@ function rtb_print_view_bookings_form( $args = array() ) {
400
  <?php else : ?><td><input type='checkbox' class='rtb-edit-view-booking' checked disabled /></td>
401
  <?php endif; ?>
402
  <?php } ?>
403
- <td><?php echo ( new DateTime( $booking_object->date, wp_timezone() ) )->format( 'H:i:s' ); ?></td>
404
- <td><?php echo $booking_object->party; ?></td>
405
- <td><?php echo $booking_object->name; ?></td>
406
- <td><?php echo $booking_object->email; ?></td>
407
- <td><?php echo $booking_object->phone; ?></td>
408
- <?php if ( $display_table ) { $table = implode(', ', $booking_object->table ); echo "<td>{$table}</td>"; } ?>
409
- <td><?php echo $rtb_controller->cpts->booking_statuses[$booking_object->post_status]['label'] ?></td>
410
- <td><?php echo apply_filters( 'rtb_bookings_table_column_details', $booking_object->message, $booking_object ); ?></td>
 
 
 
 
 
 
 
 
 
 
 
 
411
  </tr>
412
  <?php } ?>
413
  </tbody>
@@ -497,6 +531,10 @@ function rtb_enqueue_assets() {
497
  'time_interval' => $rtb_controller->settings->get_setting( 'time-interval' ),
498
  'first_day' => $rtb_controller->settings->get_setting( 'week-start' ),
499
  'allow_past' => is_admin() && current_user_can( 'manage_bookings' ),
 
 
 
 
500
  )
501
  )
502
  );
165
  ->set_booking( $booking )
166
  ->print_payment_summary()
167
  ->print_payment_form();
168
+ ?> </div> <!-- booking-payment-wrapper --> <?php
169
 
170
  elseif ( isset($_GET['bookingCancelled']) and $_GET['bookingCancelled'] == 'success') : ?>
171
  <div class="rtb-message">
174
  <?php else : ?>
175
 
176
  <?php if ( $rtb_controller->settings->get_setting( 'allow-cancellations' ) ) : ?>
177
+ <div class="rtb-modification-toggle">
178
+ <?php echo esc_html( $rtb_controller->settings->get_setting( 'label-modify-reservation' ) ); ?>
179
+ </div>
180
  <div class="rtb-clear"></div>
181
  <form class="rtb-modification-form rtb-hidden">
182
+ <div>
183
+ <?php echo esc_html( $rtb_controller->settings->get_setting( 'label-modify-using-form' ) ); ?>
184
+ </div>
185
+ <label for="rtb-modification-email">
186
+ <?php echo esc_html( $rtb_controller->settings->get_setting( 'label-modify-form-email' ) ); ?>
187
+ </label>
188
  <input type="email" name="rtb_modification_email" />
189
  <div class="rtb-clear"></div>
190
+ <div class="rtb-find-reservation-button">
191
+ <?php echo esc_html( $rtb_controller->settings->get_setting( 'label-modify-find-reservations' ) ); ?>
192
+ </div>
193
  <div class="rtb-clear"></div>
194
  <div class="rtb-bookings-results"></div>
195
  </form>
202
  <input type="hidden" name="rtb-location" value="<?php echo absint( $args['location'] ); ?>">
203
  <?php endif; ?>
204
 
205
+ <?php if ( ! empty( $_GET['selected_date'] ) ) { ?>
206
+ <input type='hidden' class='rtb-selected-date' value='<?php echo esc_attr( $_GET['selected_date'] ); ?>' />
207
+ <?php } ?>
208
+
209
  <?php do_action( 'rtb_booking_form_before_fields' ); ?>
210
 
211
  <?php foreach( $fields as $fieldset => $contents ) :
248
  <?php
249
  $button_text = $rtb_controller->settings->get_setting( 'require-deposit' )
250
  ? ( $rtb_controller->settings->get_setting( 'rtb-deposit-applicable' ) == 'always'
251
+ ? esc_html( $rtb_controller->settings->get_setting( 'label-proceed-to-deposit' ) )
252
+ : esc_html( $rtb_controller->settings->get_setting( 'label-request-or-deposit' ) ) )
253
+ : esc_html( $rtb_controller->settings->get_setting( 'label-request-booking' ) );
254
 
255
  $button = sprintf(
256
  '<button type="submit">%s</button>',
355
 
356
  $display_table = $rtb_controller->permissions->check_permission( 'premium_table_restrictions' ) && $rtb_controller->settings->get_setting( 'enable-tables' );
357
 
358
+ $view_bookings_columns = $rtb_controller->settings->get_setting( 'rtb-view-bookings-columns' );
359
+
360
+ $custom_fields = rtb_get_custom_fields();
361
+
362
  ob_start();
363
 
364
  ?>
382
 
383
  <div class='rtb-view-bookings-form-confirmation-div rtb-hidden'>
384
  <div class='rtb-view-bookings-form-confirmation-div-inside'>
385
+ <div id="rtb-view-bookings-form-close"><span>x</span></div>
386
  <div class='rtb-view-bookings-form-confirmation-div-title'>
387
+ <?php echo esc_html( $rtb_controller->settings->get_setting( 'label-view-set-status-arrived' ) ); ?>
388
  </div>
389
+ <div class='rtb-view-bookings-form-confirmation-accept'><?php echo esc_html( $rtb_controller->settings->get_setting( 'label-view-arrived-yes' ) ); ?></div>
390
+ <div class='rtb-view-bookings-form-confirmation-decline'><?php echo esc_html( $rtb_controller->settings->get_setting( 'label-view-arrived-no' ) ); ?></div>
391
  </div>
392
  </div>
393
  <div class='rtb-view-bookings-form-confirmation-background-div rtb-hidden'></div>
395
  <table class='rtb-view-bookings-table'>
396
  <thead>
397
  <tr>
398
+ <?php if ( $rtb_controller->settings->get_setting( 'view-bookings-arrivals' ) ) {?> <th><?php echo esc_html( $rtb_controller->settings->get_setting( 'label-view-arrived' ) ); ?></th><?php } ?>
399
+ <?php if ( in_array( 'time', $view_bookings_columns ) ) {?><th><?php echo esc_html( $rtb_controller->settings->get_setting( 'label-view-time' ) ); ?></th><?php } ?>
400
+ <?php if ( in_array( 'party', $view_bookings_columns ) ) {?><th><?php echo esc_html( $rtb_controller->settings->get_setting( 'label-view-party' ) ); ?></th><?php } ?>
401
+ <?php if ( in_array( 'name', $view_bookings_columns ) ) {?><th><?php echo esc_html( $rtb_controller->settings->get_setting( 'label-view-name' ) ); ?></th><?php } ?>
402
+ <?php if ( in_array( 'email', $view_bookings_columns ) ) {?><th><?php echo esc_html( $rtb_controller->settings->get_setting( 'label-view-email' ) ); ?></th><?php } ?>
403
+ <?php if ( in_array( 'phone', $view_bookings_columns ) ) {?><th><?php echo esc_html( $rtb_controller->settings->get_setting( 'label-view-phone' ) ); ?></th><?php } ?>
404
+ <?php if ( in_array( 'table', $view_bookings_columns ) and $display_table ) {?> <th><?php echo esc_html( $rtb_controller->settings->get_setting( 'label-view-table' ) ); ?></th><?php } ?>
405
+ <?php if ( in_array( 'status', $view_bookings_columns ) ) {?><th><?php echo esc_html( $rtb_controller->settings->get_setting( 'label-view-status' ) ); ?></th><?php } ?>
406
+ <?php if ( in_array( 'details', $view_bookings_columns ) ) {?><th><?php echo esc_html( $rtb_controller->settings->get_setting( 'label-view-details' ) ); ?></th><?php } ?>
407
+
408
+ <?php foreach ( $custom_fields as $custom_field ) { ?>
409
+
410
+ <?php if ( in_array( $custom_field->slug, $view_bookings_columns ) ) { ?><th><?php echo esc_html( $custom_field->title ); ?></th><?php } ?>
411
+
412
+ <?php } ?>
413
  </tr>
414
  </thead>
415
  <tbody>
422
  <?php else : ?><td><input type='checkbox' class='rtb-edit-view-booking' checked disabled /></td>
423
  <?php endif; ?>
424
  <?php } ?>
425
+ <?php if ( in_array( 'time', $view_bookings_columns ) ) {?><td><?php echo ( new DateTime( $booking_object->date, wp_timezone() ) )->format( 'H:i:s' ); ?></td><?php } ?>
426
+ <?php if ( in_array( 'party', $view_bookings_columns ) ) {?><td><?php echo esc_html( $booking_object->party ); ?></td><?php } ?>
427
+ <?php if ( in_array( 'name', $view_bookings_columns ) ) {?><td><?php echo esc_html( $booking_object->name ); ?></td><?php } ?>
428
+ <?php if ( in_array( 'email', $view_bookings_columns ) ) {?><td><?php echo esc_html( $booking_object->email ); ?></td><?php } ?>
429
+ <?php if ( in_array( 'phone', $view_bookings_columns ) ) {?><td><?php echo esc_html( $booking_object->phone ); ?></td><?php } ?>
430
+ <?php if ( in_array( 'table', $view_bookings_columns ) and $display_table ) { ?><td><?php echo esc_html( implode(', ', $booking_object->table ) ); ?></td><?php } ?>
431
+ <?php if ( in_array( 'status', $view_bookings_columns ) ) {?><td><?php echo esc_html( $rtb_controller->cpts->booking_statuses[$booking_object->post_status]['label'] ); ?></td><?php } ?>
432
+ <?php if ( in_array( 'details', $view_bookings_columns ) ) {?><td><?php echo esc_html( apply_filters( 'rtb_bookings_table_column_details', $booking_object->message, $booking_object ) ); ?></td><?php } ?>
433
+
434
+ <?php foreach ( $custom_fields as $custom_field ) { ?>
435
+
436
+ <?php if ( ! in_array( $custom_field->slug, $view_bookings_columns ) ) { continue; } ?>
437
+
438
+ <?php if ( empty( $booking_object->custom_fields[ $custom_field->slug ] ) ) { echo '<td></td>'; continue; } ?>
439
+
440
+ <td>
441
+ <?php echo wp_kses_post( $rtb_controller->fields->get_display_value( $booking_object->custom_fields[ $custom_field->slug ], $custom_field ) ); ?>
442
+ </td>
443
+
444
+ <?php } ?>
445
  </tr>
446
  <?php } ?>
447
  </tbody>
531
  'time_interval' => $rtb_controller->settings->get_setting( 'time-interval' ),
532
  'first_day' => $rtb_controller->settings->get_setting( 'week-start' ),
533
  'allow_past' => is_admin() && current_user_can( 'manage_bookings' ),
534
+ 'date_today_label' => rtb_esc_js( $rtb_controller->settings->get_setting( 'label-date-today' ) ),
535
+ 'date_clear_label' => rtb_esc_js( $rtb_controller->settings->get_setting( 'label-date-clear' ) ),
536
+ 'date_close_label' => rtb_esc_js( $rtb_controller->settings->get_setting( 'label-date-close' ) ),
537
+ 'time_clear_label' => rtb_esc_js( $rtb_controller->settings->get_setting( 'label-time-clear' ) ),
538
  )
539
  )
540
  );
languages/restaurant-reservations.pot CHANGED
@@ -2,7 +2,7 @@
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: Five Star Restaurant Reservations\n"
5
- "POT-Creation-Date: 2022-02-21 09:38-0500\n"
6
  "PO-Revision-Date: 2020-08-20 11:03-0400\n"
7
  "Last-Translator: \n"
8
  "Language-Team: Five Star Plugins\n"
@@ -10,20 +10,20 @@ msgstr ""
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
- "X-Generator: Poedit 2.4.3\n"
14
- "X-Poedit-Basepath: ..\n"
15
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
 
 
16
  "X-Poedit-KeywordsList: __;_e\n"
17
  "X-Poedit-SearchPath-0: .\n"
18
 
19
- #: assets/js/block-booking-form.js:8 includes/Settings.class.php:1130
20
  #: includes/WP_Widget.BookingFormWidget.class.php:25
21
  msgid "Booking Form"
22
  msgstr ""
23
 
24
- #: assets/js/block-booking-form.js:31 includes/Export.CSV.class.php:151
25
- #: includes/MailChimp.class.php:106 includes/MultipleLocations.class.php:306
26
- #: includes/MultipleLocations.class.php:410
27
  msgid "Location"
28
  msgstr ""
29
 
@@ -40,13 +40,13 @@ msgstr ""
40
  msgid "Add New"
41
  msgstr ""
42
 
43
- #: includes/AdminBookings.class.php:170 restaurant-reservations.php:468
44
  msgid "Add Booking"
45
  msgstr ""
46
 
47
  #: includes/AdminBookings.class.php:173 includes/AdminBookings.class.php:214
48
  #: includes/AdminBookings.class.php:259 includes/Editor.class.php:448
49
- #: restaurant-reservations.php:526
50
  msgid "Cancel"
51
  msgstr ""
52
 
@@ -60,8 +60,8 @@ msgstr ""
60
  msgid "Subject"
61
  msgstr ""
62
 
63
- #: includes/AdminBookings.class.php:205 includes/Export.CSV.class.php:83
64
- #: includes/MailChimp.class.php:89 includes/Settings.class.php:2118
65
  #: includes/WP_List_Table.BookingsTable.class.php:664
66
  msgid "Message"
67
  msgstr ""
@@ -72,7 +72,7 @@ msgstr ""
72
 
73
  #: includes/AdminBookings.class.php:275 includes/AdminBookings.class.php:301
74
  #: includes/AdminBookings.class.php:331 includes/AdminBookings.class.php:344
75
- #: includes/Editor.class.php:481
76
  msgid "Close"
77
  msgstr ""
78
 
@@ -88,7 +88,7 @@ msgid ""
88
  "be undone."
89
  msgstr ""
90
 
91
- #: includes/AdminBookings.class.php:410 includes/Export.CSV.class.php:85
92
  msgid "Booking Status"
93
  msgstr ""
94
 
@@ -109,7 +109,7 @@ msgstr ""
109
 
110
  #: includes/AdminBookings.class.php:478 includes/AdminBookings.class.php:866
111
  #: includes/Editor.class.php:497 includes/Helper.class.php:45
112
- #: restaurant-reservations.php:659
113
  #, php-format
114
  msgid "You have been logged out. Please %slogin again%s."
115
  msgstr ""
@@ -161,10 +161,6 @@ msgstr ""
161
  msgid "The email you entered is not valid."
162
  msgstr ""
163
 
164
- #: includes/Ajax.class.php:128
165
- msgid "No bookings were found for the email address you entered."
166
- msgstr ""
167
-
168
  #: includes/Ajax.class.php:157
169
  msgid "Unkown error. Please try again"
170
  msgstr ""
@@ -181,139 +177,139 @@ msgstr ""
181
  msgid "Five Star Restaurant Reservations"
182
  msgstr ""
183
 
184
- #: includes/Booking.class.php:283
185
  msgid "Please enter the date you would like to book."
186
  msgstr ""
187
 
188
- #: includes/Booking.class.php:293
189
  msgid ""
190
  "The date you entered is not valid. Please select from one of the dates in "
191
  "the calendar."
192
  msgstr ""
193
 
194
- #: includes/Booking.class.php:304
195
  msgid "Please enter the time you would like to book."
196
  msgstr ""
197
 
198
- #: includes/Booking.class.php:314
199
  msgid ""
200
  "The time you entered is not valid. Please select from one of the times "
201
  "provided."
202
  msgstr ""
203
 
204
- #: includes/Booking.class.php:336
205
  #, php-format
206
  msgid "Sorry, bookings can not be made more than %s days in advance."
207
  msgstr ""
208
 
209
- #: includes/Booking.class.php:347
210
  msgid "Sorry, bookings can not be made in the past."
211
  msgstr ""
212
 
213
- #: includes/Booking.class.php:356
214
  msgid "Sorry, bookings can not be made for the same day."
215
  msgstr ""
216
 
217
- #: includes/Booking.class.php:364
218
  #, php-format
219
  msgid "Sorry, bookings must be made more than %s days in advance."
220
  msgstr ""
221
 
222
- #: includes/Booking.class.php:366
223
  #, php-format
224
  msgid "Sorry, bookings must be made more than %s hours in advance."
225
  msgstr ""
226
 
227
- #: includes/Booking.class.php:368
228
  #, php-format
229
  msgid "Sorry, bookings must be made more than %s minutes in advance."
230
  msgstr ""
231
 
232
- #: includes/Booking.class.php:408
233
  msgid "Sorry, no bookings are being accepted then."
234
  msgstr ""
235
 
236
- #: includes/Booking.class.php:460
237
  msgid "Sorry, no bookings are being accepted on that date."
238
  msgstr ""
239
 
240
- #: includes/Booking.class.php:466
241
  msgid "Sorry, no bookings are being accepted at that time."
242
  msgstr ""
243
 
244
- #: includes/Booking.class.php:488
245
  msgid "Please enter a name for this booking."
246
  msgstr ""
247
 
248
- #: includes/Booking.class.php:498
249
  msgid "Please let us know how many people will be in your party."
250
  msgstr ""
251
 
252
- #: includes/Booking.class.php:508
253
  #, php-format
254
  msgid "We only accept bookings for parties of up to %d people."
255
  msgstr ""
256
 
257
- #: includes/Booking.class.php:516
258
  #, php-format
259
  msgid "We only accept bookings for parties of more than %d people."
260
  msgstr ""
261
 
262
- #: includes/Booking.class.php:527
263
  msgid "Please enter an email address so we can confirm your booking."
264
  msgstr ""
265
 
266
- #: includes/Booking.class.php:533
267
  msgid "Please enter a valid email address so we can confirm your booking."
268
  msgstr ""
269
 
270
- #: includes/Booking.class.php:544
271
  msgid "Please provide a phone number so we can confirm your booking."
272
  msgstr ""
273
 
274
- #: includes/Booking.class.php:557
275
  msgid "Please select a table for your booking."
276
  msgstr ""
277
 
278
- #: includes/Booking.class.php:567
279
  msgid "Please select a valid table for your booking."
280
  msgstr ""
281
 
282
- #: includes/Booking.class.php:577
283
  msgid "Please fill out the reCAPTCHA box before submitting."
284
  msgstr ""
285
 
286
- #: includes/Booking.class.php:599
287
  msgid "Please fill out the reCAPTCHA box again and re-submit."
288
  msgstr ""
289
 
290
- #: includes/Booking.class.php:601
291
  msgid " If you encounter reCAPTCHA error multiple times, please contact us."
292
  msgstr ""
293
 
294
- #: includes/Booking.class.php:635
295
  msgid "Please complete this field to request a booking."
296
  msgstr ""
297
 
298
- #: includes/Booking.class.php:647
299
  msgid ""
300
  "Your booking has been rejected. Please call us if you would like to make a "
301
  "booking."
302
  msgstr ""
303
 
304
- #: includes/Booking.class.php:661
305
  msgid ""
306
  "The maximum number of reservations for that timeslot has been reached. "
307
  "Please select a different timeslot."
308
  msgstr ""
309
 
310
- #: includes/Booking.class.php:670
311
  msgid ""
312
  "With your party, the maximum number of seats for that timeslot would be "
313
  "exceeded. Please select a different timeslot or reduce your party size."
314
  msgstr ""
315
 
316
- #: includes/Booking.class.php:679
317
  msgid ""
318
  "Your booking and personal information exactly matches another booking. If "
319
  "this was not caused by refreshing the page, please call us to make a booking."
@@ -322,7 +318,7 @@ msgstr ""
322
  #: includes/CustomPostTypes.class.php:50 includes/CustomPostTypes.class.php:52
323
  #: includes/CustomPostTypes.class.php:53
324
  #: includes/WP_List_Table.BookingsTable.class.php:138
325
- #: restaurant-reservations.php:406
326
  msgid "Bookings"
327
  msgstr ""
328
 
@@ -335,7 +331,7 @@ msgstr ""
335
  msgid "Add New Booking"
336
  msgstr ""
337
 
338
- #: includes/CustomPostTypes.class.php:56 restaurant-reservations.php:469
339
  msgid "Edit Booking"
340
  msgstr ""
341
 
@@ -427,30 +423,30 @@ msgstr ""
427
  msgid "Bookings Summary"
428
  msgstr ""
429
 
430
- #: includes/Dashboard.class.php:142 includes/Export.CSV.class.php:78
431
- #: includes/Settings.class.php:2062
432
  #: includes/WP_List_Table.BookingsTable.class.php:547
433
  msgid "Date"
434
  msgstr ""
435
 
436
- #: includes/Dashboard.class.php:143 includes/Export.CSV.class.php:80
437
- #: includes/Notifications.class.php:132 includes/Settings.class.php:2074
 
438
  #: includes/WP_List_Table.BookingsTable.class.php:549
439
- #: includes/template-functions.php:400
440
  msgid "Party"
441
  msgstr ""
442
 
443
- #: includes/Dashboard.class.php:144 includes/Export.CSV.class.php:79
444
- #: includes/MailChimp.class.php:86 includes/Notifications.class.php:133
445
- #: includes/Settings.class.php:2090
 
446
  #: includes/WP_List_Table.BookingsTable.class.php:550
447
- #: includes/template-functions.php:401
448
  msgid "Name"
449
  msgstr ""
450
 
451
- #: includes/Dashboard.class.php:145 includes/Notifications.class.php:137
 
452
  #: includes/WP_List_Table.BookingsTable.class.php:553
453
- #: includes/template-functions.php:405
454
  msgid "Status"
455
  msgstr ""
456
 
@@ -470,12 +466,12 @@ msgstr ""
470
  msgid "Select version to trial"
471
  msgstr ""
472
 
473
- #: includes/Dashboard.class.php:265 includes/Settings.class.php:1853
474
- #: includes/Settings.class.php:1868
475
  msgid "Premium"
476
  msgstr ""
477
 
478
- #: includes/Dashboard.class.php:266 includes/Settings.class.php:1837
479
  msgid "Ultimate"
480
  msgstr ""
481
 
@@ -541,7 +537,7 @@ msgid ""
541
  "custom fields will be removed. This action can not be undone."
542
  msgstr ""
543
 
544
- #: includes/Editor.class.php:114 restaurant-reservations.php:470
545
  msgid ""
546
  "An unspecified error occurred. Please try again. If the problem persists, "
547
  "try logging out and logging back in."
@@ -698,65 +694,71 @@ msgid ""
698
  "An elegant template for sending a message with an air of sophistication."
699
  msgstr ""
700
 
701
- #: includes/Export.CSV.class.php:77
702
  msgid "Booking ID"
703
  msgstr ""
704
 
705
- #: includes/Export.CSV.class.php:81 includes/MailChimp.class.php:163
706
- #: includes/Notifications.class.php:134 includes/Settings.class.php:2096
 
 
 
 
 
 
 
 
707
  #: includes/WP_List_Table.BookingsTable.class.php:551
708
- #: includes/template-functions.php:402
709
  msgid "Email"
710
  msgstr ""
711
 
712
- #: includes/Export.CSV.class.php:82 includes/Notifications.class.php:135
713
- #: includes/Settings.class.php:2105
 
714
  #: includes/WP_List_Table.BookingsTable.class.php:552
715
- #: includes/template-functions.php:403
716
  msgid "Phone"
717
  msgstr ""
718
 
719
- #: includes/Export.CSV.class.php:84
720
  msgid "Date the request was made"
721
  msgstr ""
722
 
723
- #: includes/Export.CSV.class.php:194
724
  msgid "Data Privacy Consent"
725
  msgstr ""
726
 
727
- #: includes/Export.CSV.class.php:210 includes/Settings.class.php:1064
728
- #: includes/integrations/business-profile.php:291
729
- #: includes/template-functions.php:389
730
  msgid "Yes"
731
  msgstr ""
732
 
733
- #: includes/Export.CSV.class.php:210 includes/Settings.class.php:1063
734
- #: includes/integrations/business-profile.php:292
735
- #: includes/template-functions.php:390
736
  msgid "No"
737
  msgstr ""
738
 
739
- #: includes/Export.CSV.class.php:229 includes/Export.PDF.class.php:223
740
- #: includes/Settings.class.php:2154
741
  msgid "Table(s)"
742
  msgstr ""
743
 
744
- #: includes/Export.CSV.class.php:264
745
  #: includes/WP_List_Table.BookingsTable.class.php:556
746
- #: restaurant-reservations.php:528
747
  msgid "Deposit"
748
  msgstr ""
749
 
750
- #: includes/Export.CSV.class.php:265
751
  msgid "Receipt ID"
752
  msgstr ""
753
 
754
- #: includes/Export.PDF.class.php:144
755
  msgid ""
756
  "An unexpected error occurred and your export request could not be fulfilled."
757
  msgstr ""
758
 
759
- #: includes/Export.PDF.class.php:270
760
  #, php-format
761
  msgid ""
762
  "Your server has not loaded the mbstring PHP extension, or has disabled the "
@@ -793,13 +795,13 @@ msgstr ""
793
  msgid "Unable to create export to match your request."
794
  msgstr ""
795
 
796
- #: includes/ExportHandler.class.php:138
797
  msgid ""
798
  "You selected a date range but didn't enter a start or end date. Please "
799
  "return and enter a start or end date."
800
  msgstr ""
801
 
802
- #: includes/ExportHandler.class.php:145
803
  msgid "There are no bookings which match your export request."
804
  msgstr ""
805
 
@@ -867,8 +869,9 @@ msgstr ""
867
  msgid "The option you selected is not valid. Please make another choice."
868
  msgstr ""
869
 
870
- #: includes/Helper.class.php:59 includes/PaymentGatewayStripe.class.php:303
871
- #: includes/PaymentGatewayStripe.class.php:398
 
872
  msgid ""
873
  "The request has been rejected because it does not appear to have come from "
874
  "this site."
@@ -1005,7 +1008,7 @@ msgid ""
1005
  msgstr ""
1006
 
1007
  #: includes/InstallationWalkthrough.class.php:221
1008
- #: includes/MultipleLocations.class.php:831 includes/Settings.class.php:800
1009
  msgid "Add new scheduling rule"
1010
  msgstr ""
1011
 
@@ -1049,27 +1052,27 @@ msgid "Any Time"
1049
  msgstr ""
1050
 
1051
  #: includes/InstallationWalkthrough.class.php:258
1052
- #: includes/Settings.class.php:878
1053
  msgid "From 1 day in advance"
1054
  msgstr ""
1055
 
1056
  #: includes/InstallationWalkthrough.class.php:259
1057
- #: includes/Settings.class.php:879
1058
  msgid "From 1 week in advance"
1059
  msgstr ""
1060
 
1061
  #: includes/InstallationWalkthrough.class.php:260
1062
- #: includes/Settings.class.php:880
1063
  msgid "From 2 weeks in advance"
1064
  msgstr ""
1065
 
1066
  #: includes/InstallationWalkthrough.class.php:261
1067
- #: includes/Settings.class.php:881
1068
  msgid "From 30 days in advance"
1069
  msgstr ""
1070
 
1071
  #: includes/InstallationWalkthrough.class.php:262
1072
- #: includes/Settings.class.php:883
1073
  msgid "From 90 days in advance"
1074
  msgstr ""
1075
 
@@ -1078,37 +1081,37 @@ msgid "Late Bookings:"
1078
  msgstr ""
1079
 
1080
  #: includes/InstallationWalkthrough.class.php:268
1081
- #: includes/Settings.class.php:899
1082
  msgid "Up to the last minute"
1083
  msgstr ""
1084
 
1085
  #: includes/InstallationWalkthrough.class.php:269
1086
- #: includes/Settings.class.php:900
1087
  msgid "At least 15 minutes in advance"
1088
  msgstr ""
1089
 
1090
  #: includes/InstallationWalkthrough.class.php:270
1091
- #: includes/Settings.class.php:901
1092
  msgid "At least 30 minutes in advance"
1093
  msgstr ""
1094
 
1095
  #: includes/InstallationWalkthrough.class.php:271
1096
- #: includes/Settings.class.php:902
1097
  msgid "At least 45 minutes in advance"
1098
  msgstr ""
1099
 
1100
  #: includes/InstallationWalkthrough.class.php:272
1101
- #: includes/Settings.class.php:903
1102
  msgid "At least 1 hour in advance"
1103
  msgstr ""
1104
 
1105
  #: includes/InstallationWalkthrough.class.php:273
1106
- #: includes/Settings.class.php:904
1107
  msgid "At least 4 hours in advance"
1108
  msgstr ""
1109
 
1110
  #: includes/InstallationWalkthrough.class.php:274
1111
- #: includes/Settings.class.php:905
1112
  msgid "At least 24 hours in advance"
1113
  msgstr ""
1114
 
@@ -1121,22 +1124,22 @@ msgid "Time Interval:"
1121
  msgstr ""
1122
 
1123
  #: includes/InstallationWalkthrough.class.php:281
1124
- #: includes/Settings.class.php:943
1125
  msgid "Every 30 minutes"
1126
  msgstr ""
1127
 
1128
  #: includes/InstallationWalkthrough.class.php:282
1129
- #: includes/Settings.class.php:944
1130
  msgid "Every 15 minutes"
1131
  msgstr ""
1132
 
1133
  #: includes/InstallationWalkthrough.class.php:283
1134
- #: includes/Settings.class.php:945
1135
  msgid "Every 10 minutes"
1136
  msgstr ""
1137
 
1138
  #: includes/InstallationWalkthrough.class.php:284
1139
- #: includes/Settings.class.php:946
1140
  msgid "Every 5 minutes"
1141
  msgstr ""
1142
 
@@ -1160,12 +1163,6 @@ msgstr ""
1160
  msgid "Days of the week"
1161
  msgstr ""
1162
 
1163
- #: includes/InstallationWalkthrough.class.php:357
1164
- #: includes/Notifications.class.php:131 includes/Settings.class.php:2068
1165
- #: includes/template-functions.php:399
1166
- msgid "Time"
1167
- msgstr ""
1168
-
1169
  #: includes/InstallationWalkthrough.class.php:371
1170
  msgid "Start"
1171
  msgstr ""
@@ -1189,7 +1186,7 @@ msgid "Delete rule"
1189
  msgstr ""
1190
 
1191
  #: includes/InstallationWalkthrough.class.php:411
1192
- #: includes/MultipleLocations.class.php:845 includes/Settings.class.php:814
1193
  msgid "Delete scheduling rule"
1194
  msgstr ""
1195
 
@@ -1224,133 +1221,133 @@ msgid ""
1224
  "and try again."
1225
  msgstr ""
1226
 
1227
- #: includes/MailChimp.class.php:85
1228
  msgid "Date/Time of Booking"
1229
  msgstr ""
1230
 
1231
- #: includes/MailChimp.class.php:87
1232
  msgid "Party Size"
1233
  msgstr ""
1234
 
1235
- #: includes/MailChimp.class.php:88
1236
  msgid "Phone Number"
1237
  msgstr ""
1238
 
1239
- #: includes/MailChimp.class.php:159
1240
  msgid "Booking Form Data"
1241
  msgstr ""
1242
 
1243
- #: includes/MailChimp.class.php:160
1244
  msgid "MailChimp List Field"
1245
  msgstr ""
1246
 
1247
- #: includes/MailChimp.class.php:161
1248
  msgid ""
1249
  "Connect information from the booking request to <a href=\"http://kb."
1250
  "mailchimp.com/article/getting-started-with-merge-tags\" target=\"_blank"
1251
  "\">merge fields</a> in your MailChimp list."
1252
  msgstr ""
1253
 
1254
- #: includes/MailChimp.class.php:162
1255
  msgid ""
1256
  "There was an unexpected error when trying to retrieve the list's merge "
1257
  "fields."
1258
  msgstr ""
1259
 
1260
- #: includes/MailChimp.class.php:164
1261
  msgid "The email field is automatically merged."
1262
  msgstr ""
1263
 
1264
- #: includes/MailChimp.class.php:372
1265
  msgid ""
1266
  "The subscription request has been rejected because it does not appear to "
1267
  "have come from this site."
1268
  msgstr ""
1269
 
1270
- #: includes/MultipleLocations.class.php:362
1271
  msgid "Please select a location for your booking."
1272
  msgstr ""
1273
 
1274
- #: includes/MultipleLocations.class.php:369
1275
  msgid "The location you selected is not valid. Please select another location."
1276
  msgstr ""
1277
 
1278
- #: includes/MultipleLocations.class.php:478
1279
  msgid "Reservations"
1280
  msgstr ""
1281
 
1282
- #: includes/MultipleLocations.class.php:691
1283
  msgid "Location for which this booking was made."
1284
  msgstr ""
1285
 
1286
- #: includes/MultipleLocations.class.php:797
1287
  msgid "Global"
1288
  msgstr ""
1289
 
1290
- #: includes/MultipleLocations.class.php:810
1291
  msgid "Select Schedule Location"
1292
  msgstr ""
1293
 
1294
- #: includes/MultipleLocations.class.php:822
1295
  msgid "Schedule Location"
1296
  msgstr ""
1297
 
1298
- #: includes/MultipleLocations.class.php:823
1299
  msgid ""
1300
  "Select which location the schedule will apply to. If a specific location "
1301
  "doesn't have a schedule set, then it will fall back to the global schedule "
1302
  "when booking."
1303
  msgstr ""
1304
 
1305
- #: includes/MultipleLocations.class.php:864 includes/Settings.class.php:831
1306
  msgid "Schedule"
1307
  msgstr ""
1308
 
1309
- #: includes/MultipleLocations.class.php:865 includes/Settings.class.php:832
1310
  msgid "Define the weekly schedule during which you accept bookings."
1311
  msgstr ""
1312
 
1313
- #: includes/MultipleLocations.class.php:891 includes/Settings.class.php:857
1314
  msgid "Exceptions"
1315
  msgstr ""
1316
 
1317
- #: includes/MultipleLocations.class.php:892 includes/Settings.class.php:858
1318
  msgid ""
1319
  "Define special opening hours for holidays, events or other needs. Leave the "
1320
  "time empty if you're closed all day."
1321
  msgstr ""
1322
 
1323
- #: includes/MultipleLocations.class.php:909
1324
  msgid "Select Seat Restrictions Location"
1325
  msgstr ""
1326
 
1327
- #: includes/MultipleLocations.class.php:921
1328
  msgid "Seat Restrictions Location"
1329
  msgstr ""
1330
 
1331
- #: includes/MultipleLocations.class.php:922
1332
  msgid ""
1333
  "Select which location the restrictions will apply to. If a specific location "
1334
  "doesn't have restrictions set, then the global total number will be used as "
1335
  "a fall-back."
1336
  msgstr ""
1337
 
1338
- #: includes/MultipleLocations.class.php:952
1339
  msgid "Max Reservations"
1340
  msgstr ""
1341
 
1342
- #: includes/MultipleLocations.class.php:953
1343
  msgid ""
1344
  "How many reservations, if enabled, should be allowed at the same time at "
1345
  "this location? Set dining block length to change how long a meal typically "
1346
  "lasts."
1347
  msgstr ""
1348
 
1349
- #: includes/MultipleLocations.class.php:966
1350
  msgid "Max People"
1351
  msgstr ""
1352
 
1353
- #: includes/MultipleLocations.class.php:967
1354
  msgid ""
1355
  "How many people, if enabled, should be allowed to be present at this "
1356
  "restaurant location at the same time? Set dining block length to change how "
@@ -1358,39 +1355,27 @@ msgid ""
1358
  "set."
1359
  msgstr ""
1360
 
1361
- #: includes/Notification.class.php:104
1362
- msgid "View pending bookings"
1363
- msgstr ""
1364
-
1365
- #: includes/Notification.class.php:105
1366
- msgid "Cancel booking"
1367
- msgstr ""
1368
-
1369
- #: includes/Notification.class.php:106
1370
- msgid "Confirm this booking"
1371
- msgstr ""
1372
-
1373
- #: includes/Notification.class.php:107
1374
- msgid "Reject this booking"
1375
  msgstr ""
1376
 
1377
- #: includes/Notifications.class.php:126
1378
  msgid "Please find a summary of today's reservations in the table below."
1379
  msgstr ""
1380
 
1381
- #: includes/Notifications.class.php:136
 
1382
  #: includes/WP_List_Table.BookingsTable.class.php:557
1383
- #: includes/template-functions.php:404
1384
  msgid "Table"
1385
  msgstr ""
1386
 
1387
- #: includes/Notifications.class.php:138
 
1388
  #: includes/WP_List_Table.BookingsTable.class.php:560
1389
- #: includes/template-functions.php:406
1390
  msgid "Details"
1391
  msgstr ""
1392
 
1393
- #: includes/Notifications.class.php:168
1394
  msgid "Daily Email Summary"
1395
  msgstr ""
1396
 
@@ -1414,316 +1399,426 @@ msgstr ""
1414
  msgid "Stripe"
1415
  msgstr ""
1416
 
1417
- #: includes/PaymentGatewayStripe.class.php:142
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1418
  msgid "Card Detail"
1419
  msgstr ""
1420
 
1421
- #: includes/PaymentGatewayStripe.class.php:149
1422
  msgid "Card Number"
1423
  msgstr ""
1424
 
1425
- #: includes/PaymentGatewayStripe.class.php:153
1426
  msgid "CVC"
1427
  msgstr ""
1428
 
1429
- #: includes/PaymentGatewayStripe.class.php:157
1430
  msgid "Expiration (MM/YYYY)"
1431
  msgstr ""
1432
 
1433
- #: includes/PaymentGatewayStripe.class.php:168
1434
  msgid ""
1435
  "Please wait. Do not refresh until the button enables or the page reloads."
1436
  msgstr ""
1437
 
1438
- #: includes/PaymentGatewayStripe.class.php:172
1439
  msgid "Make Deposit"
1440
  msgstr ""
1441
 
1442
- #: includes/PaymentGatewayStripe.class.php:434
1443
- msgid "Invalid submission. Please contact admin"
1444
- msgstr ""
1445
-
1446
- #: includes/PaymentGatewayStripe.class.php:459
1447
- msgid "Payment charge failed. Please try again"
1448
  msgstr ""
1449
 
1450
- #: includes/PaymentGatewayStripe.class.php:560
1451
- msgid "Payment on Hold"
1452
  msgstr ""
1453
 
1454
- #: includes/PaymentGatewayStripe.class.php:561
1455
- msgid "Payment has been held on the card, but not charged yet."
1456
  msgstr ""
1457
 
1458
- #: includes/PaymentGatewayStripe.class.php:566
1459
- msgid "Held Payment Captured"
1460
  msgstr ""
1461
 
1462
- #: includes/PaymentGatewayStripe.class.php:567
1463
- msgid "Payment has been captured."
1464
  msgstr ""
1465
 
1466
- #: includes/PaymentGatewayStripe.class.php:580
1467
- msgid "Charge Payment on Hold"
1468
  msgstr ""
1469
 
1470
- #: includes/PaymentGatewayStripe.class.php:620
1471
- #: includes/PaymentGatewayStripe.class.php:627
1472
- #, php-format
1473
- msgid "Five Star RTB: Stripe Payment capture failed. Reason: %s"
1474
  msgstr ""
1475
 
1476
- #: includes/PaymentGatewayStripe.class.php:639
1477
- #, php-format
1478
- msgid "Unable to find the Booking for ID %s"
1479
  msgstr ""
1480
 
1481
- #: includes/PaymentGatewayStripe.class.php:697
1482
- msgid ""
1483
- "We are only placing a hold for the above amount on your payment instrument. "
1484
- "You will be charged later."
1485
  msgstr ""
1486
 
1487
- #: includes/PaymentManager.class.php:194
1488
- msgid "Payment Gateway"
1489
  msgstr ""
1490
 
1491
- #: includes/PaymentManager.class.php:247
1492
- msgid "Please select a valid payment gateway."
1493
  msgstr ""
1494
 
1495
- #: includes/PaymentManager.class.php:306
1496
- msgid "Deposit Required: "
1497
  msgstr ""
1498
 
1499
- #: includes/PaymentManager.class.php:351
1500
- msgid "Invalid gateweay selected. Please contact us for the confirmation."
1501
  msgstr ""
1502
 
1503
- #: includes/ReviewAsk.class.php:59
1504
- msgid "Email Address"
1505
  msgstr ""
1506
 
1507
- #: includes/Settings.class.php:491
1508
- msgid "Sign up for our mailing list."
1509
  msgstr ""
1510
 
1511
- #: includes/Settings.class.php:771 includes/Settings.class.php:772
1512
- #: restaurant-reservations.php:407
1513
  msgid "Settings"
1514
  msgstr ""
1515
 
1516
- #: includes/Settings.class.php:784
1517
  msgid "Booking Schedule"
1518
  msgstr ""
1519
 
1520
- #: includes/Settings.class.php:793
1521
  msgid "Scheduling Options"
1522
  msgstr ""
1523
 
1524
- #: includes/Settings.class.php:873
1525
  msgid "Early Bookings"
1526
  msgstr ""
1527
 
1528
- #: includes/Settings.class.php:874
1529
  msgid ""
1530
  "Select how early customers can make their booking. (Administrators and "
1531
  "Booking Managers are not restricted by this setting.)"
1532
  msgstr ""
1533
 
1534
- #: includes/Settings.class.php:877
1535
  msgid "Any time"
1536
  msgstr ""
1537
 
1538
- #: includes/Settings.class.php:882
1539
  msgid "From 60 days in advance"
1540
  msgstr ""
1541
 
1542
- #: includes/Settings.class.php:895
1543
  msgid "Late Bookings"
1544
  msgstr ""
1545
 
1546
- #: includes/Settings.class.php:896
1547
  msgid ""
1548
  "Select how late customers can make their booking. (Administrators and "
1549
  "Booking Managers are not restricted by this setting.)"
1550
  msgstr ""
1551
 
1552
- #: includes/Settings.class.php:906
1553
  msgid "Block same-day bookings"
1554
  msgstr ""
1555
 
1556
- #: includes/Settings.class.php:918
1557
  msgid "Date Pre-selection"
1558
  msgstr ""
1559
 
1560
- #: includes/Settings.class.php:919
1561
  msgid ""
1562
  "When the booking form is loaded, should it automatically attempt to select a "
1563
  "valid date?"
1564
  msgstr ""
1565
 
1566
- #: includes/Settings.class.php:922
1567
  msgid "Select today if valid"
1568
  msgstr ""
1569
 
1570
- #: includes/Settings.class.php:923
1571
  msgid "Select today or next valid date"
1572
  msgstr ""
1573
 
1574
- #: includes/Settings.class.php:924
1575
  msgid "Leave empty"
1576
  msgstr ""
1577
 
1578
- #: includes/Settings.class.php:935
1579
  msgid "Time Interval"
1580
  msgstr ""
1581
 
1582
- #: includes/Settings.class.php:936
1583
  msgid "Select the number of minutes between each available time."
1584
  msgstr ""
1585
 
1586
- #: includes/Settings.class.php:939
1587
  msgid "Every 180 minutes"
1588
  msgstr ""
1589
 
1590
- #: includes/Settings.class.php:940
1591
  msgid "Every 120 minutes"
1592
  msgstr ""
1593
 
1594
- #: includes/Settings.class.php:941
1595
  msgid "Every 90 minutes"
1596
  msgstr ""
1597
 
1598
- #: includes/Settings.class.php:942
1599
  msgid "Every 60 minutes"
1600
  msgstr ""
1601
 
1602
- #: includes/Settings.class.php:957
1603
  msgid "Week Starts On"
1604
  msgstr ""
1605
 
1606
- #: includes/Settings.class.php:958
1607
  msgid "Select the first day of the week"
1608
  msgstr ""
1609
 
1610
- #: includes/Settings.class.php:961
1611
  msgid "Sunday"
1612
  msgstr ""
1613
 
1614
- #: includes/Settings.class.php:962
1615
  msgid "Monday"
1616
  msgstr ""
1617
 
1618
- #: includes/Settings.class.php:971
1619
  msgid "Basic"
1620
  msgstr ""
1621
 
1622
- #: includes/Settings.class.php:980 includes/Settings.class.php:1373
1623
  msgid "General"
1624
  msgstr ""
1625
 
1626
- #: includes/Settings.class.php:991
1627
  msgid "Booking Page"
1628
  msgstr ""
1629
 
1630
- #: includes/Settings.class.php:992
1631
  msgid ""
1632
  "Select a page on your site to automatically display the booking form and "
1633
  "confirmation message."
1634
  msgstr ""
1635
 
1636
- #: includes/Settings.class.php:1008
1637
  msgid "Min Party Size"
1638
  msgstr ""
1639
 
1640
- #: includes/Settings.class.php:1009
1641
  msgid "Set a minimum allowed party size for bookings."
1642
  msgstr ""
1643
 
1644
- #: includes/Settings.class.php:1021
1645
  msgid "Max Party Size"
1646
  msgstr ""
1647
 
1648
- #: includes/Settings.class.php:1022
1649
  msgid "Set a maximum allowed party size for bookings."
1650
  msgstr ""
1651
 
1652
- #: includes/Settings.class.php:1034
1653
  msgid "Automatically Confirm Below Party Size"
1654
  msgstr ""
1655
 
1656
- #: includes/Settings.class.php:1035
1657
  msgid ""
1658
  "Set a maximum party size below which all bookings will be automatically "
1659
  "confirmed."
1660
  msgstr ""
1661
 
1662
- #: includes/Settings.class.php:1048
1663
  msgid "Allow Cancellations"
1664
  msgstr ""
1665
 
1666
- #: includes/Settings.class.php:1049
1667
  msgid ""
1668
  "Adds a cancellation option to your booking form, so that customers are able "
1669
  "to cancel their reservations."
1670
  msgstr ""
1671
 
1672
- #: includes/Settings.class.php:1059
1673
  msgid "Require Phone"
1674
  msgstr ""
1675
 
1676
- #: includes/Settings.class.php:1060
1677
  msgid "Don't accept booking requests without a phone number."
1678
  msgstr ""
1679
 
1680
- #: includes/Settings.class.php:1075
1681
  msgid "Pending Confirmation Message"
1682
  msgstr ""
1683
 
1684
- #: includes/Settings.class.php:1076
1685
  msgid ""
1686
  "Enter the message to display when a booking request is made and is set to "
1687
  "pending confirmation."
1688
  msgstr ""
1689
 
1690
- #: includes/Settings.class.php:1087
1691
  msgid "Confirmed Booking Message"
1692
  msgstr ""
1693
 
1694
- #: includes/Settings.class.php:1088
1695
  msgid ""
1696
  "Enter the message to display when a booking is made that has been "
1697
  "automatically confirmed."
1698
  msgstr ""
1699
 
1700
- #: includes/Settings.class.php:1099
1701
  msgid "Pending Redirect Page"
1702
  msgstr ""
1703
 
1704
- #: includes/Settings.class.php:1100
1705
  msgid ""
1706
  "Input the URL of the page you want the booking form to redirect to after a "
1707
  "reservation is made that is set to pending. This overrides the \"Pending "
1708
  "Confirmation Message\" text/option."
1709
  msgstr ""
1710
 
1711
- #: includes/Settings.class.php:1110
1712
  msgid "Confirmed Redirect Page"
1713
  msgstr ""
1714
 
1715
- #: includes/Settings.class.php:1111
1716
  msgid ""
1717
  "Input the URL of the page you want the booking form to redirect to after a "
1718
  "reservation is made that is automatically confirmed. This overrides the "
1719
  "\"Confirmed Booking Message\" text/option."
1720
  msgstr ""
1721
 
1722
- #: includes/Settings.class.php:1121
1723
  msgid "Cancellation Redirect Page"
1724
  msgstr ""
1725
 
1726
- #: includes/Settings.class.php:1122
1727
  msgid ""
1728
  "Input the URL of the page you want the cancellation form to redirect to when "
1729
  "someone cancels their reservation. Only applicable if the \"Allow "
@@ -1731,11 +1826,11 @@ msgid ""
1731
  "success message instead of redirecting."
1732
  msgstr ""
1733
 
1734
- #: includes/Settings.class.php:1141
1735
  msgid "Date Format"
1736
  msgstr ""
1737
 
1738
- #: includes/Settings.class.php:1142
1739
  #, php-format
1740
  msgid ""
1741
  "Define how the date is formatted on the booking form. %sFormatting rules%s. "
@@ -1743,11 +1838,11 @@ msgid ""
1743
  "in notification messages, modify your general %sWordPress Settings%s."
1744
  msgstr ""
1745
 
1746
- #: includes/Settings.class.php:1153
1747
  msgid "Time Format"
1748
  msgstr ""
1749
 
1750
- #: includes/Settings.class.php:1154
1751
  #, php-format
1752
  msgid ""
1753
  "Define how the time is formatted on the booking form. %sFormatting rules%s. "
@@ -1755,56 +1850,56 @@ msgid ""
1755
  "in notification messages, modify your general %sWordPress Settings%s."
1756
  msgstr ""
1757
 
1758
- #: includes/Settings.class.php:1165
1759
  msgid "Display Unavailable Time Slots"
1760
  msgstr ""
1761
 
1762
- #: includes/Settings.class.php:1166
1763
  msgid ""
1764
  "Display any time slots (greyed out) which are not available for booking on "
1765
  "the front end."
1766
  msgstr ""
1767
 
1768
- #: includes/Settings.class.php:1178
1769
  msgid "Language"
1770
  msgstr ""
1771
 
1772
- #: includes/Settings.class.php:1179
1773
  msgid ""
1774
  "Select a language to use for the booking form datepicker if it is different "
1775
  "than your WordPress language setting."
1776
  msgstr ""
1777
 
1778
- #: includes/Settings.class.php:1191
1779
  msgid "Refresh Bookings Page"
1780
  msgstr ""
1781
 
1782
- #: includes/Settings.class.php:1192
1783
  msgid ""
1784
  "After how many minutes should the Bookings page be automatically refreshed? "
1785
  "The minimum is 1 minute and you can disable it by inputting 0 or leaving it "
1786
  "empty."
1787
  msgstr ""
1788
 
1789
- #: includes/Settings.class.php:1200
1790
  msgid "Security"
1791
  msgstr ""
1792
 
1793
- #: includes/Settings.class.php:1211
1794
  msgid "Banned Email Addresses"
1795
  msgstr ""
1796
 
1797
- #: includes/Settings.class.php:1212
1798
  msgid ""
1799
  "You can block bookings from specific email addresses. Enter each email "
1800
  "address on a separate line."
1801
  msgstr ""
1802
 
1803
- #: includes/Settings.class.php:1222
1804
  msgid "Banned IP Addresses"
1805
  msgstr ""
1806
 
1807
- #: includes/Settings.class.php:1223
1808
  msgid ""
1809
  "You can block bookings from specific IP addresses. Enter each IP address on "
1810
  "a separate line. Be aware that many internet providers rotate their IP "
@@ -1814,15 +1909,15 @@ msgid ""
1814
  "block several people."
1815
  msgstr ""
1816
 
1817
- #: includes/Settings.class.php:1231
1818
  msgid "Captcha"
1819
  msgstr ""
1820
 
1821
- #: includes/Settings.class.php:1242
1822
  msgid "Enable Google reCAPTCHA v2"
1823
  msgstr ""
1824
 
1825
- #: includes/Settings.class.php:1243
1826
  #, php-format
1827
  msgid ""
1828
  "Adds Google's reCAPTCHA code to your form, to verify guests before they can "
@@ -1830,374 +1925,388 @@ msgid ""
1830
  "configure this feature."
1831
  msgstr ""
1832
 
1833
- #: includes/Settings.class.php:1253
1834
  msgid "Google Site Key"
1835
  msgstr ""
1836
 
1837
- #: includes/Settings.class.php:1254
1838
  msgid "The site key provided to you by Google"
1839
  msgstr ""
1840
 
1841
- #: includes/Settings.class.php:1264
1842
  msgid "Google Secret Key"
1843
  msgstr ""
1844
 
1845
- #: includes/Settings.class.php:1265
1846
  msgid "The secret key provided to you by Google"
1847
  msgstr ""
1848
 
1849
- #: includes/Settings.class.php:1273
1850
  msgid "Privacy"
1851
  msgstr ""
1852
 
1853
- #: includes/Settings.class.php:1284
1854
  msgid "Disable IP Capture"
1855
  msgstr ""
1856
 
1857
- #: includes/Settings.class.php:1285
1858
  msgid ""
1859
  "This turns off the feature that captures the IP address of the device making "
1860
  "the booking."
1861
  msgstr ""
1862
 
1863
- #: includes/Settings.class.php:1295
1864
  msgid "Require Consent"
1865
  msgstr ""
1866
 
1867
- #: includes/Settings.class.php:1296
1868
  msgid ""
1869
  "Require customers to consent to the collection of their details when making "
1870
  "a booking. This may be required to comply with privacy laws in your country."
1871
  msgstr ""
1872
 
1873
- #: includes/Settings.class.php:1306
1874
  msgid "Consent Statement"
1875
  msgstr ""
1876
 
1877
- #: includes/Settings.class.php:1307
1878
  msgid ""
1879
  "Enter the statement you would like customers to confirm when making a "
1880
  "booking."
1881
  msgstr ""
1882
 
1883
- #: includes/Settings.class.php:1317
1884
  msgid "Privacy Statement Page"
1885
  msgstr ""
1886
 
1887
- #: includes/Settings.class.php:1318
1888
  msgid ""
1889
  "Select a page on your site which contains a privacy statement. If selected, "
1890
  "it will be linked to in your consent statement."
1891
  msgstr ""
1892
 
1893
- #: includes/Settings.class.php:1334
1894
  msgid "Delete Reservation Data Days"
1895
  msgstr ""
1896
 
1897
- #: includes/Settings.class.php:1335
1898
  msgid ""
1899
  "Sets the approximate number of days booking data should be stored for. Leave "
1900
  "blank to keep booking data indefinitely."
1901
  msgstr ""
1902
 
1903
- #: includes/Settings.class.php:1344 includes/Settings.class.php:1820
1904
  msgid "Notifications"
1905
  msgstr ""
1906
 
1907
- #: includes/Settings.class.php:1353
1908
  msgid "Daily Summary"
1909
  msgstr ""
1910
 
1911
- #: includes/Settings.class.php:1364
1912
  msgid "Summary Email Address"
1913
  msgstr ""
1914
 
1915
- #: includes/Settings.class.php:1365
1916
  msgid ""
1917
  "The email address, if any, where a daily summary of upcoming reservations "
1918
  "should be emailed."
1919
  msgstr ""
1920
 
1921
- #: includes/Settings.class.php:1384
 
 
 
 
 
 
 
 
 
 
1922
  msgid "Reply-To Name"
1923
  msgstr ""
1924
 
1925
- #: includes/Settings.class.php:1385
1926
  msgid ""
1927
  "The name which should appear in the Reply-To field of a user notification "
1928
  "email"
1929
  msgstr ""
1930
 
1931
- #: includes/Settings.class.php:1396
1932
  msgid "Reply-To Email Address"
1933
  msgstr ""
1934
 
1935
- #: includes/Settings.class.php:1397
1936
  msgid ""
1937
  "The email address which should appear in the Reply-To field of a user "
1938
  "notification email."
1939
  msgstr ""
1940
 
1941
- #: includes/Settings.class.php:1408
1942
  msgid "Admin Notification"
1943
  msgstr ""
1944
 
1945
- #: includes/Settings.class.php:1409
1946
  msgid ""
1947
  "Send an email notification to an administrator when a new booking is "
1948
  "requested."
1949
  msgstr ""
1950
 
1951
- #: includes/Settings.class.php:1419
1952
  msgid "Admin New Confirmed Notification"
1953
  msgstr ""
1954
 
1955
- #: includes/Settings.class.php:1420
1956
  msgid ""
1957
  "Send an email notification to an administrator when a new confirmed booking "
1958
  "is made."
1959
  msgstr ""
1960
 
1961
- #: includes/Settings.class.php:1430
1962
  msgid "Admin Cancellation Notification"
1963
  msgstr ""
1964
 
1965
- #: includes/Settings.class.php:1431
1966
  msgid ""
1967
  "Send an email notification to an administrator when a booking is cancelled."
1968
  msgstr ""
1969
 
1970
- #: includes/Settings.class.php:1441
1971
  msgid "Admin Email Address"
1972
  msgstr ""
1973
 
1974
- #: includes/Settings.class.php:1442
1975
  msgid "The email address where admin notifications should be sent."
1976
  msgstr ""
1977
 
1978
- #: includes/Settings.class.php:1451
1979
  msgid "Notification Emails"
1980
  msgstr ""
1981
 
1982
- #: includes/Settings.class.php:1453
1983
  msgid ""
1984
  "Adjust the messages that are emailed to users and admins during the booking "
1985
  "process."
1986
  msgstr ""
1987
 
1988
- #: includes/Settings.class.php:1463
1989
  msgid "Template Tags"
1990
  msgstr ""
1991
 
1992
- #: includes/Settings.class.php:1465
1993
  msgid ""
1994
  "Use the following tags to automatically add booking information to the "
1995
  "emails. Tags labeled with an asterisk (*) can be used in the email subject "
1996
  "as well."
1997
  msgstr ""
1998
 
1999
- #: includes/Settings.class.php:1476
2000
  msgid "Admin Notification Subject (Pending Booking)"
2001
  msgstr ""
2002
 
2003
- #: includes/Settings.class.php:1477
2004
  msgid "The email subject for admin notifications."
2005
  msgstr ""
2006
 
2007
- #: includes/Settings.class.php:1488
2008
  msgid "Admin Notification Email (Pending Booking)"
2009
  msgstr ""
2010
 
2011
- #: includes/Settings.class.php:1489
2012
  msgid ""
2013
  "Enter the email an admin should receive when an initial booking request is "
2014
  "made."
2015
  msgstr ""
2016
 
2017
- #: includes/Settings.class.php:1500
2018
  msgid "Admin Notification Subject (Auto Confirmed Booking)"
2019
  msgstr ""
2020
 
2021
- #: includes/Settings.class.php:1501
2022
  msgid ""
2023
  "The email subject for admin notifications for automatically-confirmed "
2024
  "bookings."
2025
  msgstr ""
2026
 
2027
- #: includes/Settings.class.php:1512
2028
  msgid "Admin Notification Email (Auto Confirmed Booking)"
2029
  msgstr ""
2030
 
2031
- #: includes/Settings.class.php:1513
2032
  msgid ""
2033
  "Enter the email an admin should receive when an automatically-confirmed "
2034
  "booking is made."
2035
  msgstr ""
2036
 
2037
- #: includes/Settings.class.php:1524
2038
  msgid "Admin Booking Cancelled Subject"
2039
  msgstr ""
2040
 
2041
- #: includes/Settings.class.php:1525
2042
  msgid "The email subject for admin notifications when a booking is cancelled."
2043
  msgstr ""
2044
 
2045
- #: includes/Settings.class.php:1536
2046
  msgid "Admin Booking Cancelled Email"
2047
  msgstr ""
2048
 
2049
- #: includes/Settings.class.php:1537
2050
  msgid "Enter the email an admin should receive when a booking is cancelled."
2051
  msgstr ""
2052
 
2053
- #: includes/Settings.class.php:1548
2054
  msgid "New Request Email Subject"
2055
  msgstr ""
2056
 
2057
- #: includes/Settings.class.php:1549
2058
  msgid ""
2059
  "The email subject a user should receive when they make an initial booking "
2060
  "request."
2061
  msgstr ""
2062
 
2063
- #: includes/Settings.class.php:1560 includes/load-customizer.php:211
2064
  msgid "New Request Email"
2065
  msgstr ""
2066
 
2067
- #: includes/Settings.class.php:1561
2068
  msgid ""
2069
  "Enter the email a user should receive when they make an initial booking "
2070
  "request."
2071
  msgstr ""
2072
 
2073
- #: includes/Settings.class.php:1572
2074
  msgid "Confirmed Email Subject"
2075
  msgstr ""
2076
 
2077
- #: includes/Settings.class.php:1573
2078
  msgid ""
2079
  "The email subject a user should receive when their booking has been "
2080
  "confirmed."
2081
  msgstr ""
2082
 
2083
- #: includes/Settings.class.php:1584 includes/load-customizer.php:251
2084
  msgid "Confirmed Email"
2085
  msgstr ""
2086
 
2087
- #: includes/Settings.class.php:1585
2088
  msgid ""
2089
  "Enter the email a user should receive when their booking has been confirmed."
2090
  msgstr ""
2091
 
2092
- #: includes/Settings.class.php:1596
2093
  msgid "Rejected Email Subject"
2094
  msgstr ""
2095
 
2096
- #: includes/Settings.class.php:1597
2097
  msgid ""
2098
  "The email subject a user should receive when their booking has been rejected."
2099
  msgstr ""
2100
 
2101
- #: includes/Settings.class.php:1608 includes/load-customizer.php:291
2102
  msgid "Rejected Email"
2103
  msgstr ""
2104
 
2105
- #: includes/Settings.class.php:1609
2106
  msgid ""
2107
  "Enter the email a user should receive when their booking has been rejected."
2108
  msgstr ""
2109
 
2110
- #: includes/Settings.class.php:1620
2111
  msgid "Booking Cancelled Email Subject"
2112
  msgstr ""
2113
 
2114
- #: includes/Settings.class.php:1621
2115
  msgid ""
2116
  "The email subject a user should receive when they have cancelled their "
2117
  "booking."
2118
  msgstr ""
2119
 
2120
- #: includes/Settings.class.php:1632
2121
  msgid "Booking Cancelled Email"
2122
  msgstr ""
2123
 
2124
- #: includes/Settings.class.php:1633
2125
  msgid "Enter the email a user should receive when they cancel their booking."
2126
  msgstr ""
2127
 
2128
- #: includes/Settings.class.php:1644
2129
  msgid "Admin Update Subject"
2130
  msgstr ""
2131
 
2132
- #: includes/Settings.class.php:1645
2133
  #, php-format
2134
  msgid ""
2135
  "The email subject a user should receive when an admin sends them a custom "
2136
  "email message from the %sbookings panel%s."
2137
  msgstr ""
2138
 
2139
- #: includes/Settings.class.php:1656 includes/Settings.class.php:1699
2140
- #: includes/Settings.class.php:1837
2141
  msgid "Payments"
2142
  msgstr ""
2143
 
2144
- #: includes/Settings.class.php:1680 includes/Settings.class.php:1802
2145
  msgid "Advanced"
2146
  msgstr ""
2147
 
2148
- #: includes/Settings.class.php:1718 includes/Settings.class.php:1853
2149
  msgid "Export"
2150
  msgstr ""
2151
 
2152
- #: includes/Settings.class.php:1737 includes/Settings.class.php:1868
 
 
 
 
2153
  msgid "Styling"
2154
  msgstr ""
2155
 
2156
- #: includes/Settings.class.php:1780
2157
  msgid "The premium version also gives you access to the following features:"
2158
  msgstr ""
2159
 
2160
- #: includes/Settings.class.php:1782
2161
  msgid "Multiple Form Layouts"
2162
  msgstr ""
2163
 
2164
- #: includes/Settings.class.php:1783
2165
  msgid "Custom Booking Fields"
2166
  msgstr ""
2167
 
2168
- #: includes/Settings.class.php:1784
2169
  msgid "Advanced Email Designer"
2170
  msgstr ""
2171
 
2172
- #: includes/Settings.class.php:1785
2173
  msgid "Set Table and Seat Restrictions"
2174
  msgstr ""
2175
 
2176
- #: includes/Settings.class.php:1786
2177
  msgid "Automatic Booking Confirmation"
2178
  msgstr ""
2179
 
2180
- #: includes/Settings.class.php:1787
2181
  msgid "Bookings Page for Staff"
2182
  msgstr ""
2183
 
2184
- #: includes/Settings.class.php:1788
2185
  msgid "Export Bookings"
2186
  msgstr ""
2187
 
2188
- #: includes/Settings.class.php:1789
2189
  msgid "Email Support"
2190
  msgstr ""
2191
 
2192
- #: includes/Settings.class.php:1792
2193
  msgid "UPGRADE NOW"
2194
  msgstr ""
2195
 
2196
- #: includes/Settings.class.php:1802 includes/Settings.class.php:1820
2197
  msgid "Premium/Ultimate"
2198
  msgstr ""
2199
 
2200
- #: includes/Settings.class.php:1803
2201
  msgid ""
2202
  "The advanced options let you set a maximum number of reservations or people, "
2203
  "enable automatic confirmation of bookings, configure a view bookings page "
@@ -2208,7 +2317,7 @@ msgid ""
2208
  "when they book and/or manage the tables in the admin."
2209
  msgstr ""
2210
 
2211
- #: includes/Settings.class.php:1821
2212
  msgid ""
2213
  "The email template designer uses the WordPress customizer to let you modify "
2214
  "the look and structure of the notification emails. The reminders section "
@@ -2218,99 +2327,93 @@ msgid ""
2218
  "booking time has passed."
2219
  msgstr ""
2220
 
2221
- #: includes/Settings.class.php:1838
2222
  msgid ""
2223
  "The payment options let you require a deposit for bookings, either via "
2224
  "PayPal or Stripe. Deposits can be made conditional on a minimum party size "
2225
  "or only for certain days/times."
2226
  msgstr ""
2227
 
2228
- #: includes/Settings.class.php:1854
2229
  msgid ""
2230
  "You can export all your bookings to a PDF file, for use by your staff to "
2231
  "manage upcoming bookings, for accounting purposes etc."
2232
  msgstr ""
2233
 
2234
- #: includes/Settings.class.php:1869
 
 
 
 
 
 
 
2235
  msgid ""
2236
  "The styling options let you choose a booking form layout and modify the "
2237
  "colors, font family, font size and borders of the various elements found in "
2238
  "the booking form."
2239
  msgstr ""
2240
 
2241
- #: includes/Settings.class.php:1896
2242
  msgid "Any size"
2243
  msgstr ""
2244
 
2245
- #: includes/Settings.class.php:2059
2246
- #: includes/integrations/business-profile.php:100
2247
- msgid "Book a table"
2248
- msgstr ""
2249
-
2250
- #: includes/Settings.class.php:2087
2251
- msgid "Contact Details"
2252
- msgstr ""
2253
-
2254
- #: includes/Settings.class.php:2113
2255
- msgid "Add a Message"
2256
- msgstr ""
2257
-
2258
- #: includes/Settings.class.php:2215
2259
  msgid "Email of the user who made the booking"
2260
  msgstr ""
2261
 
2262
- #: includes/Settings.class.php:2216
2263
  msgid "* Name of the user who made the booking"
2264
  msgstr ""
2265
 
2266
- #: includes/Settings.class.php:2217
2267
  msgid "* Number of people booked"
2268
  msgstr ""
2269
 
2270
- #: includes/Settings.class.php:2218
2271
  msgid "* Date and time of the booking"
2272
  msgstr ""
2273
 
2274
- #: includes/Settings.class.php:2219
2275
  msgid "Phone number if supplied with the request"
2276
  msgstr ""
2277
 
2278
- #: includes/Settings.class.php:2220
2279
  msgid "Message added to the request"
2280
  msgstr ""
2281
 
2282
- #: includes/Settings.class.php:2221
2283
  msgid "A link to the admin panel showing pending bookings"
2284
  msgstr ""
2285
 
2286
- #: includes/Settings.class.php:2222
2287
  msgid ""
2288
  "A link that a guest can use to cancel their booking if cancellations are "
2289
  "enabled"
2290
  msgstr ""
2291
 
2292
- #: includes/Settings.class.php:2223
2293
  msgid ""
2294
  "A link to confirm this booking. Only include this in admin notifications"
2295
  msgstr ""
2296
 
2297
- #: includes/Settings.class.php:2224
2298
  msgid "A link to reject this booking. Only include this in admin notifications"
2299
  msgstr ""
2300
 
2301
- #: includes/Settings.class.php:2225
2302
  msgid "The name of this website"
2303
  msgstr ""
2304
 
2305
- #: includes/Settings.class.php:2226
2306
  msgid "A link to this website"
2307
  msgstr ""
2308
 
2309
- #: includes/Settings.class.php:2227
2310
  msgid "Current date and time"
2311
  msgstr ""
2312
 
2313
- #: includes/Settings.class.php:2228
2314
  msgid "The table(s) for the booking"
2315
  msgstr ""
2316
 
@@ -2318,10 +2421,6 @@ msgstr ""
2318
  msgid "Upcoming"
2319
  msgstr ""
2320
 
2321
- #: includes/WP_List_Table.BookingsTable.class.php:332
2322
- msgid "Today"
2323
- msgstr ""
2324
-
2325
  #: includes/WP_List_Table.BookingsTable.class.php:343
2326
  msgid "Past"
2327
  msgstr ""
@@ -2452,44 +2551,44 @@ msgid ""
2452
  "customer from the list of bookings in your admin panel."
2453
  msgstr ""
2454
 
2455
- #: includes/integrations/business-profile.php:126
2456
- #: includes/integrations/business-profile.php:129
2457
  msgid "Show book a table link"
2458
  msgstr ""
2459
 
2460
- #: includes/integrations/business-profile.php:189
2461
  msgid "--- Bakery"
2462
  msgstr ""
2463
 
2464
- #: includes/integrations/business-profile.php:190
2465
  msgid "--- Bar or Pub"
2466
  msgstr ""
2467
 
2468
- #: includes/integrations/business-profile.php:191
2469
  msgid "--- Brewery"
2470
  msgstr ""
2471
 
2472
- #: includes/integrations/business-profile.php:192
2473
  msgid "--- Cafe or Coffee Shop"
2474
  msgstr ""
2475
 
2476
- #: includes/integrations/business-profile.php:193
2477
  msgid "--- FastFoodRestaurant"
2478
  msgstr ""
2479
 
2480
- #: includes/integrations/business-profile.php:194
2481
  msgid "--- Ice Cream Shop"
2482
  msgstr ""
2483
 
2484
- #: includes/integrations/business-profile.php:195
2485
  msgid "--- Restaurant"
2486
  msgstr ""
2487
 
2488
- #: includes/integrations/business-profile.php:196
2489
  msgid "--- Winery"
2490
  msgstr ""
2491
 
2492
- #: includes/integrations/business-profile.php:289
2493
  msgid "Footer Contact Details"
2494
  msgstr ""
2495
 
@@ -2618,53 +2717,17 @@ msgstr ""
2618
  msgid "The email a user receives when they are late for their reservation."
2619
  msgstr ""
2620
 
2621
- #: includes/template-functions.php:166
2622
  #, php-format
2623
  msgid ""
2624
  "Your reservation deposit payment has failed with the following message \"%s"
2625
  "\" Please contact the site administrator for assistance."
2626
  msgstr ""
2627
 
2628
- #: includes/template-functions.php:188
2629
  msgid "Your reservation has been successfully cancelled."
2630
  msgstr ""
2631
 
2632
- #: includes/template-functions.php:193 restaurant-reservations.php:522
2633
- msgid "Want to modify your reservation?"
2634
- msgstr ""
2635
-
2636
- #: includes/template-functions.php:196
2637
- msgid "Use the form below to modify your reservation"
2638
- msgstr ""
2639
-
2640
- #: includes/template-functions.php:197
2641
- msgid "Email:"
2642
- msgstr ""
2643
-
2644
- #: includes/template-functions.php:200
2645
- msgid "Find Reservations"
2646
- msgstr ""
2647
-
2648
- #: includes/template-functions.php:255
2649
- msgid "Proceed to Deposit"
2650
- msgstr ""
2651
-
2652
- #: includes/template-functions.php:256
2653
- msgid "Request Booking or Proceed to Deposit"
2654
- msgstr ""
2655
-
2656
- #: includes/template-functions.php:257
2657
- msgid "Request Booking"
2658
- msgstr ""
2659
-
2660
- #: includes/template-functions.php:387
2661
- msgid "Set reservation status to 'Arrived'?"
2662
- msgstr ""
2663
-
2664
- #: includes/template-functions.php:398
2665
- msgid "Arrived"
2666
- msgstr ""
2667
-
2668
  #: lib/simple-admin-pages/classes/AdminPage.class.php:173
2669
  msgid "You do not have sufficient permissions to access this page."
2670
  msgstr ""
@@ -2681,52 +2744,51 @@ msgstr ""
2681
  msgid "Booking Manager"
2682
  msgstr ""
2683
 
2684
- #: restaurant-reservations.php:404
2685
  msgid "MENU"
2686
  msgstr ""
2687
 
2688
- #: restaurant-reservations.php:405
2689
  msgid "Dashboard"
2690
  msgstr ""
2691
 
2692
- #: restaurant-reservations.php:408
2693
  msgid "Custom Fields"
2694
  msgstr ""
2695
 
2696
- #: restaurant-reservations.php:523
2697
- msgid "Make a reservation"
2698
- msgstr ""
2699
-
2700
- #: restaurant-reservations.php:524
2701
- msgid "guest"
2702
- msgstr ""
2703
-
2704
- #: restaurant-reservations.php:525
2705
- msgid "guests"
2706
  msgstr ""
2707
 
2708
- #: restaurant-reservations.php:527
2709
- msgid "Cancelled"
2710
  msgstr ""
2711
 
2712
- #: restaurant-reservations.php:550
2713
  msgid "View the help documentation for Restaurant Reservations"
2714
  msgstr ""
2715
 
2716
- #: restaurant-reservations.php:550
2717
  msgid "Help"
2718
  msgstr ""
2719
 
2720
- #: restaurant-reservations.php:639
2721
  msgid ""
2722
  "You're using the Five-Star Restaurant Reservations premium version, but the "
2723
  "premium helper plugin is not active."
2724
  msgstr ""
2725
 
2726
- #: restaurant-reservations.php:641
2727
  #, php-format
2728
  msgid ""
2729
  "Please re-activate the helper plugin, or <a target='_blank' "
2730
  "href='%s'>download and install it</a> if the plugin is no longer installed "
2731
  "to ensure continued access to the premium features of the plugin."
2732
  msgstr ""
 
 
 
 
 
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: Five Star Restaurant Reservations\n"
5
+ "POT-Creation-Date: 2022-04-12 10:03-0400\n"
6
  "PO-Revision-Date: 2020-08-20 11:03-0400\n"
7
  "Last-Translator: \n"
8
  "Language-Team: Five Star Plugins\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
 
 
13
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
14
+ "X-Generator: Poedit 3.0.1\n"
15
+ "X-Poedit-Basepath: ..\n"
16
  "X-Poedit-KeywordsList: __;_e\n"
17
  "X-Poedit-SearchPath-0: .\n"
18
 
19
+ #: assets/js/block-booking-form.js:8 includes/Settings.class.php:1241
20
  #: includes/WP_Widget.BookingFormWidget.class.php:25
21
  msgid "Booking Form"
22
  msgstr ""
23
 
24
+ #: assets/js/block-booking-form.js:31 includes/Export.CSV.class.php:156
25
+ #: includes/MailChimp.class.php:114 includes/MultipleLocations.class.php:413
26
+ #: includes/Settings.class.php:513
27
  msgid "Location"
28
  msgstr ""
29
 
40
  msgid "Add New"
41
  msgstr ""
42
 
43
+ #: includes/AdminBookings.class.php:170 restaurant-reservations.php:494
44
  msgid "Add Booking"
45
  msgstr ""
46
 
47
  #: includes/AdminBookings.class.php:173 includes/AdminBookings.class.php:214
48
  #: includes/AdminBookings.class.php:259 includes/Editor.class.php:448
49
+ #: includes/Settings.class.php:552
50
  msgid "Cancel"
51
  msgstr ""
52
 
60
  msgid "Subject"
61
  msgstr ""
62
 
63
+ #: includes/AdminBookings.class.php:205 includes/Export.CSV.class.php:85
64
+ #: includes/MailChimp.class.php:97 includes/Settings.class.php:530
65
  #: includes/WP_List_Table.BookingsTable.class.php:664
66
  msgid "Message"
67
  msgstr ""
72
 
73
  #: includes/AdminBookings.class.php:275 includes/AdminBookings.class.php:301
74
  #: includes/AdminBookings.class.php:331 includes/AdminBookings.class.php:344
75
+ #: includes/Editor.class.php:481 includes/Settings.class.php:517
76
  msgid "Close"
77
  msgstr ""
78
 
88
  "be undone."
89
  msgstr ""
90
 
91
+ #: includes/AdminBookings.class.php:410 includes/Export.CSV.class.php:87
92
  msgid "Booking Status"
93
  msgstr ""
94
 
109
 
110
  #: includes/AdminBookings.class.php:478 includes/AdminBookings.class.php:866
111
  #: includes/Editor.class.php:497 includes/Helper.class.php:45
112
+ #: restaurant-reservations.php:692
113
  #, php-format
114
  msgid "You have been logged out. Please %slogin again%s."
115
  msgstr ""
161
  msgid "The email you entered is not valid."
162
  msgstr ""
163
 
 
 
 
 
164
  #: includes/Ajax.class.php:157
165
  msgid "Unkown error. Please try again"
166
  msgstr ""
177
  msgid "Five Star Restaurant Reservations"
178
  msgstr ""
179
 
180
+ #: includes/Booking.class.php:292
181
  msgid "Please enter the date you would like to book."
182
  msgstr ""
183
 
184
+ #: includes/Booking.class.php:302
185
  msgid ""
186
  "The date you entered is not valid. Please select from one of the dates in "
187
  "the calendar."
188
  msgstr ""
189
 
190
+ #: includes/Booking.class.php:313
191
  msgid "Please enter the time you would like to book."
192
  msgstr ""
193
 
194
+ #: includes/Booking.class.php:323
195
  msgid ""
196
  "The time you entered is not valid. Please select from one of the times "
197
  "provided."
198
  msgstr ""
199
 
200
+ #: includes/Booking.class.php:346
201
  #, php-format
202
  msgid "Sorry, bookings can not be made more than %s days in advance."
203
  msgstr ""
204
 
205
+ #: includes/Booking.class.php:357
206
  msgid "Sorry, bookings can not be made in the past."
207
  msgstr ""
208
 
209
+ #: includes/Booking.class.php:366
210
  msgid "Sorry, bookings can not be made for the same day."
211
  msgstr ""
212
 
213
+ #: includes/Booking.class.php:374
214
  #, php-format
215
  msgid "Sorry, bookings must be made more than %s days in advance."
216
  msgstr ""
217
 
218
+ #: includes/Booking.class.php:376
219
  #, php-format
220
  msgid "Sorry, bookings must be made more than %s hours in advance."
221
  msgstr ""
222
 
223
+ #: includes/Booking.class.php:378
224
  #, php-format
225
  msgid "Sorry, bookings must be made more than %s minutes in advance."
226
  msgstr ""
227
 
228
+ #: includes/Booking.class.php:478
229
  msgid "Sorry, no bookings are being accepted then."
230
  msgstr ""
231
 
232
+ #: includes/Booking.class.php:537
233
  msgid "Sorry, no bookings are being accepted on that date."
234
  msgstr ""
235
 
236
+ #: includes/Booking.class.php:543
237
  msgid "Sorry, no bookings are being accepted at that time."
238
  msgstr ""
239
 
240
+ #: includes/Booking.class.php:565
241
  msgid "Please enter a name for this booking."
242
  msgstr ""
243
 
244
+ #: includes/Booking.class.php:575
245
  msgid "Please let us know how many people will be in your party."
246
  msgstr ""
247
 
248
+ #: includes/Booking.class.php:585
249
  #, php-format
250
  msgid "We only accept bookings for parties of up to %d people."
251
  msgstr ""
252
 
253
+ #: includes/Booking.class.php:593
254
  #, php-format
255
  msgid "We only accept bookings for parties of more than %d people."
256
  msgstr ""
257
 
258
+ #: includes/Booking.class.php:604
259
  msgid "Please enter an email address so we can confirm your booking."
260
  msgstr ""
261
 
262
+ #: includes/Booking.class.php:610
263
  msgid "Please enter a valid email address so we can confirm your booking."
264
  msgstr ""
265
 
266
+ #: includes/Booking.class.php:621
267
  msgid "Please provide a phone number so we can confirm your booking."
268
  msgstr ""
269
 
270
+ #: includes/Booking.class.php:634
271
  msgid "Please select a table for your booking."
272
  msgstr ""
273
 
274
+ #: includes/Booking.class.php:644
275
  msgid "Please select a valid table for your booking."
276
  msgstr ""
277
 
278
+ #: includes/Booking.class.php:654
279
  msgid "Please fill out the reCAPTCHA box before submitting."
280
  msgstr ""
281
 
282
+ #: includes/Booking.class.php:676
283
  msgid "Please fill out the reCAPTCHA box again and re-submit."
284
  msgstr ""
285
 
286
+ #: includes/Booking.class.php:678
287
  msgid " If you encounter reCAPTCHA error multiple times, please contact us."
288
  msgstr ""
289
 
290
+ #: includes/Booking.class.php:712
291
  msgid "Please complete this field to request a booking."
292
  msgstr ""
293
 
294
+ #: includes/Booking.class.php:724
295
  msgid ""
296
  "Your booking has been rejected. Please call us if you would like to make a "
297
  "booking."
298
  msgstr ""
299
 
300
+ #: includes/Booking.class.php:738
301
  msgid ""
302
  "The maximum number of reservations for that timeslot has been reached. "
303
  "Please select a different timeslot."
304
  msgstr ""
305
 
306
+ #: includes/Booking.class.php:747
307
  msgid ""
308
  "With your party, the maximum number of seats for that timeslot would be "
309
  "exceeded. Please select a different timeslot or reduce your party size."
310
  msgstr ""
311
 
312
+ #: includes/Booking.class.php:756
313
  msgid ""
314
  "Your booking and personal information exactly matches another booking. If "
315
  "this was not caused by refreshing the page, please call us to make a booking."
318
  #: includes/CustomPostTypes.class.php:50 includes/CustomPostTypes.class.php:52
319
  #: includes/CustomPostTypes.class.php:53
320
  #: includes/WP_List_Table.BookingsTable.class.php:138
321
+ #: restaurant-reservations.php:419
322
  msgid "Bookings"
323
  msgstr ""
324
 
331
  msgid "Add New Booking"
332
  msgstr ""
333
 
334
+ #: includes/CustomPostTypes.class.php:56 restaurant-reservations.php:495
335
  msgid "Edit Booking"
336
  msgstr ""
337
 
423
  msgid "Bookings Summary"
424
  msgstr ""
425
 
426
+ #: includes/Dashboard.class.php:142 includes/Export.CSV.class.php:79
427
+ #: includes/Settings.class.php:514
428
  #: includes/WP_List_Table.BookingsTable.class.php:547
429
  msgid "Date"
430
  msgstr ""
431
 
432
+ #: includes/Dashboard.class.php:143 includes/Export.CSV.class.php:82
433
+ #: includes/Notifications.class.php:148 includes/Settings.class.php:521
434
+ #: includes/Settings.class.php:560 includes/Settings.class.php:775
435
  #: includes/WP_List_Table.BookingsTable.class.php:549
 
436
  msgid "Party"
437
  msgstr ""
438
 
439
+ #: includes/Dashboard.class.php:144 includes/Export.CSV.class.php:81
440
+ #: includes/MailChimp.class.php:94 includes/Notifications.class.php:149
441
+ #: includes/Settings.class.php:526 includes/Settings.class.php:561
442
+ #: includes/Settings.class.php:776
443
  #: includes/WP_List_Table.BookingsTable.class.php:550
 
444
  msgid "Name"
445
  msgstr ""
446
 
447
+ #: includes/Dashboard.class.php:145 includes/Notifications.class.php:153
448
+ #: includes/Settings.class.php:565 includes/Settings.class.php:780
449
  #: includes/WP_List_Table.BookingsTable.class.php:553
 
450
  msgid "Status"
451
  msgstr ""
452
 
466
  msgid "Select version to trial"
467
  msgstr ""
468
 
469
+ #: includes/Dashboard.class.php:265 includes/Settings.class.php:1996
470
+ #: includes/Settings.class.php:2011 includes/Settings.class.php:2027
471
  msgid "Premium"
472
  msgstr ""
473
 
474
+ #: includes/Dashboard.class.php:266 includes/Settings.class.php:1980
475
  msgid "Ultimate"
476
  msgstr ""
477
 
537
  "custom fields will be removed. This action can not be undone."
538
  msgstr ""
539
 
540
+ #: includes/Editor.class.php:114 restaurant-reservations.php:496
541
  msgid ""
542
  "An unspecified error occurred. Please try again. If the problem persists, "
543
  "try logging out and logging back in."
694
  "An elegant template for sending a message with an air of sophistication."
695
  msgstr ""
696
 
697
+ #: includes/Export.CSV.class.php:78
698
  msgid "Booking ID"
699
  msgstr ""
700
 
701
+ #: includes/Export.CSV.class.php:80
702
+ #: includes/InstallationWalkthrough.class.php:357
703
+ #: includes/Notifications.class.php:147 includes/Settings.class.php:518
704
+ #: includes/Settings.class.php:559 includes/Settings.class.php:774
705
+ msgid "Time"
706
+ msgstr ""
707
+
708
+ #: includes/Export.CSV.class.php:83 includes/MailChimp.class.php:171
709
+ #: includes/Notifications.class.php:150 includes/Settings.class.php:527
710
+ #: includes/Settings.class.php:562 includes/Settings.class.php:777
711
  #: includes/WP_List_Table.BookingsTable.class.php:551
 
712
  msgid "Email"
713
  msgstr ""
714
 
715
+ #: includes/Export.CSV.class.php:84 includes/Notifications.class.php:151
716
+ #: includes/Settings.class.php:528 includes/Settings.class.php:563
717
+ #: includes/Settings.class.php:778
718
  #: includes/WP_List_Table.BookingsTable.class.php:552
 
719
  msgid "Phone"
720
  msgstr ""
721
 
722
+ #: includes/Export.CSV.class.php:86
723
  msgid "Date the request was made"
724
  msgstr ""
725
 
726
+ #: includes/Export.CSV.class.php:199
727
  msgid "Data Privacy Consent"
728
  msgstr ""
729
 
730
+ #: includes/Export.CSV.class.php:215 includes/Settings.class.php:568
731
+ #: includes/Settings.class.php:1175
732
+ #: includes/integrations/business-profile.php:293
733
  msgid "Yes"
734
  msgstr ""
735
 
736
+ #: includes/Export.CSV.class.php:215 includes/Settings.class.php:569
737
+ #: includes/Settings.class.php:1174
738
+ #: includes/integrations/business-profile.php:294
739
  msgid "No"
740
  msgstr ""
741
 
742
+ #: includes/Export.CSV.class.php:234 includes/Export.PDF.class.php:232
743
+ #: includes/Settings.class.php:522
744
  msgid "Table(s)"
745
  msgstr ""
746
 
747
+ #: includes/Export.CSV.class.php:269 includes/Settings.class.php:554
748
  #: includes/WP_List_Table.BookingsTable.class.php:556
 
749
  msgid "Deposit"
750
  msgstr ""
751
 
752
+ #: includes/Export.CSV.class.php:270
753
  msgid "Receipt ID"
754
  msgstr ""
755
 
756
+ #: includes/Export.PDF.class.php:153
757
  msgid ""
758
  "An unexpected error occurred and your export request could not be fulfilled."
759
  msgstr ""
760
 
761
+ #: includes/Export.PDF.class.php:279
762
  #, php-format
763
  msgid ""
764
  "Your server has not loaded the mbstring PHP extension, or has disabled the "
795
  msgid "Unable to create export to match your request."
796
  msgstr ""
797
 
798
+ #: includes/ExportHandler.class.php:143
799
  msgid ""
800
  "You selected a date range but didn't enter a start or end date. Please "
801
  "return and enter a start or end date."
802
  msgstr ""
803
 
804
+ #: includes/ExportHandler.class.php:150
805
  msgid "There are no bookings which match your export request."
806
  msgstr ""
807
 
869
  msgid "The option you selected is not valid. Please make another choice."
870
  msgstr ""
871
 
872
+ #: includes/Helper.class.php:59 includes/PaymentGatewayStripe.class.php:221
873
+ #: includes/PaymentGatewayStripe.class.php:326
874
+ #: includes/PaymentGatewayStripe.class.php:419
875
  msgid ""
876
  "The request has been rejected because it does not appear to have come from "
877
  "this site."
1008
  msgstr ""
1009
 
1010
  #: includes/InstallationWalkthrough.class.php:221
1011
+ #: includes/MultipleLocations.class.php:834 includes/Settings.class.php:905
1012
  msgid "Add new scheduling rule"
1013
  msgstr ""
1014
 
1052
  msgstr ""
1053
 
1054
  #: includes/InstallationWalkthrough.class.php:258
1055
+ #: includes/Settings.class.php:987
1056
  msgid "From 1 day in advance"
1057
  msgstr ""
1058
 
1059
  #: includes/InstallationWalkthrough.class.php:259
1060
+ #: includes/Settings.class.php:988
1061
  msgid "From 1 week in advance"
1062
  msgstr ""
1063
 
1064
  #: includes/InstallationWalkthrough.class.php:260
1065
+ #: includes/Settings.class.php:989
1066
  msgid "From 2 weeks in advance"
1067
  msgstr ""
1068
 
1069
  #: includes/InstallationWalkthrough.class.php:261
1070
+ #: includes/Settings.class.php:990
1071
  msgid "From 30 days in advance"
1072
  msgstr ""
1073
 
1074
  #: includes/InstallationWalkthrough.class.php:262
1075
+ #: includes/Settings.class.php:992
1076
  msgid "From 90 days in advance"
1077
  msgstr ""
1078
 
1081
  msgstr ""
1082
 
1083
  #: includes/InstallationWalkthrough.class.php:268
1084
+ #: includes/Settings.class.php:1008
1085
  msgid "Up to the last minute"
1086
  msgstr ""
1087
 
1088
  #: includes/InstallationWalkthrough.class.php:269
1089
+ #: includes/Settings.class.php:1009
1090
  msgid "At least 15 minutes in advance"
1091
  msgstr ""
1092
 
1093
  #: includes/InstallationWalkthrough.class.php:270
1094
+ #: includes/Settings.class.php:1010
1095
  msgid "At least 30 minutes in advance"
1096
  msgstr ""
1097
 
1098
  #: includes/InstallationWalkthrough.class.php:271
1099
+ #: includes/Settings.class.php:1011
1100
  msgid "At least 45 minutes in advance"
1101
  msgstr ""
1102
 
1103
  #: includes/InstallationWalkthrough.class.php:272
1104
+ #: includes/Settings.class.php:1012
1105
  msgid "At least 1 hour in advance"
1106
  msgstr ""
1107
 
1108
  #: includes/InstallationWalkthrough.class.php:273
1109
+ #: includes/Settings.class.php:1013
1110
  msgid "At least 4 hours in advance"
1111
  msgstr ""
1112
 
1113
  #: includes/InstallationWalkthrough.class.php:274
1114
+ #: includes/Settings.class.php:1014
1115
  msgid "At least 24 hours in advance"
1116
  msgstr ""
1117
 
1124
  msgstr ""
1125
 
1126
  #: includes/InstallationWalkthrough.class.php:281
1127
+ #: includes/Settings.class.php:1052
1128
  msgid "Every 30 minutes"
1129
  msgstr ""
1130
 
1131
  #: includes/InstallationWalkthrough.class.php:282
1132
+ #: includes/Settings.class.php:1053
1133
  msgid "Every 15 minutes"
1134
  msgstr ""
1135
 
1136
  #: includes/InstallationWalkthrough.class.php:283
1137
+ #: includes/Settings.class.php:1054
1138
  msgid "Every 10 minutes"
1139
  msgstr ""
1140
 
1141
  #: includes/InstallationWalkthrough.class.php:284
1142
+ #: includes/Settings.class.php:1055
1143
  msgid "Every 5 minutes"
1144
  msgstr ""
1145
 
1163
  msgid "Days of the week"
1164
  msgstr ""
1165
 
 
 
 
 
 
 
1166
  #: includes/InstallationWalkthrough.class.php:371
1167
  msgid "Start"
1168
  msgstr ""
1186
  msgstr ""
1187
 
1188
  #: includes/InstallationWalkthrough.class.php:411
1189
+ #: includes/MultipleLocations.class.php:848 includes/Settings.class.php:920
1190
  msgid "Delete scheduling rule"
1191
  msgstr ""
1192
 
1221
  "and try again."
1222
  msgstr ""
1223
 
1224
+ #: includes/MailChimp.class.php:93
1225
  msgid "Date/Time of Booking"
1226
  msgstr ""
1227
 
1228
+ #: includes/MailChimp.class.php:95
1229
  msgid "Party Size"
1230
  msgstr ""
1231
 
1232
+ #: includes/MailChimp.class.php:96
1233
  msgid "Phone Number"
1234
  msgstr ""
1235
 
1236
+ #: includes/MailChimp.class.php:167
1237
  msgid "Booking Form Data"
1238
  msgstr ""
1239
 
1240
+ #: includes/MailChimp.class.php:168
1241
  msgid "MailChimp List Field"
1242
  msgstr ""
1243
 
1244
+ #: includes/MailChimp.class.php:169
1245
  msgid ""
1246
  "Connect information from the booking request to <a href=\"http://kb."
1247
  "mailchimp.com/article/getting-started-with-merge-tags\" target=\"_blank"
1248
  "\">merge fields</a> in your MailChimp list."
1249
  msgstr ""
1250
 
1251
+ #: includes/MailChimp.class.php:170
1252
  msgid ""
1253
  "There was an unexpected error when trying to retrieve the list's merge "
1254
  "fields."
1255
  msgstr ""
1256
 
1257
+ #: includes/MailChimp.class.php:172
1258
  msgid "The email field is automatically merged."
1259
  msgstr ""
1260
 
1261
+ #: includes/MailChimp.class.php:457
1262
  msgid ""
1263
  "The subscription request has been rejected because it does not appear to "
1264
  "have come from this site."
1265
  msgstr ""
1266
 
1267
+ #: includes/MultipleLocations.class.php:365
1268
  msgid "Please select a location for your booking."
1269
  msgstr ""
1270
 
1271
+ #: includes/MultipleLocations.class.php:372
1272
  msgid "The location you selected is not valid. Please select another location."
1273
  msgstr ""
1274
 
1275
+ #: includes/MultipleLocations.class.php:481
1276
  msgid "Reservations"
1277
  msgstr ""
1278
 
1279
+ #: includes/MultipleLocations.class.php:694
1280
  msgid "Location for which this booking was made."
1281
  msgstr ""
1282
 
1283
+ #: includes/MultipleLocations.class.php:800
1284
  msgid "Global"
1285
  msgstr ""
1286
 
1287
+ #: includes/MultipleLocations.class.php:813
1288
  msgid "Select Schedule Location"
1289
  msgstr ""
1290
 
1291
+ #: includes/MultipleLocations.class.php:825
1292
  msgid "Schedule Location"
1293
  msgstr ""
1294
 
1295
+ #: includes/MultipleLocations.class.php:826
1296
  msgid ""
1297
  "Select which location the schedule will apply to. If a specific location "
1298
  "doesn't have a schedule set, then it will fall back to the global schedule "
1299
  "when booking."
1300
  msgstr ""
1301
 
1302
+ #: includes/MultipleLocations.class.php:867 includes/Settings.class.php:939
1303
  msgid "Schedule"
1304
  msgstr ""
1305
 
1306
+ #: includes/MultipleLocations.class.php:868 includes/Settings.class.php:940
1307
  msgid "Define the weekly schedule during which you accept bookings."
1308
  msgstr ""
1309
 
1310
+ #: includes/MultipleLocations.class.php:894 includes/Settings.class.php:966
1311
  msgid "Exceptions"
1312
  msgstr ""
1313
 
1314
+ #: includes/MultipleLocations.class.php:895 includes/Settings.class.php:967
1315
  msgid ""
1316
  "Define special opening hours for holidays, events or other needs. Leave the "
1317
  "time empty if you're closed all day."
1318
  msgstr ""
1319
 
1320
+ #: includes/MultipleLocations.class.php:912
1321
  msgid "Select Seat Restrictions Location"
1322
  msgstr ""
1323
 
1324
+ #: includes/MultipleLocations.class.php:924
1325
  msgid "Seat Restrictions Location"
1326
  msgstr ""
1327
 
1328
+ #: includes/MultipleLocations.class.php:925
1329
  msgid ""
1330
  "Select which location the restrictions will apply to. If a specific location "
1331
  "doesn't have restrictions set, then the global total number will be used as "
1332
  "a fall-back."
1333
  msgstr ""
1334
 
1335
+ #: includes/MultipleLocations.class.php:955
1336
  msgid "Max Reservations"
1337
  msgstr ""
1338
 
1339
+ #: includes/MultipleLocations.class.php:956
1340
  msgid ""
1341
  "How many reservations, if enabled, should be allowed at the same time at "
1342
  "this location? Set dining block length to change how long a meal typically "
1343
  "lasts."
1344
  msgstr ""
1345
 
1346
+ #: includes/MultipleLocations.class.php:969
1347
  msgid "Max People"
1348
  msgstr ""
1349
 
1350
+ #: includes/MultipleLocations.class.php:970
1351
  msgid ""
1352
  "How many people, if enabled, should be allowed to be present at this "
1353
  "restaurant location at the same time? Set dining block length to change how "
1355
  "set."
1356
  msgstr ""
1357
 
1358
+ #: includes/Notifications.class.php:138
1359
+ msgid "There are currently no bookings today."
 
 
 
 
 
 
 
 
 
 
 
 
1360
  msgstr ""
1361
 
1362
+ #: includes/Notifications.class.php:142
1363
  msgid "Please find a summary of today's reservations in the table below."
1364
  msgstr ""
1365
 
1366
+ #: includes/Notifications.class.php:152 includes/Settings.class.php:564
1367
+ #: includes/Settings.class.php:779
1368
  #: includes/WP_List_Table.BookingsTable.class.php:557
 
1369
  msgid "Table"
1370
  msgstr ""
1371
 
1372
+ #: includes/Notifications.class.php:154 includes/Settings.class.php:566
1373
+ #: includes/Settings.class.php:781
1374
  #: includes/WP_List_Table.BookingsTable.class.php:560
 
1375
  msgid "Details"
1376
  msgstr ""
1377
 
1378
+ #: includes/Notifications.class.php:186
1379
  msgid "Daily Email Summary"
1380
  msgstr ""
1381
 
1399
  msgid "Stripe"
1400
  msgstr ""
1401
 
1402
+ #: includes/PaymentGatewayStripe.class.php:455
1403
+ msgid "Invalid submission. Please contact admin"
1404
+ msgstr ""
1405
+
1406
+ #: includes/PaymentGatewayStripe.class.php:480
1407
+ msgid "Payment charge failed. Please try again"
1408
+ msgstr ""
1409
+
1410
+ #: includes/PaymentGatewayStripe.class.php:581
1411
+ msgid "Payment on Hold"
1412
+ msgstr ""
1413
+
1414
+ #: includes/PaymentGatewayStripe.class.php:582
1415
+ msgid "Payment has been held on the card, but not charged yet."
1416
+ msgstr ""
1417
+
1418
+ #: includes/PaymentGatewayStripe.class.php:587
1419
+ msgid "Held Payment Captured"
1420
+ msgstr ""
1421
+
1422
+ #: includes/PaymentGatewayStripe.class.php:588
1423
+ msgid "Payment has been captured."
1424
+ msgstr ""
1425
+
1426
+ #: includes/PaymentGatewayStripe.class.php:601
1427
+ msgid "Charge Payment on Hold"
1428
+ msgstr ""
1429
+
1430
+ #: includes/PaymentGatewayStripe.class.php:641
1431
+ #: includes/PaymentGatewayStripe.class.php:648
1432
+ #, php-format
1433
+ msgid "Five Star RTB: Stripe Payment capture failed. Reason: %s"
1434
+ msgstr ""
1435
+
1436
+ #: includes/PaymentGatewayStripe.class.php:660
1437
+ #, php-format
1438
+ msgid "Unable to find the Booking for ID %s"
1439
+ msgstr ""
1440
+
1441
+ #: includes/PaymentManager.class.php:248
1442
+ msgid "Please select a valid payment gateway."
1443
+ msgstr ""
1444
+
1445
+ #: includes/PaymentManager.class.php:402
1446
+ msgid "Invalid gateweay selected. Please contact us for the confirmation."
1447
+ msgstr ""
1448
+
1449
+ #: includes/ReviewAsk.class.php:59
1450
+ msgid "Email Address"
1451
+ msgstr ""
1452
+
1453
+ #: includes/Settings.class.php:509
1454
+ msgid "Sign up for our mailing list."
1455
+ msgstr ""
1456
+
1457
+ #: includes/Settings.class.php:512
1458
+ msgid "Book a table"
1459
+ msgstr ""
1460
+
1461
+ #: includes/Settings.class.php:515
1462
+ #: includes/WP_List_Table.BookingsTable.class.php:332
1463
+ msgid "Today"
1464
+ msgstr ""
1465
+
1466
+ #: includes/Settings.class.php:516 includes/Settings.class.php:519
1467
+ msgid "Clear"
1468
+ msgstr ""
1469
+
1470
+ #: includes/Settings.class.php:520
1471
+ msgid ""
1472
+ "There are currently no times available for booking on your selected date."
1473
+ msgstr ""
1474
+
1475
+ #: includes/Settings.class.php:523
1476
+ msgid "min."
1477
+ msgstr ""
1478
+
1479
+ #: includes/Settings.class.php:524
1480
+ msgid "max."
1481
+ msgstr ""
1482
+
1483
+ #: includes/Settings.class.php:525
1484
+ msgid "Contact Details"
1485
+ msgstr ""
1486
+
1487
+ #: includes/Settings.class.php:529
1488
+ msgid "Add a Message"
1489
+ msgstr ""
1490
+
1491
+ #: includes/Settings.class.php:531
1492
+ msgid "Request Booking"
1493
+ msgstr ""
1494
+
1495
+ #: includes/Settings.class.php:533
1496
+ msgid "Payment Gateway"
1497
+ msgstr ""
1498
+
1499
+ #: includes/Settings.class.php:534
1500
+ msgid "Proceed to Deposit"
1501
+ msgstr ""
1502
+
1503
+ #: includes/Settings.class.php:535
1504
+ msgid "Request Booking or Proceed to Deposit"
1505
+ msgstr ""
1506
+
1507
+ #: includes/Settings.class.php:536
1508
+ msgid "Pay via PayPal"
1509
+ msgstr ""
1510
+
1511
+ #: includes/Settings.class.php:537
1512
+ msgid "Deposit Required: "
1513
+ msgstr ""
1514
+
1515
+ #: includes/Settings.class.php:538
1516
+ msgid ""
1517
+ "We are only placing a hold for the above amount on your payment instrument. "
1518
+ "You will be charged later."
1519
+ msgstr ""
1520
+
1521
+ #: includes/Settings.class.php:539
1522
  msgid "Card Detail"
1523
  msgstr ""
1524
 
1525
+ #: includes/Settings.class.php:540
1526
  msgid "Card Number"
1527
  msgstr ""
1528
 
1529
+ #: includes/Settings.class.php:541
1530
  msgid "CVC"
1531
  msgstr ""
1532
 
1533
+ #: includes/Settings.class.php:542
1534
  msgid "Expiration (MM/YYYY)"
1535
  msgstr ""
1536
 
1537
+ #: includes/Settings.class.php:543
1538
  msgid ""
1539
  "Please wait. Do not refresh until the button enables or the page reloads."
1540
  msgstr ""
1541
 
1542
+ #: includes/Settings.class.php:544
1543
  msgid "Make Deposit"
1544
  msgstr ""
1545
 
1546
+ #: includes/Settings.class.php:546
1547
+ msgid "Want to modify your reservation?"
 
 
 
 
1548
  msgstr ""
1549
 
1550
+ #: includes/Settings.class.php:547
1551
+ msgid "Make a reservation"
1552
  msgstr ""
1553
 
1554
+ #: includes/Settings.class.php:548
1555
+ msgid "Use the form below to modify your reservation"
1556
  msgstr ""
1557
 
1558
+ #: includes/Settings.class.php:549
1559
+ msgid "Email:"
1560
  msgstr ""
1561
 
1562
+ #: includes/Settings.class.php:550
1563
+ msgid "Find Reservations"
1564
  msgstr ""
1565
 
1566
+ #: includes/Settings.class.php:551
1567
+ msgid "No bookings were found for the email address you entered."
1568
  msgstr ""
1569
 
1570
+ #: includes/Settings.class.php:553
1571
+ msgid "Cancelled"
 
 
1572
  msgstr ""
1573
 
1574
+ #: includes/Settings.class.php:555
1575
+ msgid "guest"
 
1576
  msgstr ""
1577
 
1578
+ #: includes/Settings.class.php:556
1579
+ msgid "guests"
 
 
1580
  msgstr ""
1581
 
1582
+ #: includes/Settings.class.php:558
1583
+ msgid "Arrived"
1584
  msgstr ""
1585
 
1586
+ #: includes/Settings.class.php:567
1587
+ msgid "Set reservation status to 'Arrived'?"
1588
  msgstr ""
1589
 
1590
+ #: includes/Settings.class.php:571
1591
+ msgid "Cancel booking"
1592
  msgstr ""
1593
 
1594
+ #: includes/Settings.class.php:572
1595
+ msgid "View pending bookings"
1596
  msgstr ""
1597
 
1598
+ #: includes/Settings.class.php:573
1599
+ msgid "Confirm this booking"
1600
  msgstr ""
1601
 
1602
+ #: includes/Settings.class.php:574
1603
+ msgid "Reject this booking"
1604
  msgstr ""
1605
 
1606
+ #: includes/Settings.class.php:876 includes/Settings.class.php:877
1607
+ #: restaurant-reservations.php:425
1608
  msgid "Settings"
1609
  msgstr ""
1610
 
1611
+ #: includes/Settings.class.php:889
1612
  msgid "Booking Schedule"
1613
  msgstr ""
1614
 
1615
+ #: includes/Settings.class.php:898
1616
  msgid "Scheduling Options"
1617
  msgstr ""
1618
 
1619
+ #: includes/Settings.class.php:982
1620
  msgid "Early Bookings"
1621
  msgstr ""
1622
 
1623
+ #: includes/Settings.class.php:983
1624
  msgid ""
1625
  "Select how early customers can make their booking. (Administrators and "
1626
  "Booking Managers are not restricted by this setting.)"
1627
  msgstr ""
1628
 
1629
+ #: includes/Settings.class.php:986
1630
  msgid "Any time"
1631
  msgstr ""
1632
 
1633
+ #: includes/Settings.class.php:991
1634
  msgid "From 60 days in advance"
1635
  msgstr ""
1636
 
1637
+ #: includes/Settings.class.php:1004
1638
  msgid "Late Bookings"
1639
  msgstr ""
1640
 
1641
+ #: includes/Settings.class.php:1005
1642
  msgid ""
1643
  "Select how late customers can make their booking. (Administrators and "
1644
  "Booking Managers are not restricted by this setting.)"
1645
  msgstr ""
1646
 
1647
+ #: includes/Settings.class.php:1015
1648
  msgid "Block same-day bookings"
1649
  msgstr ""
1650
 
1651
+ #: includes/Settings.class.php:1027
1652
  msgid "Date Pre-selection"
1653
  msgstr ""
1654
 
1655
+ #: includes/Settings.class.php:1028
1656
  msgid ""
1657
  "When the booking form is loaded, should it automatically attempt to select a "
1658
  "valid date?"
1659
  msgstr ""
1660
 
1661
+ #: includes/Settings.class.php:1031
1662
  msgid "Select today if valid"
1663
  msgstr ""
1664
 
1665
+ #: includes/Settings.class.php:1032
1666
  msgid "Select today or next valid date"
1667
  msgstr ""
1668
 
1669
+ #: includes/Settings.class.php:1033
1670
  msgid "Leave empty"
1671
  msgstr ""
1672
 
1673
+ #: includes/Settings.class.php:1044
1674
  msgid "Time Interval"
1675
  msgstr ""
1676
 
1677
+ #: includes/Settings.class.php:1045
1678
  msgid "Select the number of minutes between each available time."
1679
  msgstr ""
1680
 
1681
+ #: includes/Settings.class.php:1048
1682
  msgid "Every 180 minutes"
1683
  msgstr ""
1684
 
1685
+ #: includes/Settings.class.php:1049
1686
  msgid "Every 120 minutes"
1687
  msgstr ""
1688
 
1689
+ #: includes/Settings.class.php:1050
1690
  msgid "Every 90 minutes"
1691
  msgstr ""
1692
 
1693
+ #: includes/Settings.class.php:1051
1694
  msgid "Every 60 minutes"
1695
  msgstr ""
1696
 
1697
+ #: includes/Settings.class.php:1066
1698
  msgid "Week Starts On"
1699
  msgstr ""
1700
 
1701
+ #: includes/Settings.class.php:1067
1702
  msgid "Select the first day of the week"
1703
  msgstr ""
1704
 
1705
+ #: includes/Settings.class.php:1070
1706
  msgid "Sunday"
1707
  msgstr ""
1708
 
1709
+ #: includes/Settings.class.php:1071
1710
  msgid "Monday"
1711
  msgstr ""
1712
 
1713
+ #: includes/Settings.class.php:1080
1714
  msgid "Basic"
1715
  msgstr ""
1716
 
1717
+ #: includes/Settings.class.php:1089 includes/Settings.class.php:1497
1718
  msgid "General"
1719
  msgstr ""
1720
 
1721
+ #: includes/Settings.class.php:1100
1722
  msgid "Booking Page"
1723
  msgstr ""
1724
 
1725
+ #: includes/Settings.class.php:1101
1726
  msgid ""
1727
  "Select a page on your site to automatically display the booking form and "
1728
  "confirmation message."
1729
  msgstr ""
1730
 
1731
+ #: includes/Settings.class.php:1119
1732
  msgid "Min Party Size"
1733
  msgstr ""
1734
 
1735
+ #: includes/Settings.class.php:1120
1736
  msgid "Set a minimum allowed party size for bookings."
1737
  msgstr ""
1738
 
1739
+ #: includes/Settings.class.php:1132
1740
  msgid "Max Party Size"
1741
  msgstr ""
1742
 
1743
+ #: includes/Settings.class.php:1133
1744
  msgid "Set a maximum allowed party size for bookings."
1745
  msgstr ""
1746
 
1747
+ #: includes/Settings.class.php:1145
1748
  msgid "Automatically Confirm Below Party Size"
1749
  msgstr ""
1750
 
1751
+ #: includes/Settings.class.php:1146
1752
  msgid ""
1753
  "Set a maximum party size below which all bookings will be automatically "
1754
  "confirmed."
1755
  msgstr ""
1756
 
1757
+ #: includes/Settings.class.php:1159
1758
  msgid "Allow Cancellations"
1759
  msgstr ""
1760
 
1761
+ #: includes/Settings.class.php:1160
1762
  msgid ""
1763
  "Adds a cancellation option to your booking form, so that customers are able "
1764
  "to cancel their reservations."
1765
  msgstr ""
1766
 
1767
+ #: includes/Settings.class.php:1170
1768
  msgid "Require Phone"
1769
  msgstr ""
1770
 
1771
+ #: includes/Settings.class.php:1171
1772
  msgid "Don't accept booking requests without a phone number."
1773
  msgstr ""
1774
 
1775
+ #: includes/Settings.class.php:1186
1776
  msgid "Pending Confirmation Message"
1777
  msgstr ""
1778
 
1779
+ #: includes/Settings.class.php:1187
1780
  msgid ""
1781
  "Enter the message to display when a booking request is made and is set to "
1782
  "pending confirmation."
1783
  msgstr ""
1784
 
1785
+ #: includes/Settings.class.php:1198
1786
  msgid "Confirmed Booking Message"
1787
  msgstr ""
1788
 
1789
+ #: includes/Settings.class.php:1199
1790
  msgid ""
1791
  "Enter the message to display when a booking is made that has been "
1792
  "automatically confirmed."
1793
  msgstr ""
1794
 
1795
+ #: includes/Settings.class.php:1210
1796
  msgid "Pending Redirect Page"
1797
  msgstr ""
1798
 
1799
+ #: includes/Settings.class.php:1211
1800
  msgid ""
1801
  "Input the URL of the page you want the booking form to redirect to after a "
1802
  "reservation is made that is set to pending. This overrides the \"Pending "
1803
  "Confirmation Message\" text/option."
1804
  msgstr ""
1805
 
1806
+ #: includes/Settings.class.php:1221
1807
  msgid "Confirmed Redirect Page"
1808
  msgstr ""
1809
 
1810
+ #: includes/Settings.class.php:1222
1811
  msgid ""
1812
  "Input the URL of the page you want the booking form to redirect to after a "
1813
  "reservation is made that is automatically confirmed. This overrides the "
1814
  "\"Confirmed Booking Message\" text/option."
1815
  msgstr ""
1816
 
1817
+ #: includes/Settings.class.php:1232
1818
  msgid "Cancellation Redirect Page"
1819
  msgstr ""
1820
 
1821
+ #: includes/Settings.class.php:1233
1822
  msgid ""
1823
  "Input the URL of the page you want the cancellation form to redirect to when "
1824
  "someone cancels their reservation. Only applicable if the \"Allow "
1826
  "success message instead of redirecting."
1827
  msgstr ""
1828
 
1829
+ #: includes/Settings.class.php:1252
1830
  msgid "Date Format"
1831
  msgstr ""
1832
 
1833
+ #: includes/Settings.class.php:1253
1834
  #, php-format
1835
  msgid ""
1836
  "Define how the date is formatted on the booking form. %sFormatting rules%s. "
1838
  "in notification messages, modify your general %sWordPress Settings%s."
1839
  msgstr ""
1840
 
1841
+ #: includes/Settings.class.php:1264
1842
  msgid "Time Format"
1843
  msgstr ""
1844
 
1845
+ #: includes/Settings.class.php:1265
1846
  #, php-format
1847
  msgid ""
1848
  "Define how the time is formatted on the booking form. %sFormatting rules%s. "
1850
  "in notification messages, modify your general %sWordPress Settings%s."
1851
  msgstr ""
1852
 
1853
+ #: includes/Settings.class.php:1276
1854
  msgid "Display Unavailable Time Slots"
1855
  msgstr ""
1856
 
1857
+ #: includes/Settings.class.php:1277
1858
  msgid ""
1859
  "Display any time slots (greyed out) which are not available for booking on "
1860
  "the front end."
1861
  msgstr ""
1862
 
1863
+ #: includes/Settings.class.php:1289
1864
  msgid "Language"
1865
  msgstr ""
1866
 
1867
+ #: includes/Settings.class.php:1290
1868
  msgid ""
1869
  "Select a language to use for the booking form datepicker if it is different "
1870
  "than your WordPress language setting."
1871
  msgstr ""
1872
 
1873
+ #: includes/Settings.class.php:1302
1874
  msgid "Refresh Bookings Page"
1875
  msgstr ""
1876
 
1877
+ #: includes/Settings.class.php:1303
1878
  msgid ""
1879
  "After how many minutes should the Bookings page be automatically refreshed? "
1880
  "The minimum is 1 minute and you can disable it by inputting 0 or leaving it "
1881
  "empty."
1882
  msgstr ""
1883
 
1884
+ #: includes/Settings.class.php:1311
1885
  msgid "Security"
1886
  msgstr ""
1887
 
1888
+ #: includes/Settings.class.php:1322
1889
  msgid "Banned Email Addresses"
1890
  msgstr ""
1891
 
1892
+ #: includes/Settings.class.php:1323
1893
  msgid ""
1894
  "You can block bookings from specific email addresses. Enter each email "
1895
  "address on a separate line."
1896
  msgstr ""
1897
 
1898
+ #: includes/Settings.class.php:1333
1899
  msgid "Banned IP Addresses"
1900
  msgstr ""
1901
 
1902
+ #: includes/Settings.class.php:1334
1903
  msgid ""
1904
  "You can block bookings from specific IP addresses. Enter each IP address on "
1905
  "a separate line. Be aware that many internet providers rotate their IP "
1909
  "block several people."
1910
  msgstr ""
1911
 
1912
+ #: includes/Settings.class.php:1342
1913
  msgid "Captcha"
1914
  msgstr ""
1915
 
1916
+ #: includes/Settings.class.php:1353
1917
  msgid "Enable Google reCAPTCHA v2"
1918
  msgstr ""
1919
 
1920
+ #: includes/Settings.class.php:1354
1921
  #, php-format
1922
  msgid ""
1923
  "Adds Google's reCAPTCHA code to your form, to verify guests before they can "
1925
  "configure this feature."
1926
  msgstr ""
1927
 
1928
+ #: includes/Settings.class.php:1364
1929
  msgid "Google Site Key"
1930
  msgstr ""
1931
 
1932
+ #: includes/Settings.class.php:1365
1933
  msgid "The site key provided to you by Google"
1934
  msgstr ""
1935
 
1936
+ #: includes/Settings.class.php:1375
1937
  msgid "Google Secret Key"
1938
  msgstr ""
1939
 
1940
+ #: includes/Settings.class.php:1376
1941
  msgid "The secret key provided to you by Google"
1942
  msgstr ""
1943
 
1944
+ #: includes/Settings.class.php:1384
1945
  msgid "Privacy"
1946
  msgstr ""
1947
 
1948
+ #: includes/Settings.class.php:1395
1949
  msgid "Disable IP Capture"
1950
  msgstr ""
1951
 
1952
+ #: includes/Settings.class.php:1396
1953
  msgid ""
1954
  "This turns off the feature that captures the IP address of the device making "
1955
  "the booking."
1956
  msgstr ""
1957
 
1958
+ #: includes/Settings.class.php:1406
1959
  msgid "Require Consent"
1960
  msgstr ""
1961
 
1962
+ #: includes/Settings.class.php:1407
1963
  msgid ""
1964
  "Require customers to consent to the collection of their details when making "
1965
  "a booking. This may be required to comply with privacy laws in your country."
1966
  msgstr ""
1967
 
1968
+ #: includes/Settings.class.php:1417
1969
  msgid "Consent Statement"
1970
  msgstr ""
1971
 
1972
+ #: includes/Settings.class.php:1418
1973
  msgid ""
1974
  "Enter the statement you would like customers to confirm when making a "
1975
  "booking."
1976
  msgstr ""
1977
 
1978
+ #: includes/Settings.class.php:1428
1979
  msgid "Privacy Statement Page"
1980
  msgstr ""
1981
 
1982
+ #: includes/Settings.class.php:1429
1983
  msgid ""
1984
  "Select a page on your site which contains a privacy statement. If selected, "
1985
  "it will be linked to in your consent statement."
1986
  msgstr ""
1987
 
1988
+ #: includes/Settings.class.php:1447
1989
  msgid "Delete Reservation Data Days"
1990
  msgstr ""
1991
 
1992
+ #: includes/Settings.class.php:1448
1993
  msgid ""
1994
  "Sets the approximate number of days booking data should be stored for. Leave "
1995
  "blank to keep booking data indefinitely."
1996
  msgstr ""
1997
 
1998
+ #: includes/Settings.class.php:1457 includes/Settings.class.php:1963
1999
  msgid "Notifications"
2000
  msgstr ""
2001
 
2002
+ #: includes/Settings.class.php:1466
2003
  msgid "Daily Summary"
2004
  msgstr ""
2005
 
2006
+ #: includes/Settings.class.php:1477
2007
  msgid "Summary Email Address"
2008
  msgstr ""
2009
 
2010
+ #: includes/Settings.class.php:1478
2011
  msgid ""
2012
  "The email address, if any, where a daily summary of upcoming reservations "
2013
  "should be emailed."
2014
  msgstr ""
2015
 
2016
+ #: includes/Settings.class.php:1488
2017
+ msgid "Summary Email Send Time"
2018
+ msgstr ""
2019
+
2020
+ #: includes/Settings.class.php:1489
2021
+ msgid ""
2022
+ "What time should the summary email be sent at? This is based on your "
2023
+ "WordPress timezone setting."
2024
+ msgstr ""
2025
+
2026
+ #: includes/Settings.class.php:1508
2027
  msgid "Reply-To Name"
2028
  msgstr ""
2029
 
2030
+ #: includes/Settings.class.php:1509
2031
  msgid ""
2032
  "The name which should appear in the Reply-To field of a user notification "
2033
  "email"
2034
  msgstr ""
2035
 
2036
+ #: includes/Settings.class.php:1520
2037
  msgid "Reply-To Email Address"
2038
  msgstr ""
2039
 
2040
+ #: includes/Settings.class.php:1521
2041
  msgid ""
2042
  "The email address which should appear in the Reply-To field of a user "
2043
  "notification email."
2044
  msgstr ""
2045
 
2046
+ #: includes/Settings.class.php:1532
2047
  msgid "Admin Notification"
2048
  msgstr ""
2049
 
2050
+ #: includes/Settings.class.php:1533
2051
  msgid ""
2052
  "Send an email notification to an administrator when a new booking is "
2053
  "requested."
2054
  msgstr ""
2055
 
2056
+ #: includes/Settings.class.php:1543
2057
  msgid "Admin New Confirmed Notification"
2058
  msgstr ""
2059
 
2060
+ #: includes/Settings.class.php:1544
2061
  msgid ""
2062
  "Send an email notification to an administrator when a new confirmed booking "
2063
  "is made."
2064
  msgstr ""
2065
 
2066
+ #: includes/Settings.class.php:1554
2067
  msgid "Admin Cancellation Notification"
2068
  msgstr ""
2069
 
2070
+ #: includes/Settings.class.php:1555
2071
  msgid ""
2072
  "Send an email notification to an administrator when a booking is cancelled."
2073
  msgstr ""
2074
 
2075
+ #: includes/Settings.class.php:1565
2076
  msgid "Admin Email Address"
2077
  msgstr ""
2078
 
2079
+ #: includes/Settings.class.php:1566
2080
  msgid "The email address where admin notifications should be sent."
2081
  msgstr ""
2082
 
2083
+ #: includes/Settings.class.php:1575
2084
  msgid "Notification Emails"
2085
  msgstr ""
2086
 
2087
+ #: includes/Settings.class.php:1577
2088
  msgid ""
2089
  "Adjust the messages that are emailed to users and admins during the booking "
2090
  "process."
2091
  msgstr ""
2092
 
2093
+ #: includes/Settings.class.php:1587
2094
  msgid "Template Tags"
2095
  msgstr ""
2096
 
2097
+ #: includes/Settings.class.php:1589
2098
  msgid ""
2099
  "Use the following tags to automatically add booking information to the "
2100
  "emails. Tags labeled with an asterisk (*) can be used in the email subject "
2101
  "as well."
2102
  msgstr ""
2103
 
2104
+ #: includes/Settings.class.php:1600
2105
  msgid "Admin Notification Subject (Pending Booking)"
2106
  msgstr ""
2107
 
2108
+ #: includes/Settings.class.php:1601
2109
  msgid "The email subject for admin notifications."
2110
  msgstr ""
2111
 
2112
+ #: includes/Settings.class.php:1612
2113
  msgid "Admin Notification Email (Pending Booking)"
2114
  msgstr ""
2115
 
2116
+ #: includes/Settings.class.php:1613
2117
  msgid ""
2118
  "Enter the email an admin should receive when an initial booking request is "
2119
  "made."
2120
  msgstr ""
2121
 
2122
+ #: includes/Settings.class.php:1624
2123
  msgid "Admin Notification Subject (Auto Confirmed Booking)"
2124
  msgstr ""
2125
 
2126
+ #: includes/Settings.class.php:1625
2127
  msgid ""
2128
  "The email subject for admin notifications for automatically-confirmed "
2129
  "bookings."
2130
  msgstr ""
2131
 
2132
+ #: includes/Settings.class.php:1636
2133
  msgid "Admin Notification Email (Auto Confirmed Booking)"
2134
  msgstr ""
2135
 
2136
+ #: includes/Settings.class.php:1637
2137
  msgid ""
2138
  "Enter the email an admin should receive when an automatically-confirmed "
2139
  "booking is made."
2140
  msgstr ""
2141
 
2142
+ #: includes/Settings.class.php:1648
2143
  msgid "Admin Booking Cancelled Subject"
2144
  msgstr ""
2145
 
2146
+ #: includes/Settings.class.php:1649
2147
  msgid "The email subject for admin notifications when a booking is cancelled."
2148
  msgstr ""
2149
 
2150
+ #: includes/Settings.class.php:1660
2151
  msgid "Admin Booking Cancelled Email"
2152
  msgstr ""
2153
 
2154
+ #: includes/Settings.class.php:1661
2155
  msgid "Enter the email an admin should receive when a booking is cancelled."
2156
  msgstr ""
2157
 
2158
+ #: includes/Settings.class.php:1672
2159
  msgid "New Request Email Subject"
2160
  msgstr ""
2161
 
2162
+ #: includes/Settings.class.php:1673
2163
  msgid ""
2164
  "The email subject a user should receive when they make an initial booking "
2165
  "request."
2166
  msgstr ""
2167
 
2168
+ #: includes/Settings.class.php:1684 includes/load-customizer.php:211
2169
  msgid "New Request Email"
2170
  msgstr ""
2171
 
2172
+ #: includes/Settings.class.php:1685
2173
  msgid ""
2174
  "Enter the email a user should receive when they make an initial booking "
2175
  "request."
2176
  msgstr ""
2177
 
2178
+ #: includes/Settings.class.php:1696
2179
  msgid "Confirmed Email Subject"
2180
  msgstr ""
2181
 
2182
+ #: includes/Settings.class.php:1697
2183
  msgid ""
2184
  "The email subject a user should receive when their booking has been "
2185
  "confirmed."
2186
  msgstr ""
2187
 
2188
+ #: includes/Settings.class.php:1708 includes/load-customizer.php:251
2189
  msgid "Confirmed Email"
2190
  msgstr ""
2191
 
2192
+ #: includes/Settings.class.php:1709
2193
  msgid ""
2194
  "Enter the email a user should receive when their booking has been confirmed."
2195
  msgstr ""
2196
 
2197
+ #: includes/Settings.class.php:1720
2198
  msgid "Rejected Email Subject"
2199
  msgstr ""
2200
 
2201
+ #: includes/Settings.class.php:1721
2202
  msgid ""
2203
  "The email subject a user should receive when their booking has been rejected."
2204
  msgstr ""
2205
 
2206
+ #: includes/Settings.class.php:1732 includes/load-customizer.php:291
2207
  msgid "Rejected Email"
2208
  msgstr ""
2209
 
2210
+ #: includes/Settings.class.php:1733
2211
  msgid ""
2212
  "Enter the email a user should receive when their booking has been rejected."
2213
  msgstr ""
2214
 
2215
+ #: includes/Settings.class.php:1744
2216
  msgid "Booking Cancelled Email Subject"
2217
  msgstr ""
2218
 
2219
+ #: includes/Settings.class.php:1745
2220
  msgid ""
2221
  "The email subject a user should receive when they have cancelled their "
2222
  "booking."
2223
  msgstr ""
2224
 
2225
+ #: includes/Settings.class.php:1756
2226
  msgid "Booking Cancelled Email"
2227
  msgstr ""
2228
 
2229
+ #: includes/Settings.class.php:1757
2230
  msgid "Enter the email a user should receive when they cancel their booking."
2231
  msgstr ""
2232
 
2233
+ #: includes/Settings.class.php:1768
2234
  msgid "Admin Update Subject"
2235
  msgstr ""
2236
 
2237
+ #: includes/Settings.class.php:1769
2238
  #, php-format
2239
  msgid ""
2240
  "The email subject a user should receive when an admin sends them a custom "
2241
  "email message from the %sbookings panel%s."
2242
  msgstr ""
2243
 
2244
+ #: includes/Settings.class.php:1780 includes/Settings.class.php:1823
2245
+ #: includes/Settings.class.php:1980
2246
  msgid "Payments"
2247
  msgstr ""
2248
 
2249
+ #: includes/Settings.class.php:1804 includes/Settings.class.php:1945
2250
  msgid "Advanced"
2251
  msgstr ""
2252
 
2253
+ #: includes/Settings.class.php:1842 includes/Settings.class.php:1996
2254
  msgid "Export"
2255
  msgstr ""
2256
 
2257
+ #: includes/Settings.class.php:1861 includes/Settings.class.php:2011
2258
+ msgid "Labelling"
2259
+ msgstr ""
2260
+
2261
+ #: includes/Settings.class.php:1880 includes/Settings.class.php:2027
2262
  msgid "Styling"
2263
  msgstr ""
2264
 
2265
+ #: includes/Settings.class.php:1923
2266
  msgid "The premium version also gives you access to the following features:"
2267
  msgstr ""
2268
 
2269
+ #: includes/Settings.class.php:1925
2270
  msgid "Multiple Form Layouts"
2271
  msgstr ""
2272
 
2273
+ #: includes/Settings.class.php:1926
2274
  msgid "Custom Booking Fields"
2275
  msgstr ""
2276
 
2277
+ #: includes/Settings.class.php:1927
2278
  msgid "Advanced Email Designer"
2279
  msgstr ""
2280
 
2281
+ #: includes/Settings.class.php:1928
2282
  msgid "Set Table and Seat Restrictions"
2283
  msgstr ""
2284
 
2285
+ #: includes/Settings.class.php:1929
2286
  msgid "Automatic Booking Confirmation"
2287
  msgstr ""
2288
 
2289
+ #: includes/Settings.class.php:1930
2290
  msgid "Bookings Page for Staff"
2291
  msgstr ""
2292
 
2293
+ #: includes/Settings.class.php:1931
2294
  msgid "Export Bookings"
2295
  msgstr ""
2296
 
2297
+ #: includes/Settings.class.php:1932
2298
  msgid "Email Support"
2299
  msgstr ""
2300
 
2301
+ #: includes/Settings.class.php:1935
2302
  msgid "UPGRADE NOW"
2303
  msgstr ""
2304
 
2305
+ #: includes/Settings.class.php:1945 includes/Settings.class.php:1963
2306
  msgid "Premium/Ultimate"
2307
  msgstr ""
2308
 
2309
+ #: includes/Settings.class.php:1946
2310
  msgid ""
2311
  "The advanced options let you set a maximum number of reservations or people, "
2312
  "enable automatic confirmation of bookings, configure a view bookings page "
2317
  "when they book and/or manage the tables in the admin."
2318
  msgstr ""
2319
 
2320
+ #: includes/Settings.class.php:1964
2321
  msgid ""
2322
  "The email template designer uses the WordPress customizer to let you modify "
2323
  "the look and structure of the notification emails. The reminders section "
2327
  "booking time has passed."
2328
  msgstr ""
2329
 
2330
+ #: includes/Settings.class.php:1981
2331
  msgid ""
2332
  "The payment options let you require a deposit for bookings, either via "
2333
  "PayPal or Stripe. Deposits can be made conditional on a minimum party size "
2334
  "or only for certain days/times."
2335
  msgstr ""
2336
 
2337
+ #: includes/Settings.class.php:1997
2338
  msgid ""
2339
  "You can export all your bookings to a PDF file, for use by your staff to "
2340
  "manage upcoming bookings, for accounting purposes etc."
2341
  msgstr ""
2342
 
2343
+ #: includes/Settings.class.php:2012
2344
+ msgid ""
2345
+ "The labelling options let you change the wording of the different labels "
2346
+ "that appear on the front end of the plugin. You can use this to translate "
2347
+ "them, customize the wording for your purpose, etc."
2348
+ msgstr ""
2349
+
2350
+ #: includes/Settings.class.php:2028
2351
  msgid ""
2352
  "The styling options let you choose a booking form layout and modify the "
2353
  "colors, font family, font size and borders of the various elements found in "
2354
  "the booking form."
2355
  msgstr ""
2356
 
2357
+ #: includes/Settings.class.php:2055
2358
  msgid "Any size"
2359
  msgstr ""
2360
 
2361
+ #: includes/Settings.class.php:2374
 
 
 
 
 
 
 
 
 
 
 
 
 
2362
  msgid "Email of the user who made the booking"
2363
  msgstr ""
2364
 
2365
+ #: includes/Settings.class.php:2375
2366
  msgid "* Name of the user who made the booking"
2367
  msgstr ""
2368
 
2369
+ #: includes/Settings.class.php:2376
2370
  msgid "* Number of people booked"
2371
  msgstr ""
2372
 
2373
+ #: includes/Settings.class.php:2377
2374
  msgid "* Date and time of the booking"
2375
  msgstr ""
2376
 
2377
+ #: includes/Settings.class.php:2378
2378
  msgid "Phone number if supplied with the request"
2379
  msgstr ""
2380
 
2381
+ #: includes/Settings.class.php:2379
2382
  msgid "Message added to the request"
2383
  msgstr ""
2384
 
2385
+ #: includes/Settings.class.php:2380
2386
  msgid "A link to the admin panel showing pending bookings"
2387
  msgstr ""
2388
 
2389
+ #: includes/Settings.class.php:2381
2390
  msgid ""
2391
  "A link that a guest can use to cancel their booking if cancellations are "
2392
  "enabled"
2393
  msgstr ""
2394
 
2395
+ #: includes/Settings.class.php:2382
2396
  msgid ""
2397
  "A link to confirm this booking. Only include this in admin notifications"
2398
  msgstr ""
2399
 
2400
+ #: includes/Settings.class.php:2383
2401
  msgid "A link to reject this booking. Only include this in admin notifications"
2402
  msgstr ""
2403
 
2404
+ #: includes/Settings.class.php:2384
2405
  msgid "The name of this website"
2406
  msgstr ""
2407
 
2408
+ #: includes/Settings.class.php:2385
2409
  msgid "A link to this website"
2410
  msgstr ""
2411
 
2412
+ #: includes/Settings.class.php:2386
2413
  msgid "Current date and time"
2414
  msgstr ""
2415
 
2416
+ #: includes/Settings.class.php:2387
2417
  msgid "The table(s) for the booking"
2418
  msgstr ""
2419
 
2421
  msgid "Upcoming"
2422
  msgstr ""
2423
 
 
 
 
 
2424
  #: includes/WP_List_Table.BookingsTable.class.php:343
2425
  msgid "Past"
2426
  msgstr ""
2551
  "customer from the list of bookings in your admin panel."
2552
  msgstr ""
2553
 
2554
+ #: includes/integrations/business-profile.php:128
2555
+ #: includes/integrations/business-profile.php:131
2556
  msgid "Show book a table link"
2557
  msgstr ""
2558
 
2559
+ #: includes/integrations/business-profile.php:191
2560
  msgid "--- Bakery"
2561
  msgstr ""
2562
 
2563
+ #: includes/integrations/business-profile.php:192
2564
  msgid "--- Bar or Pub"
2565
  msgstr ""
2566
 
2567
+ #: includes/integrations/business-profile.php:193
2568
  msgid "--- Brewery"
2569
  msgstr ""
2570
 
2571
+ #: includes/integrations/business-profile.php:194
2572
  msgid "--- Cafe or Coffee Shop"
2573
  msgstr ""
2574
 
2575
+ #: includes/integrations/business-profile.php:195
2576
  msgid "--- FastFoodRestaurant"
2577
  msgstr ""
2578
 
2579
+ #: includes/integrations/business-profile.php:196
2580
  msgid "--- Ice Cream Shop"
2581
  msgstr ""
2582
 
2583
+ #: includes/integrations/business-profile.php:197
2584
  msgid "--- Restaurant"
2585
  msgstr ""
2586
 
2587
+ #: includes/integrations/business-profile.php:198
2588
  msgid "--- Winery"
2589
  msgstr ""
2590
 
2591
+ #: includes/integrations/business-profile.php:291
2592
  msgid "Footer Contact Details"
2593
  msgstr ""
2594
 
2717
  msgid "The email a user receives when they are late for their reservation."
2718
  msgstr ""
2719
 
2720
+ #: includes/template-functions.php:150
2721
  #, php-format
2722
  msgid ""
2723
  "Your reservation deposit payment has failed with the following message \"%s"
2724
  "\" Please contact the site administrator for assistance."
2725
  msgstr ""
2726
 
2727
+ #: includes/template-functions.php:172
2728
  msgid "Your reservation has been successfully cancelled."
2729
  msgstr ""
2730
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2731
  #: lib/simple-admin-pages/classes/AdminPage.class.php:173
2732
  msgid "You do not have sufficient permissions to access this page."
2733
  msgstr ""
2744
  msgid "Booking Manager"
2745
  msgstr ""
2746
 
2747
+ #: restaurant-reservations.php:405
2748
  msgid "MENU"
2749
  msgstr ""
2750
 
2751
+ #: restaurant-reservations.php:413
2752
  msgid "Dashboard"
2753
  msgstr ""
2754
 
2755
+ #: restaurant-reservations.php:432
2756
  msgid "Custom Fields"
2757
  msgstr ""
2758
 
2759
+ #: restaurant-reservations.php:557
2760
+ msgid ""
2761
+ "Something went wrong. Please try again and if issue persists, please contact "
2762
+ "us."
 
 
 
 
 
 
2763
  msgstr ""
2764
 
2765
+ #: restaurant-reservations.php:559
2766
+ msgid "No Table available at this time. Please change your selection."
2767
  msgstr ""
2768
 
2769
+ #: restaurant-reservations.php:582
2770
  msgid "View the help documentation for Restaurant Reservations"
2771
  msgstr ""
2772
 
2773
+ #: restaurant-reservations.php:582
2774
  msgid "Help"
2775
  msgstr ""
2776
 
2777
+ #: restaurant-reservations.php:672
2778
  msgid ""
2779
  "You're using the Five-Star Restaurant Reservations premium version, but the "
2780
  "premium helper plugin is not active."
2781
  msgstr ""
2782
 
2783
+ #: restaurant-reservations.php:674
2784
  #, php-format
2785
  msgid ""
2786
  "Please re-activate the helper plugin, or <a target='_blank' "
2787
  "href='%s'>download and install it</a> if the plugin is no longer installed "
2788
  "to ensure continued access to the premium features of the plugin."
2789
  msgstr ""
2790
+
2791
+ #: templates/mpdf.php:135 templates/tcpdf.php:41
2792
+ #, php-format
2793
+ msgid " %d reservation(s), %d guest(s)"
2794
+ msgstr ""
lib/simple-admin-pages/classes/AdminPage.Menu.class.php CHANGED
@@ -8,7 +8,7 @@
8
  * @package Simple Admin Pages
9
  */
10
 
11
- class sapAdminPageMenu_2_6_5 extends sapAdminPage_2_6_5 {
12
 
13
  public $setup_function = 'add_menu_page'; // WP function to register the page
14
 
8
  * @package Simple Admin Pages
9
  */
10
 
11
+ class sapAdminPageMenu_2_6_7 extends sapAdminPage_2_6_7 {
12
 
13
  public $setup_function = 'add_menu_page'; // WP function to register the page
14
 
lib/simple-admin-pages/classes/AdminPage.Submenu.class.php CHANGED
@@ -8,7 +8,7 @@
8
  * @package Simple Admin Pages
9
  */
10
 
11
- class sapAdminPageSubmenu_2_6_5 extends sapAdminPage_2_6_5 {
12
 
13
  public $setup_function = 'add_submenu_page'; // WP function to register the page
14
 
8
  * @package Simple Admin Pages
9
  */
10
 
11
+ class sapAdminPageSubmenu_2_6_7 extends sapAdminPage_2_6_7 {
12
 
13
  public $setup_function = 'add_submenu_page'; // WP function to register the page
14
 
lib/simple-admin-pages/classes/AdminPage.Themes.class.php CHANGED
@@ -8,7 +8,7 @@
8
  * @package Simple Admin Pages
9
  */
10
 
11
- class sapAdminPageThemes_2_6_5 extends sapAdminPage_2_6_5 {
12
 
13
  public $setup_function = 'add_theme_page'; // WP function to register the page
14
 
8
  * @package Simple Admin Pages
9
  */
10
 
11
+ class sapAdminPageThemes_2_6_7 extends sapAdminPage_2_6_7 {
12
 
13
  public $setup_function = 'add_theme_page'; // WP function to register the page
14
 
lib/simple-admin-pages/classes/AdminPage.class.php CHANGED
@@ -7,7 +7,7 @@
7
  * @package Simple Admin Pages
8
  */
9
 
10
- class sapAdminPage_2_6_5 {
11
 
12
  public $title;
13
  public $menu_title;
7
  * @package Simple Admin Pages
8
  */
9
 
10
+ class sapAdminPage_2_6_7 {
11
 
12
  public $title;
13
  public $menu_title;
lib/simple-admin-pages/classes/AdminPageSection.class.php CHANGED
@@ -7,7 +7,7 @@
7
  * @package Simple Admin Pages
8
  */
9
 
10
- class sapAdminPageSection_2_6_5 {
11
 
12
  // Page defaults
13
  public $id; // unique id for this section
7
  * @package Simple Admin Pages
8
  */
9
 
10
+ class sapAdminPageSection_2_6_7 {
11
 
12
  // Page defaults
13
  public $id; // unique id for this section
lib/simple-admin-pages/classes/AdminPageSetting.Address.class.php CHANGED
@@ -7,7 +7,7 @@
7
  * @package Simple Admin Pages
8
  */
9
 
10
- class sapAdminPageSettingAddress_2_6_5 extends sapAdminPageSetting_2_6_5 {
11
 
12
  /*
13
  * Size of this textarea
7
  * @package Simple Admin Pages
8
  */
9
 
10
+ class sapAdminPageSettingAddress_2_6_7 extends sapAdminPageSetting_2_6_7 {
11
 
12
  /*
13
  * Size of this textarea
lib/simple-admin-pages/classes/AdminPageSetting.Checkbox.class.php CHANGED
@@ -19,7 +19,7 @@
19
  * @package Simple Admin Pages
20
  */
21
 
22
- class sapAdminPageSettingCheckbox_2_6_5 extends sapAdminPageSetting_2_6_5 {
23
 
24
  //public $sanitize_callback = 'sanitize_text_field';
25
 
@@ -31,6 +31,8 @@ class sapAdminPageSettingCheckbox_2_6_5 extends sapAdminPageSetting_2_6_5 {
31
 
32
  $input_name = $this->get_input_name();
33
  $values = ( is_array( $this->value ) ? $this->value : array() );
 
 
34
 
35
  ?>
36
  <fieldset <?php echo ( isset( $this->columns ) ? 'class="sap-setting-columns-' . $this->columns . '"' : '' ); ?> <?php $this->print_conditional_data(); ?>>
19
  * @package Simple Admin Pages
20
  */
21
 
22
+ class sapAdminPageSettingCheckbox_2_6_7 extends sapAdminPageSetting_2_6_7 {
23
 
24
  //public $sanitize_callback = 'sanitize_text_field';
25
 
31
 
32
  $input_name = $this->get_input_name();
33
  $values = ( is_array( $this->value ) ? $this->value : array() );
34
+
35
+ if ( empty( $values ) ) { $values = $this->get_default_setting(); }
36
 
37
  ?>
38
  <fieldset <?php echo ( isset( $this->columns ) ? 'class="sap-setting-columns-' . $this->columns . '"' : '' ); ?> <?php $this->print_conditional_data(); ?>>
lib/simple-admin-pages/classes/AdminPageSetting.ColorPicker.class.php CHANGED
@@ -7,7 +7,7 @@
7
  * @package Simple Admin Pages
8
  */
9
 
10
- class sapAdminPageSettingColorPicker_2_6_5 extends sapAdminPageSetting_2_6_5 {
11
 
12
  public $sanitize_callback = 'sanitize_text_field';
13
 
7
  * @package Simple Admin Pages
8
  */
9
 
10
+ class sapAdminPageSettingColorPicker_2_6_7 extends sapAdminPageSetting_2_6_7 {
11
 
12
  public $sanitize_callback = 'sanitize_text_field';
13
 
lib/simple-admin-pages/classes/AdminPageSetting.Count.class.php CHANGED
@@ -24,7 +24,7 @@
24
  * @package Simple Admin Pages
25
  */
26
 
27
- class sapAdminPageSettingCount_2_6_5 extends sapAdminPageSetting_2_6_5 {
28
 
29
  public $sanitize_callback = 'sanitize_text_field';
30
 
24
  * @package Simple Admin Pages
25
  */
26
 
27
+ class sapAdminPageSettingCount_2_6_7 extends sapAdminPageSetting_2_6_7 {
28
 
29
  public $sanitize_callback = 'sanitize_text_field';
30
 
lib/simple-admin-pages/classes/AdminPageSetting.Editor.class.php CHANGED
@@ -7,7 +7,7 @@
7
  * @package Simple Admin Pages
8
  */
9
 
10
- class sapAdminPageSettingEditor_2_6_5 extends sapAdminPageSetting_2_6_5 {
11
 
12
  public $sanitize_callback = 'wp_kses_post';
13
 
7
  * @package Simple Admin Pages
8
  */
9
 
10
+ class sapAdminPageSettingEditor_2_6_7 extends sapAdminPageSetting_2_6_7 {
11
 
12
  public $sanitize_callback = 'wp_kses_post';
13
 
lib/simple-admin-pages/classes/AdminPageSetting.FileUpload.class.php CHANGED
@@ -15,7 +15,7 @@
15
  * @package Simple Admin Pages
16
  */
17
 
18
- class sapAdminPageSettingFileUpload_2_6_5 extends sapAdminPageSetting_2_6_5 {
19
 
20
  public $sanitize_callback = 'esc_url_raw';
21
 
15
  * @package Simple Admin Pages
16
  */
17
 
18
+ class sapAdminPageSettingFileUpload_2_6_7 extends sapAdminPageSetting_2_6_7 {
19
 
20
  public $sanitize_callback = 'esc_url_raw';
21
 
lib/simple-admin-pages/classes/AdminPageSetting.HTML.class.php CHANGED
@@ -14,7 +14,7 @@
14
  * @package Simple Admin Pages
15
  */
16
 
17
- class sapAdminPageSettingHTML_2_6_5 extends sapAdminPageSetting_2_6_5 {
18
 
19
  public $sanitize_callback = 'sanitize_text_field';
20
 
14
  * @package Simple Admin Pages
15
  */
16
 
17
+ class sapAdminPageSettingHTML_2_6_7 extends sapAdminPageSetting_2_6_7 {
18
 
19
  public $sanitize_callback = 'sanitize_text_field';
20
 
lib/simple-admin-pages/classes/AdminPageSetting.Image.class.php CHANGED
@@ -7,7 +7,7 @@
7
  * @package Simple Admin Pages
8
  */
9
 
10
- class sapAdminPageSettingImage_2_6_5 extends sapAdminPageSetting_2_6_5 {
11
 
12
  public $sanitize_callback = 'absint';
13
 
7
  * @package Simple Admin Pages
8
  */
9
 
10
+ class sapAdminPageSettingImage_2_6_7 extends sapAdminPageSetting_2_6_7 {
11
 
12
  public $sanitize_callback = 'absint';
13
 
lib/simple-admin-pages/classes/AdminPageSetting.InfiniteTable.class.php CHANGED
@@ -24,7 +24,7 @@
24
  * @package Simple Admin Pages
25
  */
26
 
27
- class sapAdminPageSettingInfiniteTable_2_6_5 extends sapAdminPageSetting_2_6_5 {
28
 
29
  public $sanitize_callback = 'sanitize_textarea_field';
30
 
@@ -63,8 +63,10 @@ class sapAdminPageSettingInfiniteTable_2_6_5 extends sapAdminPageSetting_2_6_5 {
63
  $input_name = $this->get_input_name();
64
  $values = json_decode( html_entity_decode( $this->value ) );
65
 
66
- if ( ! is_array( $values ) )
67
- $values = array();
 
 
68
 
69
  $fields = '';
70
  foreach ($this->fields as $field_id => $field) {
24
  * @package Simple Admin Pages
25
  */
26
 
27
+ class sapAdminPageSettingInfiniteTable_2_6_7 extends sapAdminPageSetting_2_6_7 {
28
 
29
  public $sanitize_callback = 'sanitize_textarea_field';
30
 
63
  $input_name = $this->get_input_name();
64
  $values = json_decode( html_entity_decode( $this->value ) );
65
 
66
+ if ( ! is_array( $values ) ) {
67
+
68
+ $values = $this->get_default_setting();
69
+ }
70
 
71
  $fields = '';
72
  foreach ($this->fields as $field_id => $field) {
lib/simple-admin-pages/classes/AdminPageSetting.McApiKey.class.php CHANGED
@@ -14,7 +14,7 @@
14
  *
15
  */
16
 
17
- class mcfrtbAdminPageSettingMcApiKey_2_6_5 {
18
 
19
  /**
20
  * Scripts and styles to load for this component
14
  *
15
  */
16
 
17
+ class mcfrtbAdminPageSettingMcApiKey_2_6_7 {
18
 
19
  /**
20
  * Scripts and styles to load for this component
lib/simple-admin-pages/classes/AdminPageSetting.McListMerge.class.php CHANGED
@@ -14,7 +14,7 @@
14
  *
15
  */
16
 
17
- class mcfrtbAdminPageSettingMcListMerge_2_6_5 {
18
 
19
  /**
20
  * Scripts and styles to load for this component
14
  *
15
  */
16
 
17
+ class mcfrtbAdminPageSettingMcListMerge_2_6_7 {
18
 
19
  /**
20
  * Scripts and styles to load for this component
lib/simple-admin-pages/classes/AdminPageSetting.Number.class.php CHANGED
@@ -7,7 +7,7 @@
7
  * @package Simple Admin Pages
8
  */
9
 
10
- class sapAdminPageSettingNumber_2_6_5 extends sapAdminPageSetting_2_6_5 {
11
 
12
  public $sanitize_callback = 'sanitize_text_field';
13
 
7
  * @package Simple Admin Pages
8
  */
9
 
10
+ class sapAdminPageSettingNumber_2_6_7 extends sapAdminPageSetting_2_6_7 {
11
 
12
  public $sanitize_callback = 'sanitize_text_field';
13
 
lib/simple-admin-pages/classes/AdminPageSetting.OpeningHours.class.php CHANGED
@@ -25,7 +25,7 @@
25
  * @package Simple Admin Pages
26
  */
27
 
28
- class sapAdminPageSettingOpeningHours_2_6_5 extends sapAdminPageSetting_2_6_5 {
29
 
30
  public $sanitize_callback = 'sanitize_text_field';
31
 
25
  * @package Simple Admin Pages
26
  */
27
 
28
+ class sapAdminPageSettingOpeningHours_2_6_7 extends sapAdminPageSetting_2_6_7 {
29
 
30
  public $sanitize_callback = 'sanitize_text_field';
31
 
lib/simple-admin-pages/classes/AdminPageSetting.Ordering.class.php CHANGED
@@ -18,7 +18,7 @@
18
  * @package Simple Admin Pages
19
  */
20
 
21
- class sapAdminPageSettingOrdering_2_6_5 extends sapAdminPageSetting_2_6_5 {
22
 
23
  public $sanitize_callback = 'sanitize_text_field';
24
 
18
  * @package Simple Admin Pages
19
  */
20
 
21
+ class sapAdminPageSettingOrdering_2_6_7 extends sapAdminPageSetting_2_6_7 {
22
 
23
  public $sanitize_callback = 'sanitize_text_field';
24
 
lib/simple-admin-pages/classes/AdminPageSetting.Radio.class.php CHANGED
@@ -19,7 +19,7 @@
19
  * @package Simple Admin Pages
20
  */
21
 
22
- class sapAdminPageSettingRadio_2_6_5 extends sapAdminPageSetting_2_6_5 {
23
 
24
  public $sanitize_callback = 'sanitize_text_field';
25
 
19
  * @package Simple Admin Pages
20
  */
21
 
22
+ class sapAdminPageSettingRadio_2_6_7 extends sapAdminPageSetting_2_6_7 {
23
 
24
  public $sanitize_callback = 'sanitize_text_field';
25
 
lib/simple-admin-pages/classes/AdminPageSetting.Scheduler.class.php CHANGED
@@ -10,7 +10,7 @@
10
  * @package Simple Admin Pages
11
  */
12
 
13
- class sapAdminPageSettingScheduler_2_6_5 extends sapAdminPageSetting_2_6_5 {
14
 
15
  public $sanitize_callback = 'sanitize_text_field';
16
 
10
  * @package Simple Admin Pages
11
  */
12
 
13
+ class sapAdminPageSettingScheduler_2_6_7 extends sapAdminPageSetting_2_6_7 {
14
 
15
  public $sanitize_callback = 'sanitize_text_field';
16
 
lib/simple-admin-pages/classes/AdminPageSetting.Select.class.php CHANGED
@@ -21,7 +21,7 @@
21
  * @package Simple Admin Pages
22
  */
23
 
24
- class sapAdminPageSettingSelect_2_6_5 extends sapAdminPageSetting_2_6_5 {
25
 
26
  public $sanitize_callback = 'sanitize_text_field';
27
 
21
  * @package Simple Admin Pages
22
  */
23
 
24
+ class sapAdminPageSettingSelect_2_6_7 extends sapAdminPageSetting_2_6_7 {
25
 
26
  public $sanitize_callback = 'sanitize_text_field';
27
 
lib/simple-admin-pages/classes/AdminPageSetting.SelectMenu.class.php CHANGED
@@ -17,7 +17,7 @@
17
  * @package Simple Admin Pages
18
  */
19
 
20
- class sapAdminPageSettingSelectMenu_2_6_5 extends sapAdminPageSetting_2_6_5 {
21
 
22
  public $sanitize_callback = 'intval';
23
 
17
  * @package Simple Admin Pages
18
  */
19
 
20
+ class sapAdminPageSettingSelectMenu_2_6_7 extends sapAdminPageSetting_2_6_7 {
21
 
22
  public $sanitize_callback = 'intval';
23
 
lib/simple-admin-pages/classes/AdminPageSetting.SelectPost.class.php CHANGED
@@ -17,7 +17,7 @@
17
  * @package Simple Admin Pages
18
  */
19
 
20
- class sapAdminPageSettingSelectPost_2_6_5 extends sapAdminPageSetting_2_6_5 {
21
 
22
  public $sanitize_callback = 'intval';
23
 
17
  * @package Simple Admin Pages
18
  */
19
 
20
+ class sapAdminPageSettingSelectPost_2_6_7 extends sapAdminPageSetting_2_6_7 {
21
 
22
  public $sanitize_callback = 'intval';
23
 
lib/simple-admin-pages/classes/AdminPageSetting.SelectTaxonomy.class.php CHANGED
@@ -19,7 +19,7 @@
19
  * @package Simple Admin Pages
20
  */
21
 
22
- class sapAdminPageSettingSelectTaxonomy_2_6_5 extends sapAdminPageSetting_2_6_5 {
23
 
24
  public $sanitize_callback = 'intval';
25
 
19
  * @package Simple Admin Pages
20
  */
21
 
22
+ class sapAdminPageSettingSelectTaxonomy_2_6_7 extends sapAdminPageSetting_2_6_7 {
23
 
24
  public $sanitize_callback = 'intval';
25
 
lib/simple-admin-pages/classes/AdminPageSetting.Text.class.php CHANGED
@@ -7,7 +7,7 @@
7
  * @package Simple Admin Pages
8
  */
9
 
10
- class sapAdminPageSettingText_2_6_5 extends sapAdminPageSetting_2_6_5 {
11
 
12
  public $sanitize_callback = 'sanitize_text_field';
13
 
7
  * @package Simple Admin Pages
8
  */
9
 
10
+ class sapAdminPageSettingText_2_6_7 extends sapAdminPageSetting_2_6_7 {
11
 
12
  public $sanitize_callback = 'sanitize_text_field';
13
 
lib/simple-admin-pages/classes/AdminPageSetting.Textarea.class.php CHANGED
@@ -9,7 +9,7 @@
9
  * @todo textareas should have an option to swap new lines for <br>s
10
  */
11
 
12
- class sapAdminPageSettingTextarea_2_6_5 extends sapAdminPageSetting_2_6_5 {
13
 
14
  /*
15
  * Size of this textarea
9
  * @todo textareas should have an option to swap new lines for <br>s
10
  */
11
 
12
+ class sapAdminPageSettingTextarea_2_6_7 extends sapAdminPageSetting_2_6_7 {
13
 
14
  /*
15
  * Size of this textarea
lib/simple-admin-pages/classes/AdminPageSetting.Time.class.php CHANGED
@@ -7,7 +7,7 @@
7
  * @package Simple Admin Pages
8
  */
9
 
10
- class sapAdminPageSettingTime_2_6_5 extends sapAdminPageSetting_2_6_5 {
11
 
12
  public $sanitize_callback = 'sanitize_text_field';
13
 
7
  * @package Simple Admin Pages
8
  */
9
 
10
+ class sapAdminPageSettingTime_2_6_7 extends sapAdminPageSetting_2_6_7 {
11
 
12
  public $sanitize_callback = 'sanitize_text_field';
13
 
lib/simple-admin-pages/classes/AdminPageSetting.Toggle.class.php CHANGED
@@ -17,7 +17,7 @@
17
  * @package Simple Admin Pages
18
  */
19
 
20
- class sapAdminPageSettingToggle_2_6_5 extends sapAdminPageSetting_2_6_5 {
21
 
22
  public $sanitize_callback = 'sanitize_text_field';
23
 
17
  * @package Simple Admin Pages
18
  */
19
 
20
+ class sapAdminPageSettingToggle_2_6_7 extends sapAdminPageSetting_2_6_7 {
21
 
22
  public $sanitize_callback = 'sanitize_text_field';
23
 
lib/simple-admin-pages/classes/AdminPageSetting.WarningTip.class.php CHANGED
@@ -7,7 +7,7 @@
7
  * @package Simple Admin Pages
8
  */
9
 
10
- class sapAdminPageSettingWarningTip_2_6_5 extends sapAdminPageSetting_2_6_5 {
11
 
12
  public $sanitize_callback = 'sanitize_text_field';
13
 
7
  * @package Simple Admin Pages
8
  */
9
 
10
+ class sapAdminPageSettingWarningTip_2_6_7 extends sapAdminPageSetting_2_6_7 {
11
 
12
  public $sanitize_callback = 'sanitize_text_field';
13
 
lib/simple-admin-pages/classes/AdminPageSetting.class.php CHANGED
@@ -16,7 +16,7 @@
16
  * @package Simple Admin Pages
17
  */
18
 
19
- abstract class sapAdminPageSetting_2_6_5 {
20
 
21
  // Page defaults
22
  public $id; // used in form fields and database to track and store setting
16
  * @package Simple Admin Pages
17
  */
18
 
19
+ abstract class sapAdminPageSetting_2_6_7 {
20
 
21
  // Page defaults
22
  public $id; // used in form fields and database to track and store setting
lib/simple-admin-pages/classes/Library.class.php CHANGED
@@ -1,5 +1,5 @@
1
  <?php
2
- if ( !class_exists( 'sapLibrary_2_6_5' ) ) {
3
  /**
4
  * This library class loads and provides access to the correct version of the
5
  * Simple Admin Pages library.
@@ -7,10 +7,10 @@ if ( !class_exists( 'sapLibrary_2_6_5' ) ) {
7
  * @since 1.0
8
  * @package Simple Admin Pages
9
  */
10
- class sapLibrary_2_6_5 {
11
 
12
  // Version of the library
13
- private $version = '2.6.5';
14
 
15
  // A full URL to the library which is used to correctly link scripts and
16
  // stylesheets.
@@ -49,7 +49,7 @@ class sapLibrary_2_6_5 {
49
  public function __construct( $args ) {
50
 
51
  if ( ! defined( 'SAP_VERSION' ) ) {
52
- define( 'SAP_VERSION', '2.6.5' );
53
  }
54
 
55
  // If no URL path to the library is passed, we won't be able to add the
@@ -221,6 +221,10 @@ class sapLibrary_2_6_5 {
221
  require_once('AdminPageSetting.Ordering.class.php');
222
  return $this->get_versioned_classname( 'sapAdminPageSettingOrdering' );
223
 
 
 
 
 
224
  case 'mcapikey' :
225
  require_once('AdminPageSetting.McApiKey.class.php');
226
  return $this->get_versioned_classname( 'mcfrtbAdminPageSettingMcApiKey' );
1
  <?php
2
+ if ( !class_exists( 'sapLibrary_2_6_7' ) ) {
3
  /**
4
  * This library class loads and provides access to the correct version of the
5
  * Simple Admin Pages library.
7
  * @since 1.0
8
  * @package Simple Admin Pages
9
  */
10
+ class sapLibrary_2_6_7 {
11
 
12
  // Version of the library
13
+ private $version = '2.6.7';
14
 
15
  // A full URL to the library which is used to correctly link scripts and
16
  // stylesheets.
49
  public function __construct( $args ) {
50
 
51
  if ( ! defined( 'SAP_VERSION' ) ) {
52
+ define( 'SAP_VERSION', '2.6.7' );
53
  }
54
 
55
  // If no URL path to the library is passed, we won't be able to add the
221
  require_once('AdminPageSetting.Ordering.class.php');
222
  return $this->get_versioned_classname( 'sapAdminPageSettingOrdering' );
223
 
224
+ case 'time' :
225
+ require_once('AdminPageSetting.Time.class.php');
226
+ return $this->get_versioned_classname( 'sapAdminPageSettingTime' );
227
+
228
  case 'mcapikey' :
229
  require_once('AdminPageSetting.McApiKey.class.php');
230
  return $this->get_versioned_classname( 'mcfrtbAdminPageSettingMcApiKey' );
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: FiveStarPlugins
3
  Requires at Least: 4.4
4
  Tested Up To: 5.9
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.5.7
7
  License: GPLv3
8
  License URI:http://www.gnu.org/licenses/gpl-3.0.html
9
  Donate Link: https://www.etoilewebdesign.com/plugin-donations/
@@ -91,6 +91,7 @@ This easy restaurant booking system is one part of our suite of plugins designed
91
 
92
  This plugin also comes with hooks that developers can use to extend and customize it. Take a look at the [Developer Documentation](http://doc.fivestarplugins.com/plugins/restaurant-reservations/developer/?utm_source=Plugin&utm_medium=Plugin%20Description&utm_campaign=Restaurant%20Reservations).
93
 
 
94
  == Installation ==
95
 
96
  1. Upload the 'restaurant-reservations' folder to the '/wp-content/plugins/' directory
@@ -198,6 +199,20 @@ Find answers to even more questions in the [FAQ](http://doc.fivestarplugins.com/
198
 
199
  == Changelog ==
200
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
201
  = 2.5.7 (2022-04-05) =
202
  - Fixed an issue that was causing an error with Stripe deposit payments when SCA was enabled.
203
 
3
  Requires at Least: 4.4
4
  Tested Up To: 5.9
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.5.8
7
  License: GPLv3
8
  License URI:http://www.gnu.org/licenses/gpl-3.0.html
9
  Donate Link: https://www.etoilewebdesign.com/plugin-donations/
91
 
92
  This plugin also comes with hooks that developers can use to extend and customize it. Take a look at the [Developer Documentation](http://doc.fivestarplugins.com/plugins/restaurant-reservations/developer/?utm_source=Plugin&utm_medium=Plugin%20Description&utm_campaign=Restaurant%20Reservations).
93
 
94
+
95
  == Installation ==
96
 
97
  1. Upload the 'restaurant-reservations' folder to the '/wp-content/plugins/' directory
199
 
200
  == Changelog ==
201
 
202
+ = 2.5.8 (2022-04-12) =
203
+ - Fixed an issue in which the MailChimp subscription was not working when the "Confirmed Redirect Page" option was being used.
204
+ - Added in labelling options, which can be used to translate or change the wording of each label that appears on the front end of the plugin.
205
+ - Added an option to select the time the summary email sends.
206
+ - Updated the message of the summary email for when there are no bookings today.
207
+ - Added the ability to display custom fields in the View Bookings form.
208
+ - Added an option to specify which columns show in the View Bookings form.
209
+ - Updated the styling of the View Bookings form.
210
+ - Added a booking summary to the deposit payment page.
211
+ - Added a message when there are no available tables.
212
+ - Added the ability to pre-select which day is chosen in the booking form using a URL parameter (for more info, see here: https://doc.fivestarplugins.com/plugins/restaurant-reservations/user/faq#pre-selected)
213
+ - Added a feature that makes it so that, if a date range is selected on the Bookings screen in the admin, that range is automatically set as the default for exporting.
214
+ - Fresh .pot file.
215
+
216
  = 2.5.7 (2022-04-05) =
217
  - Fixed an issue that was causing an error with Stripe deposit payments when SCA was enabled.
218
 
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.5.7
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.5.7' );
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__ ) );
@@ -515,6 +515,7 @@ class rtbInit {
515
  * @since 0.0.1
516
  */
517
  function register_assets() {
 
518
 
519
  if ( !apply_filters( 'rtb-load-frontend-assets', true ) ) {
520
  return;
@@ -545,16 +546,17 @@ class rtbInit {
545
  'rtb_booking_form_js_localize',
546
  array(
547
  'nonce' => wp_create_nonce( 'rtb-booking-form' ),
548
- 'want_to_modify' => __( 'Want to modify your reservation?', 'restaurant-reservations' ),
549
- 'make' => __( 'Make a reservation', 'restaurant-reservations' ),
550
- 'guest' => __( 'guest', 'restaurant-reservations' ),
551
- 'guests' => __( 'guests', 'restaurant-reservations' ),
552
- 'cancel' => __( 'Cancel', 'restaurant-reservations' ),
553
- 'cancelled' => __( 'Cancelled', 'restaurant-reservations' ),
554
- 'deposit' => __( 'Deposit', 'restaurant-reservations' ),
555
  'error' => array(
556
- 'smthng-wrng-cntct-us' => __( 'Something went wrong. Please try agian and if issue persists, please contact us.', 'restaurant-reservations' ),
557
- 'no-slots-available' => __( 'There are currently no times available for booking on your selected date.', 'restaurant-reservations' )
 
558
  )
559
  )
560
  );
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.5.8
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.5.8' );
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__ ) );
515
  * @since 0.0.1
516
  */
517
  function register_assets() {
518
+ global $rtb_controller;
519
 
520
  if ( !apply_filters( 'rtb-load-frontend-assets', true ) ) {
521
  return;
546
  'rtb_booking_form_js_localize',
547
  array(
548
  'nonce' => wp_create_nonce( 'rtb-booking-form' ),
549
+ 'want_to_modify' => esc_html( $rtb_controller->settings->get_setting( 'label-modify-reservation' ) ),
550
+ 'make' => esc_html( $rtb_controller->settings->get_setting( 'label-modify-make-reservation' ) ),
551
+ 'guest' => esc_html( $rtb_controller->settings->get_setting( 'label-modify-guest' ) ),
552
+ 'guests' => esc_html( $rtb_controller->settings->get_setting( 'label-modify-guests' ) ),
553
+ 'cancel' => esc_html( $rtb_controller->settings->get_setting( 'label-modify-cancel' ) ),
554
+ 'cancelled' => esc_html( $rtb_controller->settings->get_setting( 'label-modify-cancelled' ) ),
555
+ 'deposit' => esc_html( $rtb_controller->settings->get_setting( 'label-modify-deposit' ) ),
556
  'error' => array(
557
+ 'smthng-wrng-cntct-us' => __( 'Something went wrong. Please try again and if issue persists, please contact us.', 'restaurant-reservations' ),
558
+ 'no-slots-available' => esc_html( $rtb_controller->settings->get_setting( 'label-no-times-available' ) ),
559
+ 'no-table-available' => __( 'No Table available at this time. Please change your selection.', 'restaurant-reservations' )
560
  )
561
  )
562
  );