Version Description
(2020-07-06) = - Adds in a new option to write a separate admin notification subject and email for automatically-confirmed bookings. - Applies the "Admin Notification Email" template to the admin notification email for automatically-confirmed bookings.
Download this release
Release Info
Developer | Rustaurius |
Plugin | Restaurant Reservations |
Version | 2.1.14 |
Comparing to | |
See all releases |
Code changes from version 2.1.13 to 2.1.14
- includes/Ajax.class.php +1 -1
- includes/Settings.class.php +26 -2
- includes/load-notifications.php +4 -0
- readme.txt +4 -0
- restaurant-reservations.php +1 -1
includes/Ajax.class.php
CHANGED
@@ -325,7 +325,7 @@ if ( !class_exists( 'rtbAJAX' ) ) {
|
|
325 |
public function get_opening_hours() {
|
326 |
global $rtb_controller;
|
327 |
|
328 |
-
$schedule_closed = $rtb_controller->settings->get_setting( 'schedule-closed' );
|
329 |
|
330 |
$valid_times = array();
|
331 |
|
325 |
public function get_opening_hours() {
|
326 |
global $rtb_controller;
|
327 |
|
328 |
+
$schedule_closed = is_array( $rtb_controller->settings->get_setting( 'schedule-closed' ) ) ? $rtb_controller->settings->get_setting( 'schedule-closed' ) : array();
|
329 |
|
330 |
$valid_times = array();
|
331 |
|
includes/Settings.class.php
CHANGED
@@ -1656,7 +1656,7 @@ If you were not the one to cancel this booking, please contact us.
|
|
1656 |
'text',
|
1657 |
array(
|
1658 |
'id' => 'subject-booking-admin',
|
1659 |
-
'title' => __( 'Admin Notification Subject', 'restaurant-reservations' ),
|
1660 |
'description' => __( 'The email subject for admin notifications.', 'restaurant-reservations' ),
|
1661 |
'placeholder' => $this->defaults['subject-booking-admin'],
|
1662 |
)
|
@@ -1668,12 +1668,36 @@ If you were not the one to cancel this booking, please contact us.
|
|
1668 |
'editor',
|
1669 |
array(
|
1670 |
'id' => 'template-booking-admin',
|
1671 |
-
'title' => __( 'Admin Notification Email', 'restaurant-reservations' ),
|
1672 |
'description' => __( 'Enter the email an admin should receive when an initial booking request is made.', 'restaurant-reservations' ),
|
1673 |
'default' => $this->defaults['template-booking-admin'],
|
1674 |
)
|
1675 |
);
|
1676 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1677 |
$sap->add_setting(
|
1678 |
'rtb-settings',
|
1679 |
'rtb-notifications-templates',
|
1656 |
'text',
|
1657 |
array(
|
1658 |
'id' => 'subject-booking-admin',
|
1659 |
+
'title' => __( 'Admin Notification Subject (Pending Booking)', 'restaurant-reservations' ),
|
1660 |
'description' => __( 'The email subject for admin notifications.', 'restaurant-reservations' ),
|
1661 |
'placeholder' => $this->defaults['subject-booking-admin'],
|
1662 |
)
|
1668 |
'editor',
|
1669 |
array(
|
1670 |
'id' => 'template-booking-admin',
|
1671 |
+
'title' => __( 'Admin Notification Email (Pending Booking)', 'restaurant-reservations' ),
|
1672 |
'description' => __( 'Enter the email an admin should receive when an initial booking request is made.', 'restaurant-reservations' ),
|
1673 |
'default' => $this->defaults['template-booking-admin'],
|
1674 |
)
|
1675 |
);
|
1676 |
|
1677 |
+
$sap->add_setting(
|
1678 |
+
'rtb-settings',
|
1679 |
+
'rtb-notifications-templates',
|
1680 |
+
'text',
|
1681 |
+
array(
|
1682 |
+
'id' => 'subject-booking-confirmed-admin',
|
1683 |
+
'title' => __( 'Admin Notification Subject (Auto Confirmed Booking)', 'restaurant-reservations' ),
|
1684 |
+
'description' => __( 'The email subject for admin notifications for automatically-confirmed bookings.', 'restaurant-reservations' ),
|
1685 |
+
'placeholder' => $this->defaults['subject-booking-confirmed-admin'],
|
1686 |
+
)
|
1687 |
+
);
|
1688 |
+
|
1689 |
+
$sap->add_setting(
|
1690 |
+
'rtb-settings',
|
1691 |
+
'rtb-notifications-templates',
|
1692 |
+
'editor',
|
1693 |
+
array(
|
1694 |
+
'id' => 'template-booking-confirmed-admin',
|
1695 |
+
'title' => __( 'Admin Notification Email (Auto Confirmed Booking)', 'restaurant-reservations' ),
|
1696 |
+
'description' => __( 'Enter the email an admin should receive when an automatically-confirmed booking is made.', 'restaurant-reservations' ),
|
1697 |
+
'default' => $this->defaults['template-booking-confirmed-admin'],
|
1698 |
+
)
|
1699 |
+
);
|
1700 |
+
|
1701 |
$sap->add_setting(
|
1702 |
'rtb-settings',
|
1703 |
'rtb-notifications-templates',
|
includes/load-notifications.php
CHANGED
@@ -33,6 +33,10 @@ function etfrtb_notification_email_template( $notification ) {
|
|
33 |
}
|
34 |
break;
|
35 |
|
|
|
|
|
|
|
|
|
36 |
case 'pending_to_confirmed' :
|
37 |
$designer->setup( 'confirmed-user', $notification );
|
38 |
$notification->message = $designer->render();
|
33 |
}
|
34 |
break;
|
35 |
|
36 |
+
case 'rtb_confirmed_booking' :
|
37 |
+
$designer->setup( 'booking-admin', $notification );
|
38 |
+
$notification->message = $designer->render();
|
39 |
+
|
40 |
case 'pending_to_confirmed' :
|
41 |
$designer->setup( 'confirmed-user', $notification );
|
42 |
$notification->message = $designer->render();
|
readme.txt
CHANGED
@@ -196,6 +196,10 @@ Find answers to even more questions in the [FAQ](http://doc.fivestarplugins.com/
|
|
196 |
|
197 |
== Changelog ==
|
198 |
|
|
|
|
|
|
|
|
|
199 |
= 2.1.13 (2020-06-29) =
|
200 |
- Fix for notifications not working with deposits turned on
|
201 |
|
196 |
|
197 |
== Changelog ==
|
198 |
|
199 |
+
= 2.1.14 (2020-07-06) =
|
200 |
+
- Adds in a new option to write a separate admin notification subject and email for automatically-confirmed bookings.
|
201 |
+
- Applies the "Admin Notification Email" template to the admin notification email for automatically-confirmed bookings.
|
202 |
+
|
203 |
= 2.1.13 (2020-06-29) =
|
204 |
- Fix for notifications not working with deposits turned on
|
205 |
|
restaurant-reservations.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Five Star Restaurant Reservations - WordPress Booking Plugin
|
4 |
* Plugin URI: http://www.fivestarplugins.com/plugins/five-star-restaurant-reservations/
|
5 |
* Description: Restaurant reservations made easy. Accept bookings online. Quickly confirm or reject reservations, send email notifications, set booking times and more.
|
6 |
-
* Version: 2.1.
|
7 |
* Author: FiveStarPlugins
|
8 |
* Author URI: https://profiles.wordpress.org/fivestarplugins/
|
9 |
* Text Domain: restaurant-reservations
|
3 |
* Plugin Name: Five Star Restaurant Reservations - WordPress Booking Plugin
|
4 |
* Plugin URI: http://www.fivestarplugins.com/plugins/five-star-restaurant-reservations/
|
5 |
* Description: Restaurant reservations made easy. Accept bookings online. Quickly confirm or reject reservations, send email notifications, set booking times and more.
|
6 |
+
* Version: 2.1.14
|
7 |
* Author: FiveStarPlugins
|
8 |
* Author URI: https://profiles.wordpress.org/fivestarplugins/
|
9 |
* Text Domain: restaurant-reservations
|