PluginProbe
Booking Calendar / 10.1.3
Booking Calendar v10.1.3
11.8.3 11.8.2 11.8.1 11.8 11.7 11.6.1 11.6 11.5 11.4.3 11.4.2 11.4.1 11.4 11.3 11.2.1 11.2 11.1 11.0 10.15.7 10.15.6 10.1.3 10.10 10.10.1 10.10.2 10.11 10.11.2 All 203 releases
booking / core / wpbc-include.php

wpbc-include.php in Booking Calendar 10.1.3, at core/wpbc-include.php

209 lines 14.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * @version 1.0
4 * @package Booking Calendar
5 * @subpackage Files Loading
6 * @category Bookings
7 *
8 * @author wpdevelop
9 * @link https://wpbookingcalendar.com/
10 * @email info@wpbookingcalendar.com
11 *
12 * @modified 29.09.2015
13 */
14
15 if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
16
17 ////////////////////////////////////////////////////////////////////////////////
18 // L O A D F I L E S
19 ////////////////////////////////////////////////////////////////////////////////
20 require_once( WPBC_PLUGIN_DIR . '/core/wpbc-debug.php' ); // Debug = Package: WPBC =
21 require_once( WPBC_PLUGIN_DIR . '/core/wpbc-core.php' ); // Core
22
23
24 require_once( WPBC_PLUGIN_DIR . '/core/any/class-css-js.php' ); // Abstract. Loading CSS & JS files = Package: Any =
25 require_once( WPBC_PLUGIN_DIR . '/core/any/class-admin-settings-api.php' ); // Abstract. Settings API.
26 require_once( WPBC_PLUGIN_DIR . '/core/any/class-admin-page-structure.php' ); // Abstract. Page Structure in Admin Panel
27 require_once( WPBC_PLUGIN_DIR . '/core/any/class-admin-menu.php' ); // CLASS. Menus of plugin
28 require_once( WPBC_PLUGIN_DIR . '/core/any/admin-bs-ui.php' ); // Functions. Toolbar BS UI Elements
29 if( is_admin() ) {
30 require_once WPBC_PLUGIN_DIR . '/core/class/wpbc-class-dismiss.php'; // Class - Dismiss
31 require_once WPBC_PLUGIN_DIR . '/core/class/wpbc-class-notices.php'; // Class - Showing different messages and alerts. Including some predefined static messages.
32 require_once WPBC_PLUGIN_DIR . '/core/class/wpbc-class-welcome.php'; // Class - Welcome Page - info about new version.
33 }
34
35 // Functions
36 require_once( WPBC_PLUGIN_DIR . '/includes/_functions/nonce_func.php' ); // Nonce functions - front-end excluding
37 require_once( WPBC_PLUGIN_DIR . '/includes/_functions/regex_str.php' ); // String and Regex functions for shortcodes
38 require_once( WPBC_PLUGIN_DIR . '/includes/_functions/parse_booking_data.php' ); // Booking form data parsing and replacement
39 require_once( WPBC_PLUGIN_DIR . '/core/wpbc_functions.php' ); // Functions
40 require_once( WPBC_PLUGIN_DIR . '/core/wpbc_functions_dates.php' ); // Function Dates New in 9.8
41 require_once( WPBC_PLUGIN_DIR . '/core/form_parser.php' ); // Parser for booking form New in 9.8
42 require_once( WPBC_PLUGIN_DIR . '/core/custom_html_shortcodes.php' ); // Integrate Custom booking form HTML shortcodes
43 require_once( WPBC_PLUGIN_DIR . '/core/wpbc-dates.php' ); // Dates
44 require_once( WPBC_PLUGIN_DIR . '/core/wpbc_welcome.php' ); // Welcome Panel Functions
45
46 // New Engine //FixIn: 9.8.0.4
47 require_once( WPBC_PLUGIN_DIR . '/includes/_capacity/wpbc_cache.php' ); // Caching different requests to DB //FixIn: 9.8.0.4
48 require_once( WPBC_PLUGIN_DIR . '/includes/_capacity/booking_date_class.php' ); // Functions for booking dates
49 require_once( WPBC_PLUGIN_DIR . '/includes/_capacity/dates_times_support.php' ); // Functions for booking DATES & TIME
50 require_once( WPBC_PLUGIN_DIR . '/includes/_capacity/resource_support.php' ); // Functions for resources support
51 require_once( WPBC_PLUGIN_DIR . '/includes/_capacity/capacity.php' ); // Get Dates from DB - Capacity, Availability and more ...
52 require_once( WPBC_PLUGIN_DIR . '/includes/_capacity/get_times_fields.php' ); // Get Times Fields options from Booking Form
53 require_once( WPBC_PLUGIN_DIR . '/includes/_capacity/aggregate.php' ); // Aggregate functions for 'aggregate' parameter in shortcode
54 require_once( WPBC_PLUGIN_DIR . '/includes/_capacity/where_to_save.php' ); // Check where to save booking
55 require_once( WPBC_PLUGIN_DIR . '/includes/_capacity/create_booking.php' ); // Functions to create new bookings
56 require_once( WPBC_PLUGIN_DIR . '/includes/_capacity/confirmation.php' ); // Confirmation section - get data
57 require_once( WPBC_PLUGIN_DIR . '/includes/_capacity/confirmation_page.php' ); // Confirmation Page
58 require_once( WPBC_PLUGIN_DIR . '/includes/_capacity/calendar_load.php' ); // Scripts to load calendar
59 require_once( WPBC_PLUGIN_DIR . '/includes/_capacity/captcha_simple_text.php' ); // Simple text captcha checking
60
61 require_once( WPBC_PLUGIN_DIR . '/core/wpbc-translation.php' ); // Translation, must be loaded after '/core/wpbc-core.php', because there defined add_bk_filter(), etc...
62 //FixIn: 8.9.4.12
63 if ( file_exists( WPBC_PLUGIN_DIR . '/core/lang/wpbc_all_translations.php' ) ){
64
65 require_once( WPBC_PLUGIN_DIR . '/core/lang/wpbc_all_translations.php' ); // All Translation Terms
66
67 //FixIn: 8.7.3.6
68 if ( file_exists( WPBC_PLUGIN_DIR . '/core/lang/wpbc_all_translations1.php' ) ){
69 require_once( WPBC_PLUGIN_DIR . '/core/lang/wpbc_all_translations1.php' );
70 }
71 if ( file_exists( WPBC_PLUGIN_DIR . '/core/lang/wpbc_all_translations2.php' ) ){
72 require_once( WPBC_PLUGIN_DIR . '/core/lang/wpbc_all_translations2.php' );
73 }
74 if ( file_exists( WPBC_PLUGIN_DIR . '/core/lang/wpbc_all_translations3.php' ) ){
75 require_once( WPBC_PLUGIN_DIR . '/core/lang/wpbc_all_translations3.php' );
76 }
77 if ( file_exists( WPBC_PLUGIN_DIR . '/core/lang/wpbc_all_translations4.php' ) ){
78 require_once( WPBC_PLUGIN_DIR . '/core/lang/wpbc_all_translations4.php' );
79 }
80 if ( file_exists( WPBC_PLUGIN_DIR . '/core/lang/wpbc_all_translations5.php' ) ){
81 require_once( WPBC_PLUGIN_DIR . '/core/lang/wpbc_all_translations5.php' );
82 }
83 }
84
85 require_once( WPBC_PLUGIN_DIR . '/includes/publish/wpbc-create-pages.php' ); // Create pages for different purposes //FixIn: 9.6.2.10
86 require_once( WPBC_PLUGIN_DIR . '/includes/publish/wpbc-publish-shortcode.php' ); // Publish Booking Calendar shortcodes into the Pages //FixIn: 9.8.15.5
87 require_once( WPBC_PLUGIN_DIR . '/core/wpbc-emails.php' ); // Emails
88 // JS & CSS
89 require_once( WPBC_PLUGIN_DIR . '/core/wpbc-css.php' ); // Load CSS
90 require_once( WPBC_PLUGIN_DIR . '/core/wpbc-js.php' ); // Load JavaScript
91 require_once( WPBC_PLUGIN_DIR . '/core/wpbc-js-vars.php' ); // Define JavaScript Vars
92 // Admin UI
93 require_once( WPBC_PLUGIN_DIR . '/core/admin/wpbc-toolbars.php' ); // Toolbar - BS UI Elements
94 require_once( WPBC_PLUGIN_DIR . '/core/admin/wpbc-sql.php' ); // Data Engine for Booking Listing / Calendar Overview pages
95 //FixIn: 9.6.3.5 //FixIn: 8.6.1.13
96 require_once( WPBC_PLUGIN_DIR . '/core/timeline/flex-timeline.php' ); // New. Flex. Timeline
97
98 require_once( WPBC_PLUGIN_DIR . '/core/admin/wpbc-dashboard.php' ); // Dashboard Widget
99
100 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
101 // Admin Pages
102 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
103
104 //FixIn: 9.2.1 //FixIn: 9.6.3.5
105
106 require_once( WPBC_PLUGIN_DIR . '/includes/_request/wpbc_request.php' ); //FixIn: 9.3.1.2 // Class for sanitizing $_REQUEST parameters and saving or getting it from DB
107 require_once( WPBC_PLUGIN_DIR . '/includes/_booking_hash/booking_hash.php' ); //FixIn: 9.2.3.3
108
109 require_once( WPBC_PLUGIN_DIR . '/includes/_news/wpbc_news.php' );
110
111 // Booking Listing
112 require_once( WPBC_PLUGIN_DIR . '/includes/_toolbar_ui/toolbar_ui.php' );
113 require_once( WPBC_PLUGIN_DIR . '/includes/_listing_css_js/listing_ui.php' );
114 require_once( WPBC_PLUGIN_DIR . '/includes/_pagination/pagination.php' );
115 require_once( WPBC_PLUGIN_DIR . '/includes/print/bookings_print.php' );
116
117 require_once( WPBC_PLUGIN_DIR . '/includes/page-bookings/bookings__sql.php' );
118 require_once( WPBC_PLUGIN_DIR . '/includes/page-bookings/bookings__actions.php' );
119 require_once( WPBC_PLUGIN_DIR . '/includes/page-bookings/bookings__listing.php' );
120 require_once( WPBC_PLUGIN_DIR . '/includes/page-bookings/bookings__page.php' );
121
122 // Booking > Availability page
123 require_once( WPBC_PLUGIN_DIR . '/includes/page-availability/availability__activation.php' );
124 require_once( WPBC_PLUGIN_DIR . '/includes/page-availability/availability__toolbar_ui.php' );
125 require_once( WPBC_PLUGIN_DIR . '/includes/page-availability/availability__class.php' );
126 require_once( WPBC_PLUGIN_DIR . '/includes/page-availability/availability__resource.php' );
127 require_once( WPBC_PLUGIN_DIR . '/includes/page-availability/availability__page.php' );
128
129 // Booking > Customize page //FixIn: 9.8.0.1
130 if ( WPBC_customize_plugin ) { //FixIn: 9.8.0.2
131 require_once( WPBC_PLUGIN_DIR . '/includes/page-customize/customize__templates.php' );
132 require_once( WPBC_PLUGIN_DIR . '/includes/page-customize/customize__ajax_request.php' );
133 require_once( WPBC_PLUGIN_DIR . '/includes/page-customize/customize__page.php' );
134 }
135
136 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
137
138 //FixIn: 9.6.3.5
139 require_once( WPBC_PLUGIN_DIR . '/core/admin/page-timeline.php' ); // Timeline
140 require_once( WPBC_PLUGIN_DIR . '/core/admin/page-new.php' ); // Add New Booking page
141
142 require_once( WPBC_PLUGIN_DIR . '/core/admin/wpbc-settings-functions.php' ); // Support functions for Booking > Settings General page
143 require_once( WPBC_PLUGIN_DIR . '/core/admin/page-settings.php' ); // Settings page
144 require_once( WPBC_PLUGIN_DIR . '/core/admin/api-settings.php' ); // Settings API
145
146 require_once( WPBC_PLUGIN_DIR . '/core/admin/wpbc-gutenberg.php' ); // Settings page
147
148 ////////////////////////////////////////////////////////////////////////////////
149
150 require_once( WPBC_PLUGIN_DIR . '/includes/page-form-simple/preview_form.php' ); // Preview - Booking Form
151 require_once( WPBC_PLUGIN_DIR . '/includes/page-form-simple/templates_form_simple.php' ); // Templates - Simple Booking Form
152
153 if ( file_exists( WPBC_PLUGIN_DIR.'/inc/_ps/personal.php' ) ){
154 require_once WPBC_PLUGIN_DIR . '/inc/_ps/personal.php';
155 } else {
156
157 require_once( WPBC_PLUGIN_DIR . '/includes/page-resource-free/page-resource-free.php' ); // Resource page for Free version
158 require_once( WPBC_PLUGIN_DIR . '/core/admin/page-up.php' ); // Up //FixIn: 8.0.1.6
159 require_once( WPBC_PLUGIN_DIR . '/includes/page-form-simple/page-form-simple.php' ); // Booking Form Simple
160
161 require_once( WPBC_PLUGIN_DIR . '/core/admin/page-email-new-admin.php' ); // Email - New admin.
162 require_once( WPBC_PLUGIN_DIR . '/core/admin/page-email-new-visitor.php' ); // Email - New visitor
163 require_once( WPBC_PLUGIN_DIR . '/core/admin/page-email-deny.php' ); // Email - Deny - set pending
164 require_once( WPBC_PLUGIN_DIR . '/core/admin/page-email-approved.php' ); // Email - Approved
165 require_once( WPBC_PLUGIN_DIR . '/core/admin/page-email-trash.php' ); // Email - Trash
166 require_once( WPBC_PLUGIN_DIR . '/core/admin/page-email-deleted.php' ); // Email - Deleted / completely erase
167
168 require_once( WPBC_PLUGIN_DIR . '/core/admin/page-ics-general.php' ); // General ICS Help Settings page //FixIn: 8.1.1.10
169 require_once( WPBC_PLUGIN_DIR . '/core/admin/page-ics-import.php' ); // Import ICS Help Settings page //FixIn: 8.0
170 require_once( WPBC_PLUGIN_DIR . '/core/admin/page-ics-export.php' ); // Export ICS Feeds Settings page //FixIn: 8.0
171 require_once( WPBC_PLUGIN_DIR . '/core/admin/page-import-gcal.php' ); // Import from Google Calendar Settings page
172 }
173
174 require_once( WPBC_PLUGIN_DIR . '/includes/_feedback/feedback.php'); //FixIn: 9.2.3.6
175
176 // Old Working
177 require_once WPBC_PLUGIN_DIR . '/core/lib/wpdev-booking-widget.php'; // W i d g e t s
178 require_once WPBC_PLUGIN_DIR . '/js/captcha/captcha.php'; // C A P T C H A
179
180 require_once WPBC_PLUGIN_DIR . '/core/lib/wpbc-calendar-legend.php'; // Calendar Legend //FixIn: 9.4.3.6
181
182 require_once WPBC_PLUGIN_DIR . '/core/lib/wpdev-booking-class.php'; // C L A S S B o o k i n g
183 require_once WPBC_PLUGIN_DIR . '/core/lib/wpbc-booking-new.php'; // N e w
184 require_once WPBC_PLUGIN_DIR . '/core/lib/wpbc-cron.php'; // CRON @since: 5.2.0
185
186 if( is_admin() ) {
187 //FixIn: 9.9.0.15
188 require_once WPBC_PLUGIN_DIR . '/includes/ui_modal__shortcodes/shortcode_tpl_js_loader.php'; // Templates JS Loader
189 require_once WPBC_PLUGIN_DIR . '/includes/ui_modal__shortcodes/sh_tpl_booking.php'; // Booking - Shortcode Config Content
190 require_once WPBC_PLUGIN_DIR . '/includes/ui_modal__shortcodes/sh_tpl_booking_calendar.php';
191 require_once WPBC_PLUGIN_DIR . '/includes/ui_modal__shortcodes/sh_tpl_booking_select.php';
192 require_once WPBC_PLUGIN_DIR . '/includes/ui_modal__shortcodes/sh_tpl_booking_timeline.php';
193 require_once WPBC_PLUGIN_DIR . '/includes/ui_modal__shortcodes/sh_tpl_booking_form.php';
194 require_once WPBC_PLUGIN_DIR . '/includes/ui_modal__shortcodes/sh_tpl_booking_search.php';
195 require_once WPBC_PLUGIN_DIR . '/includes/ui_modal__shortcodes/sh_tpl_booking_other.php';
196 require_once WPBC_PLUGIN_DIR . '/includes/ui_modal__shortcodes/sh_tpl_booking_import.php';
197 require_once WPBC_PLUGIN_DIR . '/includes/ui_modal__shortcodes/sh_tpl_booking_listing.php';
198 require_once WPBC_PLUGIN_DIR . '/includes/ui_modal__shortcodes/tiny-button-popup.php'; // PopUp for shortcodes and Buttons in Edit toolbar
199 }
200
201 require_once WPBC_PLUGIN_DIR . '/core/sync/wpbc-gcal-class.php'; //DONE: in 7.0 // Google Calendar Feeds Import @since: 5.2.0 - v.3.0 API support @since: 5.4.0
202 require_once WPBC_PLUGIN_DIR . '/core/sync/wpbc-gcal.php'; //DONE: in 7.0 // Sync Google Calendar Events with WPBC @since: 5.2.0 - v.3.0 API support @since: 5.4.0
203
204 require_once( WPBC_PLUGIN_DIR . '/core/any/activation.php' );
205 require_once( WPBC_PLUGIN_DIR . '/core/wpbc-activation.php' );
206
207 require_once( WPBC_PLUGIN_DIR . '/core/wpbc-dev-api.php' ); // API for Booking Calendar integrations //FixIn: 8.0
208
209 make_bk_action( 'wpbc_loaded_php_files' );