Restaurant Reservations - Version 1.7.2

Version Description

Download this release

Release Info

Developer NateWr
Plugin Icon 128x128 Restaurant Reservations
Version 1.7.2
Comparing to
See all releases

Code changes from version 1.7.1 to 1.7.2

assets/img/email-templates.png ADDED
Binary file
includes/Addons.class.php CHANGED
@@ -51,14 +51,14 @@ class rtbAddons {
51
<a href="https://themeofthecrop.com/plugins/restaurant-reservations/custom-fields/<?php echo $url_params; ?>">
52
<img src="<?php echo RTB_PLUGIN_URL . '/assets/img/custom-fields.png'; ?>">
53
</a>
54
- <h3><?php echo esc_html( 'Custom Fields', 'restaurant-reservations' ); ?></h3>
55
<div class="details">
56
<div class="description">
57
- <?php echo esc_html( 'Plan your dinner service better by asking for special seating requests, dietary needs and more when customers book online.', 'restaurant-reservations' ); ?>
58
</div>
59
<div class="action">
60
<a href="https://themeofthecrop.com/plugins/restaurant-reservations/custom-fields/<?php echo $url_params; ?>" class="button button-primary" target="_blank">
61
- <?php echo esc_html( 'Learn More', 'restaurant-reservations' ); ?>
62
</a>
63
</div>
64
</div>
@@ -67,14 +67,30 @@ class rtbAddons {
67
<a href="https://themeofthecrop.com/plugins/restaurant-reservations/export-bookings/<?php echo $url_params; ?>">
68
<img src="<?php echo RTB_PLUGIN_URL . '/assets/img/export-bookings.png'; ?>">
69
</a>
70
- <h3><?php echo esc_html( 'Export Bookings', 'restaurant-reservations' ); ?></h3>
71
<div class="details">
72
<div class="description">
73
- <?php echo esc_html( 'Easily print your bookings in a PDF or export them to an Excel/CSV file so you can analyze patterns, cull customer data and import bookings into other services.' ); ?>
74
</div>
75
<div class="action">
76
<a href="https://themeofthecrop.com/plugins/restaurant-reservations/export-bookings/<?php echo $url_params; ?>" class="button button-primary" target="_blank">
77
- <?php echo esc_html( 'Learn More', 'restaurant-reservations' ); ?>
78
</a>
79
</div>
80
</div>
@@ -83,14 +99,14 @@ class rtbAddons {
83
<a href="https://themeofthecrop.com/plugins/restaurant-reservations/mailchimp/<?php echo $url_params; ?>">
84
<img src="<?php echo RTB_PLUGIN_URL . '/assets/img/mailchimp.png'; ?>">
85
</a>
86
- <h3><?php echo esc_html( 'MailChimp', 'restaurant-reservations' ); ?></h3>
87
<div class="details">
88
<div class="description">
89
- <?php echo esc_html( 'Subscribe requests to your MailChimp mailing list and watch your subscription rates grow effortlessly.' ); ?>
90
</div>
91
<div class="action">
92
<a href="https://themeofthecrop.com/plugins/restaurant-reservations/mailchimp/<?php echo $url_params; ?>" class="button button-primary" target="_blank">
93
- <?php echo esc_html( 'Learn More', 'restaurant-reservations' ); ?>
94
</a>
95
</div>
96
</div>
@@ -99,14 +115,14 @@ class rtbAddons {
99
<a href="https://themeofthecrop.com/themes/<?php echo $url_params; ?>">
100
<img src="<?php echo RTB_PLUGIN_URL . '/assets/img/themes.png'; ?>">
101
</a>
102
- <h3><?php echo esc_html( 'Restaurant WordPress Themes', 'restaurant-reservations' ); ?></h3>
103
<div class="details">
104
<div class="description">
105
- <?php echo esc_html( 'Find the best WordPress restaurant themes that integrate beautifully with your reservations plugin.' ); ?>
106
</div>
107
<div class="action">
108
<a href="https://themeofthecrop.com/themes/<?php echo $url_params; ?>" class="button" target="_blank">
109
- <?php echo esc_html( 'View Themes', 'restaurant-reservations' ); ?>
110
</a>
111
</div>
112
</div>
51
<a href="https://themeofthecrop.com/plugins/restaurant-reservations/custom-fields/<?php echo $url_params; ?>">
52
<img src="<?php echo RTB_PLUGIN_URL . '/assets/img/custom-fields.png'; ?>">
53
</a>
54
+ <h3><?php esc_html_e( 'Custom Fields', 'restaurant-reservations' ); ?></h3>
55
<div class="details">
56
<div class="description">
57
+ <?php esc_html_e( 'Plan your dinner service better by asking for special seating requests, dietary needs and more when customers book online.', 'restaurant-reservations' ); ?>
58
</div>
59
<div class="action">
60
<a href="https://themeofthecrop.com/plugins/restaurant-reservations/custom-fields/<?php echo $url_params; ?>" class="button button-primary" target="_blank">
61
+ <?php esc_html_e( 'Learn More', 'restaurant-reservations' ); ?>
62
</a>
63
</div>
64
</div>
67
<a href="https://themeofthecrop.com/plugins/restaurant-reservations/export-bookings/<?php echo $url_params; ?>">
68
<img src="<?php echo RTB_PLUGIN_URL . '/assets/img/export-bookings.png'; ?>">
69
</a>
70
+ <h3><?php esc_html_e( 'Export Bookings', 'restaurant-reservations' ); ?></h3>
71
<div class="details">
72
<div class="description">
73
+ <?php esc_html_e( 'Easily print your bookings in a PDF or export them to an Excel/CSV file so you can analyze patterns, cull customer data and import bookings into other services.', 'restaurant-reservations' ); ?>
74
</div>
75
<div class="action">
76
<a href="https://themeofthecrop.com/plugins/restaurant-reservations/export-bookings/<?php echo $url_params; ?>" class="button button-primary" target="_blank">
77
+ <?php esc_html_e( 'Learn More', 'restaurant-reservations' ); ?>
78
+ </a>
79
+ </div>
80
+ </div>
81
+ </div>
82
+ <div class="addon addon-email-templates">
83
+ <a href="https://themeofthecrop.com/plugins/restaurant-reservations/email-templates/<?php echo $url_params; ?>">
84
+ <img src="<?php echo RTB_PLUGIN_URL . '/assets/img/email-templates.png'; ?>">
85
+ </a>
86
+ <h3><?php esc_html_e( 'Email Templates', 'restaurant-reservations' ); ?></h3>
87
+ <div class="details">
88
+ <div class="description">
89
+ <?php esc_html_e( 'Send beautiful email notifications with your own logo and brand colors when your customers make a reservation.', 'restaurant-reservations' ); ?>
90
+ </div>
91
+ <div class="action">
92
+ <a href="https://themeofthecrop.com/plugins/restaurant-reservations/email-templates/<?php echo $url_params; ?>" class="button button-primary" target="_blank">
93
+ <?php esc_html_e( 'Learn More', 'restaurant-reservations' ); ?>
94
</a>
95
</div>
96
</div>
99
<a href="https://themeofthecrop.com/plugins/restaurant-reservations/mailchimp/<?php echo $url_params; ?>">
100
<img src="<?php echo RTB_PLUGIN_URL . '/assets/img/mailchimp.png'; ?>">
101
</a>
102
+ <h3><?php esc_html_e( 'MailChimp', 'restaurant-reservations' ); ?></h3>
103
<div class="details">
104
<div class="description">
105
+ <?php esc_html_e( 'Subscribe requests to your MailChimp mailing list and watch your subscription rates grow effortlessly.', 'restaurant-reservations' ); ?>
106
</div>
107
<div class="action">
108
<a href="https://themeofthecrop.com/plugins/restaurant-reservations/mailchimp/<?php echo $url_params; ?>" class="button button-primary" target="_blank">
109
+ <?php esc_html_e( 'Learn More', 'restaurant-reservations' ); ?>
110
</a>
111
</div>
112
</div>
115
<a href="https://themeofthecrop.com/themes/<?php echo $url_params; ?>">
116
<img src="<?php echo RTB_PLUGIN_URL . '/assets/img/themes.png'; ?>">
117
</a>
118
+ <h3><?php esc_html_e( 'Restaurant WordPress Themes', 'restaurant-reservations' ); ?></h3>
119
<div class="details">
120
<div class="description">
121
+ <?php esc_html_e( 'Find the best WordPress restaurant themes that integrate beautifully with your reservations plugin.', 'restaurant-reservations' ); ?>
122
</div>
123
<div class="action">
124
<a href="https://themeofthecrop.com/themes/<?php echo $url_params; ?>" class="button" target="_blank">
125
+ <?php esc_html_e( 'View Themes', 'restaurant-reservations' ); ?>
126
</a>
127
</div>
128
</div>
includes/Settings.class.php CHANGED
@@ -450,11 +450,11 @@ Sorry, we could not accomodate your booking request. We\'re full or not open at
450
'blank_option' => false,
451
'options' => array(
452
'' => __( 'Any time', 'restaurant-reservations' ),
453
- '1' => __( 'Up to 1 day in advance', 'restaurant-reservations' ),
454
- '7' => __( 'Up to 1 week in advance', 'restaurant-reservations' ),
455
- '14' => __( 'Up to 2 weeks in advance', 'restaurant-reservations' ),
456
- '30' => __( 'Up to 30 days in advance', 'restaurant-reservations' ),
457
- '90' => __( 'Up to 90 days in advance', 'restaurant-reservations' ),
458
)
459
)
460
);
450
'blank_option' => false,
451
'options' => array(
452
'' => __( 'Any time', 'restaurant-reservations' ),
453
+ '1' => __( 'From 1 day in advance', 'restaurant-reservations' ),
454
+ '7' => __( 'From 1 week in advance', 'restaurant-reservations' ),
455
+ '14' => __( 'From 2 weeks in advance', 'restaurant-reservations' ),
456
+ '30' => __( 'From 30 days in advance', 'restaurant-reservations' ),
457
+ '90' => __( 'From 90 days in advance', 'restaurant-reservations' ),
458
)
459
)
460
);
includes/integrations/business-profile.php CHANGED
@@ -99,8 +99,10 @@ function rtb_bp_print_booking_link( $location = false ) {
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', 'business-profile' ); ?></a>
101
</div>
102
103
- <?php elseif ( rtb_bp_is_schema_type_compatible( $schema_type ) ) : ?>
104
<meta itemprop="acceptsReservations" content="<?php echo esc_url( get_permalink( $booking_page ) ); ?>">
105
<?php
106
endif;
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', 'business-profile' ); ?></a>
101
</div>
102
+ <?php
103
+ endif;
104
105
+ if ( rtb_bp_is_schema_type_compatible( $schema_type ) ) : ?>
106
<meta itemprop="acceptsReservations" content="<?php echo esc_url( get_permalink( $booking_page ) ); ?>">
107
<?php
108
endif;
languages/restaurant-reservations.pot CHANGED
@@ -1,14 +1,14 @@
1
- # Copyright (C) 2016 Theme of the Crop
2
# This file is distributed under the GNU General Public License v2.0 or later.
3
msgid ""
4
msgstr ""
5
- "Project-Id-Version: Restaurant Reservations 1.7.1\n"
6
"Report-Msgid-Bugs-To: https://themeofthecrop.com\n"
7
- "POT-Creation-Date: 2016-12-14 16:51:35+00:00\n"
8
"MIME-Version: 1.0\n"
9
"Content-Type: text/plain; charset=utf-8\n"
10
"Content-Transfer-Encoding: 8bit\n"
11
- "PO-Revision-Date: 2016-MO-DA HO:MI+ZONE\n"
12
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
"Language-Team: LANGUAGE <LL@li.org>\n"
14
"X-Generator: grunt-wp-i18n 0.5.4\n"
@@ -17,6 +17,66 @@ msgstr ""
17
msgid "Addons for Restaurant Reservations"
18
msgstr ""
19
20
#: includes/AdminBookings.class.php:86
21
msgid "Restaurant Bookings"
22
msgstr ""
@@ -519,23 +579,23 @@ msgid "Any time"
519
msgstr ""
520
521
#: includes/Settings.class.php:453
522
- msgid "Up to 1 day in advance"
523
msgstr ""
524
525
#: includes/Settings.class.php:454
526
- msgid "Up to 1 week in advance"
527
msgstr ""
528
529
#: includes/Settings.class.php:455
530
- msgid "Up to 2 weeks in advance"
531
msgstr ""
532
533
#: includes/Settings.class.php:456
534
- msgid "Up to 30 days in advance"
535
msgstr ""
536
537
#: includes/Settings.class.php:457
538
- msgid "Up to 90 days in advance"
539
msgstr ""
540
541
#: includes/Settings.class.php:468
@@ -670,10 +730,6 @@ msgstr ""
670
msgid "The email address where admin notifications should be sent."
671
msgstr ""
672
673
- #: includes/Settings.class.php:595
674
- msgid "Email Templates"
675
- msgstr ""
676
-
677
#: includes/Settings.class.php:597
678
msgid ""
679
"Adjust the messages that are emailed to users and admins during the booking "
@@ -1046,40 +1102,40 @@ msgstr ""
1046
msgid "Title"
1047
msgstr ""
1048
1049
- #: includes/integrations/business-profile.php:124
1050
- #: includes/integrations/business-profile.php:127
1051
msgid "Show book a table link"
1052
msgstr ""
1053
1054
- #: includes/integrations/business-profile.php:187
1055
msgid "--- Baker"
1056
msgstr ""
1057
1058
- #: includes/integrations/business-profile.php:188
1059
msgid "--- Bar or Pub"
1060
msgstr ""
1061
1062
- #: includes/integrations/business-profile.php:189
1063
msgid "--- Brewery"
1064
msgstr ""
1065
1066
- #: includes/integrations/business-profile.php:190
1067
msgid "--- Cafe or Coffee Shop"
1068
msgstr ""
1069
1070
- #: includes/integrations/business-profile.php:191
1071
msgid "--- FastFoodRestaurant"
1072
msgstr ""
1073
1074
- #: includes/integrations/business-profile.php:192
1075
msgid "--- Ice Cream Shop"
1076
msgstr ""
1077
1078
- #: includes/integrations/business-profile.php:193
1079
msgid "--- Restaurant"
1080
msgstr ""
1081
1082
- #: includes/integrations/business-profile.php:194
1083
msgid "--- Winery"
1084
msgstr ""
1085
@@ -1135,7 +1191,7 @@ msgctxt "Title of addons page in the admin menu"
1135
msgid "Addons"
1136
msgstr ""
1137
1138
- #: includes/Addons.class.php:134
1139
msgctxt "restaurant-reservations"
1140
msgid ""
1141
"Find out when new addons are available by subscribing to the %smonthly "
1
+ # Copyright (C) 2017 Theme of the Crop
2
# This file is distributed under the GNU General Public License v2.0 or later.
3
msgid ""
4
msgstr ""
5
+ "Project-Id-Version: Restaurant Reservations 1.7.2\n"
6
"Report-Msgid-Bugs-To: https://themeofthecrop.com\n"
7
+ "POT-Creation-Date: 2017-01-12 19:56:22+00:00\n"
8
"MIME-Version: 1.0\n"
9
"Content-Type: text/plain; charset=utf-8\n"
10
"Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2017-MO-DA HO:MI+ZONE\n"
12
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
"Language-Team: LANGUAGE <LL@li.org>\n"
14
"X-Generator: grunt-wp-i18n 0.5.4\n"
17
msgid "Addons for Restaurant Reservations"
18
msgstr ""
19
20
+ #: includes/Addons.class.php:54
21
+ msgid "Custom Fields"
22
+ msgstr ""
23
+
24
+ #: includes/Addons.class.php:57
25
+ msgid ""
26
+ "Plan your dinner service better by asking for special seating requests, "
27
+ "dietary needs and more when customers book online."
28
+ msgstr ""
29
+
30
+ #: includes/Addons.class.php:61 includes/Addons.class.php:77
31
+ #: includes/Addons.class.php:93 includes/Addons.class.php:109
32
+ msgid "Learn More"
33
+ msgstr ""
34
+
35
+ #: includes/Addons.class.php:70
36
+ msgid "Export Bookings"
37
+ msgstr ""
38
+
39
+ #: includes/Addons.class.php:73
40
+ msgid ""
41
+ "Easily print your bookings in a PDF or export them to an Excel/CSV file so "
42
+ "you can analyze patterns, cull customer data and import bookings into other "
43
+ "services."
44
+ msgstr ""
45
+
46
+ #: includes/Addons.class.php:86 includes/Settings.class.php:595
47
+ msgid "Email Templates"
48
+ msgstr ""
49
+
50
+ #: includes/Addons.class.php:89
51
+ msgid ""
52
+ "Send beautiful email notifications with your own logo and brand colors when "
53
+ "your customers make a reservation."
54
+ msgstr ""
55
+
56
+ #: includes/Addons.class.php:102
57
+ msgid "MailChimp"
58
+ msgstr ""
59
+
60
+ #: includes/Addons.class.php:105
61
+ msgid ""
62
+ "Subscribe requests to your MailChimp mailing list and watch your "
63
+ "subscription rates grow effortlessly."
64
+ msgstr ""
65
+
66
+ #: includes/Addons.class.php:118
67
+ msgid "Restaurant WordPress Themes"
68
+ msgstr ""
69
+
70
+ #: includes/Addons.class.php:121
71
+ msgid ""
72
+ "Find the best WordPress restaurant themes that integrate beautifully with "
73
+ "your reservations plugin."
74
+ msgstr ""
75
+
76
+ #: includes/Addons.class.php:125
77
+ msgid "View Themes"
78
+ msgstr ""
79
+
80
#: includes/AdminBookings.class.php:86
81
msgid "Restaurant Bookings"
82
msgstr ""
579
msgstr ""
580
581
#: includes/Settings.class.php:453
582
+ msgid "From 1 day in advance"
583
msgstr ""
584
585
#: includes/Settings.class.php:454
586
+ msgid "From 1 week in advance"
587
msgstr ""
588
589
#: includes/Settings.class.php:455
590
+ msgid "From 2 weeks in advance"
591
msgstr ""
592
593
#: includes/Settings.class.php:456
594
+ msgid "From 30 days in advance"
595
msgstr ""
596
597
#: includes/Settings.class.php:457
598
+ msgid "From 90 days in advance"
599
msgstr ""
600
601
#: includes/Settings.class.php:468
730
msgid "The email address where admin notifications should be sent."
731
msgstr ""
732
733
#: includes/Settings.class.php:597
734
msgid ""
735
"Adjust the messages that are emailed to users and admins during the booking "
1102
msgid "Title"
1103
msgstr ""
1104
1105
+ #: includes/integrations/business-profile.php:126
1106
+ #: includes/integrations/business-profile.php:129
1107
msgid "Show book a table link"
1108
msgstr ""
1109
1110
+ #: includes/integrations/business-profile.php:189
1111
msgid "--- Baker"
1112
msgstr ""
1113
1114
+ #: includes/integrations/business-profile.php:190
1115
msgid "--- Bar or Pub"
1116
msgstr ""
1117
1118
+ #: includes/integrations/business-profile.php:191
1119
msgid "--- Brewery"
1120
msgstr ""
1121
1122
+ #: includes/integrations/business-profile.php:192
1123
msgid "--- Cafe or Coffee Shop"
1124
msgstr ""
1125
1126
+ #: includes/integrations/business-profile.php:193
1127
msgid "--- FastFoodRestaurant"
1128
msgstr ""
1129
1130
+ #: includes/integrations/business-profile.php:194
1131
msgid "--- Ice Cream Shop"
1132
msgstr ""
1133
1134
+ #: includes/integrations/business-profile.php:195
1135
msgid "--- Restaurant"
1136
msgstr ""
1137
1138
+ #: includes/integrations/business-profile.php:196
1139
msgid "--- Winery"
1140
msgstr ""
1141
1191
msgid "Addons"
1192
msgstr ""
1193
1194
+ #: includes/Addons.class.php:150
1195
msgctxt "restaurant-reservations"
1196
msgid ""
1197
"Find out when new addons are available by subscribing to the %smonthly "
package.json CHANGED
@@ -1,7 +1,7 @@
1
{
2
"name": "restaurant-reservations",
3
"description": "Accept restaurant reservations and bookings online.",
4
- "version": "1.7.1",
5
"author": {
6
"name": "Theme of the Crop",
7
"url": "https://themeofthecrop.com"
1
{
2
"name": "restaurant-reservations",
3
"description": "Accept restaurant reservations and bookings online.",
4
+ "version": "1.7.2",
5
"author": {
6
"name": "Theme of the Crop",
7
"url": "https://themeofthecrop.com"
readme.md CHANGED
@@ -11,7 +11,7 @@ Tested Up To: 4.7
11
<br/>
12
Tags: restaurant, reservations, bookings, table bookings, restaurant reservation, table reservation
13
<br/>
14
- Stable tag: 1.7.1
15
<br/>
16
License: GPLv2 or later
17
<br/>
@@ -125,6 +125,10 @@ Find answers to even more questions in the [FAQ](http://doc.themeofthecrop.com/p
125
126
## Changelog
127
128
#### 1.7.1 (2016-12-14)
129
* Fix: Submitted by date and time in the bookings list
130
* Fix: Fatal error when creating a new location with the Business Profile plugin
@@ -328,6 +332,9 @@ Find answers to even more questions in the [FAQ](http://doc.themeofthecrop.com/p
328
329
## Upgrade Notice
330
331
#### 1.7.1
332
This update fixes a critical bug introduced in v1.7 if you use bookings with the multi-location features of Business Profile. You are encouraged to update as soon as possible.
333
11
<br/>
12
Tags: restaurant, reservations, bookings, table bookings, restaurant reservation, table reservation
13
<br/>
14
+ Stable tag: 1.7.2
15
<br/>
16
License: GPLv2 or later
17
<br/>
125
126
## Changelog
127
128
+ #### 1.7.2 (2017-01-12)
129
+ * Fix: acceptsReservations schema property sometimes didn't appear in Business Profile integration
130
+ * Update: improve early bookings options language. Changed "Up to X days in advance" to "From X days in advance".
131
+
132
#### 1.7.1 (2016-12-14)
133
* Fix: Submitted by date and time in the bookings list
134
* Fix: Fatal error when creating a new location with the Business Profile plugin
332
333
## Upgrade Notice
334
335
+ #### 1.7.2
336
+ This minor maintenance update fixes a bug with the integration with the Business Profile plugin. It also adds the new Email Templates addon to the list of available addons.
337
+
338
#### 1.7.1
339
This update fixes a critical bug introduced in v1.7 if you use bookings with the multi-location features of Business Profile. You are encouraged to update as soon as possible.
340
restaurant-reservations.php CHANGED
@@ -3,7 +3,7 @@
3
* Plugin Name: Restaurant Reservations
4
* Plugin URI: http://themeofthecrop.com
5
* Description: Accept restaurant reservations and bookings online.
6
- * Version: 1.7.1
7
* Author: Theme of the Crop
8
* Author URI: http://themeofthecrop.com
9
* License: GNU General Public License v2.0 or later
@@ -47,7 +47,7 @@ class rtbInit {
47
public function __construct() {
48
49
// Common strings
50
- define( 'RTB_VERSION', '1.7.1' );
51
define( 'RTB_PLUGIN_DIR', untrailingslashit( plugin_dir_path( __FILE__ ) ) );
52
define( 'RTB_PLUGIN_URL', untrailingslashit( plugins_url( basename( plugin_dir_path( __FILE__ ) ), basename( __FILE__ ) ) ) );
53
define( 'RTB_PLUGIN_FNAME', plugin_basename( __FILE__ ) );
3
* Plugin Name: Restaurant Reservations
4
* Plugin URI: http://themeofthecrop.com
5
* Description: Accept restaurant reservations and bookings online.
6
+ * Version: 1.7.2
7
* Author: Theme of the Crop
8
* Author URI: http://themeofthecrop.com
9
* License: GNU General Public License v2.0 or later
47
public function __construct() {
48
49
// Common strings
50
+ define( 'RTB_VERSION', '1.7.2' );
51
define( 'RTB_PLUGIN_DIR', untrailingslashit( plugin_dir_path( __FILE__ ) ) );
52
define( 'RTB_PLUGIN_URL', untrailingslashit( plugins_url( basename( plugin_dir_path( __FILE__ ) ), basename( __FILE__ ) ) ) );
53
define( 'RTB_PLUGIN_FNAME', plugin_basename( __FILE__ ) );