| 1 |
<?php |
| 2 |
/** |
| 3 |
* Include Files of Booking Calendar. |
| 4 |
* |
| 5 |
* @version 1.0 |
| 6 |
* @package Booking Calendar |
| 7 |
* @subpackage Files Loading |
| 8 |
* @category Bookings |
| 9 |
* |
| 10 |
* @author wpdevelop |
| 11 |
* @link https://wpbookingcalendar.com/ |
| 12 |
* @email info@wpbookingcalendar.com |
| 13 |
* |
| 14 |
* @modified 29.09.2015 |
| 15 |
*/ |
| 16 |
|
| 17 |
if ( ! defined( 'ABSPATH' ) ) { |
| 18 |
exit; // Exit if accessed directly. |
| 19 |
} |
| 20 |
|
| 21 |
// ===================================================================================================================== |
| 22 |
// == L O A D F I L E S == |
| 23 |
// ===================================================================================================================== |
| 24 |
|
| 25 |
require_once WPBC_PLUGIN_DIR . '/core/wpbc-debug.php'; // Debug = Package: WPBC =. |
| 26 |
require_once WPBC_PLUGIN_DIR . '/core/wpbc-core.php'; // Core. |
| 27 |
require_once WPBC_PLUGIN_DIR . '/includes/_functions/feature-flags.php'; // Release gates for functionality under development. |
| 28 |
|
| 29 |
if ( wpbc_is_11_5_features_enabled() ) { |
| 30 |
require_once WPBC_PLUGIN_DIR . '/includes/booking_modes/booking_modes.php'; // Administration presentation modes. |
| 31 |
} |
| 32 |
|
| 33 |
// Explicit diagnostics can prove that the disabled master gate leaves the Booking Modes runtime unloaded. |
| 34 |
if ( defined( 'WPBC_ENABLE_BOOKING_MODES_TESTS' ) && true === WPBC_ENABLE_BOOKING_MODES_TESTS && ! wpbc_is_11_5_features_enabled() ) { |
| 35 |
require_once WPBC_PLUGIN_DIR . '/includes/booking_modes/tests/disabled-gate-test-page.php'; |
| 36 |
} |
| 37 |
|
| 38 |
// Explicit test panels can verify that the disabled 11.5 gate leaves feature modules unloaded. |
| 39 |
if ( defined( 'WPBC_ENABLE_APPOINTMENT_TESTS' ) && true === WPBC_ENABLE_APPOINTMENT_TESTS && ! wpbc_is_11_5_features_enabled() ) { |
| 40 |
require_once WPBC_PLUGIN_DIR . '/includes/booking-appointment/tests/http-test-page.php'; |
| 41 |
} |
| 42 |
|
| 43 |
require_once WPBC_PLUGIN_DIR . '/core/any/class-css-js.php'; // Abstract. Loading CSS & JS files = Package: Any =. |
| 44 |
require_once WPBC_PLUGIN_DIR . '/core/any/class-admin-settings-api.php'; // Abstract. Settings API. |
| 45 |
|
| 46 |
require_once WPBC_PLUGIN_DIR . '/includes/ui_settings/class-settings-page-parts.php'; // Settings Template - "Settins Parts", which used in the class-page-structure.php . |
| 47 |
require_once WPBC_PLUGIN_DIR . '/includes/ui_settings/class-menu-structure.php'; // Abstract. Page Structure in Admin Panel // 2025-02-09. |
| 48 |
require_once WPBC_PLUGIN_DIR . '/includes/ui_settings/class-page-structure.php'; // Abstract. Page Structure in Admin Panel // 2024-12-23. |
| 49 |
require_once WPBC_PLUGIN_DIR . '/includes/ui_settings/class-sidebar-panels.php'; // Common right sidebar panels and collapsible groups. |
| 50 |
require_once WPBC_PLUGIN_DIR . '/includes/ui_settings/class-listing.php'; // Shared AJAX-ready administration listing shell. |
| 51 |
|
| 52 |
// ----------------------------------------------------------------------------------------------------------------- |
| 53 |
// Booking Listing templates. |
| 54 |
// ----------------------------------------------------------------------------------------------------------------- |
| 55 |
require_once WPBC_PLUGIN_DIR . '/includes/page-bookings/booking_listing_row.php'; |
| 56 |
// Booking Actions. |
| 57 |
require_once WPBC_PLUGIN_DIR . '/includes/page-bookings/booking_action/booking_note.php'; |
| 58 |
require_once WPBC_PLUGIN_DIR . '/includes/page-bookings/booking_action/booking_cost.php'; |
| 59 |
require_once WPBC_PLUGIN_DIR . '/includes/page-bookings/booking_action/payment_status.php'; |
| 60 |
require_once WPBC_PLUGIN_DIR . '/includes/page-bookings/booking_action/payment_request.php'; |
| 61 |
require_once WPBC_PLUGIN_DIR . '/includes/page-bookings/booking_action/change_resource.php'; |
| 62 |
require_once WPBC_PLUGIN_DIR . '/includes/page-bookings/booking_action/duplicate_booking.php'; |
| 63 |
require_once WPBC_PLUGIN_DIR . '/includes/page-bookings/booking_action/change_locale.php'; |
| 64 |
require_once WPBC_PLUGIN_DIR . '/includes/page-bookings/booking_action/set_unavailable_times.php'; |
| 65 |
// Booking Listing - Filters - ... |
| 66 |
require_once WPBC_PLUGIN_DIR . '/includes/page-bookings/listing_filters/bo_listing_toolbar.php'; |
| 67 |
require_once WPBC_PLUGIN_DIR . '/includes/page-bookings/listing_filters/sort_by.php'; |
| 68 |
require_once WPBC_PLUGIN_DIR . '/includes/page-bookings/listing_filters/expand_colapse_all.php'; |
| 69 |
require_once WPBC_PLUGIN_DIR . '/includes/page-bookings/listing_filters/resource_choosen.php'; |
| 70 |
// Booking Listing - Actions - Bulk Actions. |
| 71 |
require_once WPBC_PLUGIN_DIR . '/includes/page-bookings/listing_actions/bulk_actions_dropdown.php'; |
| 72 |
require_once WPBC_PLUGIN_DIR . '/includes/page-bookings/listing_actions/selected_bookings_approve.php'; |
| 73 |
require_once WPBC_PLUGIN_DIR . '/includes/page-bookings/listing_actions/selected_bookings_pending.php'; |
| 74 |
require_once WPBC_PLUGIN_DIR . '/includes/page-bookings/listing_actions/selected_bookings_trash.php'; |
| 75 |
require_once WPBC_PLUGIN_DIR . '/includes/page-bookings/listing_actions/selected_bookings_restore.php'; |
| 76 |
require_once WPBC_PLUGIN_DIR . '/includes/page-bookings/listing_actions/selected_bookings_delete.php'; |
| 77 |
require_once WPBC_PLUGIN_DIR . '/includes/page-bookings/listing_actions/selected_bookings_read.php'; |
| 78 |
require_once WPBC_PLUGIN_DIR . '/includes/page-bookings/listing_actions/selected_bookings_unread.php'; |
| 79 |
require_once WPBC_PLUGIN_DIR . '/includes/page-bookings/listing_actions/bulk_print.php'; |
| 80 |
require_once WPBC_PLUGIN_DIR . '/includes/page-bookings/listing_actions/empty_trash.php'; |
| 81 |
require_once WPBC_PLUGIN_DIR . '/includes/page-bookings/listing_actions/set_read_all.php'; |
| 82 |
require_once WPBC_PLUGIN_DIR . '/includes/page-bookings/listing_actions/export_csv.php'; |
| 83 |
require_once WPBC_PLUGIN_DIR . '/includes/page-bookings/listing_actions/import_google_calendar.php'; |
| 84 |
|
| 85 |
|
| 86 |
require_once WPBC_PLUGIN_DIR . '/core/any/class-admin-menu.php'; // CLASS. Menus of plugin. |
| 87 |
require_once WPBC_PLUGIN_DIR . '/core/any/admin-bs-ui.php'; // Functions. Toolbar BS UI Elements. |
| 88 |
if ( is_admin() ) { |
| 89 |
require_once WPBC_PLUGIN_DIR . '/core/class/wpbc-class-notices.php'; // Class - Showing different messages and alerts. Including some predefined static messages. |
| 90 |
require_once WPBC_PLUGIN_DIR . '/core/class/wpbc-class-welcome.php'; // Class - Welcome Page - info about new version. |
| 91 |
} |
| 92 |
|
| 93 |
// ===================================================================================================================== |
| 94 |
// Functions |
| 95 |
// ===================================================================================================================== |
| 96 |
require_once WPBC_PLUGIN_DIR . '/includes/_functions/class-wpbc-action-scheduler-compatibility.php'; // Class to Increase Memory and Time. |
| 97 |
require_once WPBC_PLUGIN_DIR . '/includes/_functions/nonce_func.php'; // Nonce functions - front-end excluding. |
| 98 |
require_once WPBC_PLUGIN_DIR . '/includes/_functions/str_regex.php'; // String and Regex functions for shortcodes. |
| 99 |
require_once WPBC_PLUGIN_DIR . '/includes/_functions/is_table_exist.php'; // Is DB Tables Exists. |
| 100 |
require_once WPBC_PLUGIN_DIR . '/includes/_functions/is_dismissed.php'; // Is Dismissed. |
| 101 |
require_once WPBC_PLUGIN_DIR . '/includes/_functions/booking_data__parse.php'; // Booking form data parsing and replacement. |
| 102 |
require_once WPBC_PLUGIN_DIR . '/includes/_functions/booking_data__get.php'; // Booking details | replace / fields functions. |
| 103 |
require_once WPBC_PLUGIN_DIR . '/includes/_functions/simple_html_tags.php'; // Simple HTML Tags - Custom Shortcodes. |
| 104 |
require_once WPBC_PLUGIN_DIR . '/includes/_functions/admin_menu_url.php'; // Admin Menu Pages & URLs. |
| 105 |
require_once WPBC_PLUGIN_DIR . '/includes/_functions/admin_top_bar.php'; // Admin Top Bar. |
| 106 |
require_once WPBC_PLUGIN_DIR . '/includes/_functions/news_version.php'; // News, Version. |
| 107 |
require_once WPBC_PLUGIN_DIR . '/includes/_functions/versions.php'; // Versions. |
| 108 |
require_once WPBC_PLUGIN_DIR . '/includes/_functions/sanitizing.php'; // Sanitizing. |
| 109 |
require_once WPBC_PLUGIN_DIR . '/includes/_functions/request.php'; // Class for sanitizing $_REQUEST parameters and saving or getting it from DB // FixIn: 9.3.1.2. |
| 110 |
require_once WPBC_PLUGIN_DIR . '/includes/_functions/city_list.php'; // City list. |
| 111 |
require_once WPBC_PLUGIN_DIR . '/includes/save-user-meta/save-user-meta.php'; // Saving custom user data. |
| 112 |
require_once WPBC_PLUGIN_DIR . '/includes/save-load-option/save-load-option.php'; // Ajax Options Saver / Loader. |
| 113 |
require_once WPBC_PLUGIN_DIR . '/includes/_functions/calendar_scripts.php'; // Calendar Scripts. |
| 114 |
|
| 115 |
require_once WPBC_PLUGIN_DIR . '/core/wpbc_functions.php'; // Functions. |
| 116 |
require_once WPBC_PLUGIN_DIR . '/core/wpbc_functions_dates.php'; // Function Dates New in 9.8. |
| 117 |
require_once WPBC_PLUGIN_DIR . '/core/form_parser.php'; // Parser for booking form New in 9.8. |
| 118 |
require_once WPBC_PLUGIN_DIR . '/core/wpbc-dates.php'; // Dates. |
| 119 |
require_once WPBC_PLUGIN_DIR . '/includes/_front_end/date-hints.php'; // Front-end date hints for Free. // FixIn: 10.15.6.2. |
| 120 |
require_once WPBC_PLUGIN_DIR . '/core/wpbc_welcome.php'; // Welcome Panel Functions. |
| 121 |
require_once WPBC_PLUGIN_DIR . '/includes/_working_time/working_time.php'; // Working Time settings and availability helpers. |
| 122 |
|
| 123 |
// New Engine // FixIn: 9.8.0.4. |
| 124 |
require_once WPBC_PLUGIN_DIR . '/includes/_capacity/wpbc_cache.php'; // Caching different requests to DB // FixIn: 9.8.0.4. |
| 125 |
require_once WPBC_PLUGIN_DIR . '/includes/_capacity/booking_date_class.php'; // Functions for booking dates. |
| 126 |
require_once WPBC_PLUGIN_DIR . '/includes/_capacity/dates_times_support.php'; // Functions for booking DATES & TIME. |
| 127 |
require_once WPBC_PLUGIN_DIR . '/includes/_capacity/resource_support.php'; // Functions for resources support. |
| 128 |
require_once WPBC_PLUGIN_DIR . '/includes/_capacity/capacity.php'; // Get Dates from DB - Capacity, Availability and more ... |
| 129 |
require_once WPBC_PLUGIN_DIR . '/includes/_capacity/get_times_fields.php'; // Get Times Fields options from Booking Form. |
| 130 |
require_once WPBC_PLUGIN_DIR . '/includes/_capacity/aggregate.php'; // Aggregate functions for 'aggregate' parameter in shortcode. |
| 131 |
require_once WPBC_PLUGIN_DIR . '/includes/_capacity/where_to_save.php'; // Check where to save booking. |
| 132 |
require_once WPBC_PLUGIN_DIR . '/includes/_capacity/create_booking.php'; // Functions to create new bookings. |
| 133 |
require_once WPBC_PLUGIN_DIR . '/includes/_capacity/confirmation.php'; // Confirmation section - get data. |
| 134 |
require_once WPBC_PLUGIN_DIR . '/includes/_capacity/confirmation_page.php'; // Confirmation Page. |
| 135 |
require_once WPBC_PLUGIN_DIR . '/includes/_capacity/calendar_load.php'; // Scripts to load calendar. |
| 136 |
require_once WPBC_PLUGIN_DIR . '/includes/_capacity/captcha_simple_text.php'; // Simple text captcha checking. |
| 137 |
|
| 138 |
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... |
| 139 |
// FixIn: 8.9.4.12. |
| 140 |
if ( file_exists( WPBC_PLUGIN_DIR . '/core/lang/wpbc_all_translations.php' ) ) { |
| 141 |
|
| 142 |
require_once WPBC_PLUGIN_DIR . '/core/lang/wpbc_all_translations.php'; // All Translation Terms. |
| 143 |
|
| 144 |
// FixIn: 8.7.3.6. |
| 145 |
if ( file_exists( WPBC_PLUGIN_DIR . '/core/lang/wpbc_all_translations1.php' ) ) { |
| 146 |
require_once WPBC_PLUGIN_DIR . '/core/lang/wpbc_all_translations1.php'; |
| 147 |
} |
| 148 |
if ( file_exists( WPBC_PLUGIN_DIR . '/core/lang/wpbc_all_translations2.php' ) ) { |
| 149 |
require_once WPBC_PLUGIN_DIR . '/core/lang/wpbc_all_translations2.php'; |
| 150 |
} |
| 151 |
if ( file_exists( WPBC_PLUGIN_DIR . '/core/lang/wpbc_all_translations3.php' ) ) { |
| 152 |
require_once WPBC_PLUGIN_DIR . '/core/lang/wpbc_all_translations3.php'; |
| 153 |
} |
| 154 |
if ( file_exists( WPBC_PLUGIN_DIR . '/core/lang/wpbc_all_translations4.php' ) ) { |
| 155 |
require_once WPBC_PLUGIN_DIR . '/core/lang/wpbc_all_translations4.php'; |
| 156 |
} |
| 157 |
if ( file_exists( WPBC_PLUGIN_DIR . '/core/lang/wpbc_all_translations5.php' ) ) { |
| 158 |
require_once WPBC_PLUGIN_DIR . '/core/lang/wpbc_all_translations5.php'; |
| 159 |
} |
| 160 |
} |
| 161 |
|
| 162 |
require_once WPBC_PLUGIN_DIR . '/core/wpbc-frontend-messages.php'; // Visitor-facing form messages and multilingual overrides. |
| 163 |
|
| 164 |
require_once WPBC_PLUGIN_DIR . '/includes/publish/wpbc-create-pages.php'; // Create pages for different purposes // FixIn: 9.6.2.10. |
| 165 |
require_once WPBC_PLUGIN_DIR . '/includes/publish/wpbc-publish-shortcode.php'; // Publish Booking Calendar shortcodes into the Pages // FixIn: 9.8.15.5. |
| 166 |
require_once WPBC_PLUGIN_DIR . '/core/wpbc-emails.php'; // Emails. |
| 167 |
// JS & CSS. |
| 168 |
require_once WPBC_PLUGIN_DIR . '/core/wpbc-css.php'; // Load CSS. |
| 169 |
require_once WPBC_PLUGIN_DIR . '/core/wpbc-js.php'; // Load JavaScript. |
| 170 |
require_once WPBC_PLUGIN_DIR . '/core/wpbc-js-vars.php'; // Define JavaScript Vars. |
| 171 |
// Admin UI. |
| 172 |
require_once WPBC_PLUGIN_DIR . '/core/admin/wpbc-toolbars.php'; // Toolbar - BS UI Elements. |
| 173 |
require_once WPBC_PLUGIN_DIR . '/core/admin/wpbc-sql.php'; // Data Engine for Booking Listing / Calendar Overview pages. |
| 174 |
// FixIn: 9.6.3.5 // FixIn: 8.6.1.13. |
| 175 |
require_once WPBC_PLUGIN_DIR . '/core/timeline/flex-timeline.php'; // New. Flex. Timeline. |
| 176 |
|
| 177 |
require_once WPBC_PLUGIN_DIR . '/core/admin/wpbc-dashboard.php'; // Dashboard Widget. |
| 178 |
require_once WPBC_PLUGIN_DIR . '/includes/page-add-booking/add_booking__component.php'; // Reusable Add Booking component. |
| 179 |
require_once WPBC_PLUGIN_DIR . '/includes/page-add-booking/add_booking__modal.php'; // Add Booking modal in Booking Listing. |
| 180 |
|
| 181 |
// --------------------------------------------------------------------------------------------------------------------- |
| 182 |
// Admin Pages |
| 183 |
// --------------------------------------------------------------------------------------------------------------------- |
| 184 |
|
| 185 |
// FixIn: 9.2.1 // FixIn: 9.6.3.5. |
| 186 |
require_once WPBC_PLUGIN_DIR . '/includes/_booking_hash/booking_hash.php'; // FixIn: 9.2.3.3. |
| 187 |
|
| 188 |
require_once WPBC_PLUGIN_DIR . '/includes/_news/wpbc_news.php'; |
| 189 |
|
| 190 |
// UI Elements. |
| 191 |
require_once WPBC_PLUGIN_DIR . '/includes/_toolbar_ui/flex_ui_elements.php'; |
| 192 |
require_once WPBC_PLUGIN_DIR . '/includes/_toolbar_ui/chosen_filter/chosen_filter.php'; |
| 193 |
require_once WPBC_PLUGIN_DIR . '/includes/_toolbar_ui/ui__settings_panel.php'; |
| 194 |
require_once WPBC_PLUGIN_DIR . '/includes/_toolbar_ui/toolbar_ui.php'; |
| 195 |
require_once WPBC_PLUGIN_DIR . '/includes/_toolbar_ui/ui__form_steps_timeline.php'; // FixIn: 10.9.6.6. |
| 196 |
|
| 197 |
// Booking Listing. |
| 198 |
require_once WPBC_PLUGIN_DIR . '/includes/_pagination/pagination.php'; |
| 199 |
require_once WPBC_PLUGIN_DIR . '/includes/print/bookings_print.php'; |
| 200 |
|
| 201 |
require_once WPBC_PLUGIN_DIR . '/includes/page-bookings/bookings__sql.php'; |
| 202 |
require_once WPBC_PLUGIN_DIR . '/includes/page-bookings/bookings__actions.php'; |
| 203 |
require_once WPBC_PLUGIN_DIR . '/includes/page-bookings/bookings__listing.php'; |
| 204 |
require_once WPBC_PLUGIN_DIR . '/includes/page-bookings/bookings__page.php'; |
| 205 |
|
| 206 |
// WP Booking Calendar > Availability > Days Availability page. |
| 207 |
require_once WPBC_PLUGIN_DIR . '/includes/page-availability/availability__activation.php'; |
| 208 |
require_once WPBC_PLUGIN_DIR . '/includes/page-availability/availability__toolbar_ui.php'; |
| 209 |
require_once WPBC_PLUGIN_DIR . '/includes/page-availability/availability__class.php'; |
| 210 |
require_once WPBC_PLUGIN_DIR . '/includes/page-availability/availability__resource.php'; |
| 211 |
require_once WPBC_PLUGIN_DIR . '/includes/page-availability/availability__page.php'; |
| 212 |
require_once WPBC_PLUGIN_DIR . '/includes/page-availability-general/availability_general__page.php'; |
| 213 |
require_once WPBC_PLUGIN_DIR . '/includes/page-availability-general/ajax/availability_general__save.php'; |
| 214 |
require_once WPBC_PLUGIN_DIR . '/includes/page-availability-general/ajax/availability_general__preview.php'; |
| 215 |
|
| 216 |
// WP Booking Calendar > Availability > Times Availability page. // FixIn: 10.16.1. |
| 217 |
require_once WPBC_PLUGIN_DIR . '/includes/page-availability-timeslots/ajax/availability_timeslots__front.php'; |
| 218 |
require_once WPBC_PLUGIN_DIR . '/includes/page-availability-timeslots/availability_timeslots__activate.php'; |
| 219 |
require_once WPBC_PLUGIN_DIR . '/includes/page-availability-timeslots/ajax/availability_timeslots__save.php'; |
| 220 |
require_once WPBC_PLUGIN_DIR . '/includes/page-availability-timeslots/availability_timeslots__page.php'; |
| 221 |
|
| 222 |
if ( wpbc_is_11_5_features_enabled() ) { |
| 223 |
// WP Booking Calendar > Services and Appointment details. |
| 224 |
require_once WPBC_PLUGIN_DIR . '/includes/page-appointment-services/appointment_services__activate.php'; |
| 225 |
require_once WPBC_PLUGIN_DIR . '/includes/page-appointment-services/appointment_services__functions.php'; |
| 226 |
require_once WPBC_PLUGIN_DIR . '/includes/page-appointment-services/repository/appointment_services__repository.php'; |
| 227 |
require_once WPBC_PLUGIN_DIR . '/includes/page-appointment-services/appointment_services__booking.php'; |
| 228 |
require_once WPBC_PLUGIN_DIR . '/includes/page-appointment-services/appointment_services__ui.php'; |
| 229 |
require_once WPBC_PLUGIN_DIR . '/includes/page-appointment-services/ajax/appointment_services__list.php'; |
| 230 |
require_once WPBC_PLUGIN_DIR . '/includes/page-appointment-services/ajax/appointment_services__load.php'; |
| 231 |
require_once WPBC_PLUGIN_DIR . '/includes/page-appointment-services/ajax/appointment_services__save.php'; |
| 232 |
require_once WPBC_PLUGIN_DIR . '/includes/page-appointment-services/ajax/appointment_services__duplicate.php'; |
| 233 |
require_once WPBC_PLUGIN_DIR . '/includes/page-appointment-services/ajax/appointment_services__archive.php'; |
| 234 |
require_once WPBC_PLUGIN_DIR . '/includes/page-appointment-services/appointment_services__page.php'; |
| 235 |
} |
| 236 |
|
| 237 |
require_once WPBC_PLUGIN_DIR . '/includes/page-form-builder/bfb-include.php'; // Booking Form Builder - @since: 11.0.0. |
| 238 |
require_once WPBC_PLUGIN_DIR . '/includes/page-form-builder/form-render/class-wpbc-bfb-form-shortcode-engine.php'; // New Shortcode Parsers and Form Render. 11.0.1. |
| 239 |
require_once WPBC_PLUGIN_DIR . '/includes/page-form-builder/form-render/bfb-form-render.php'; |
| 240 |
|
| 241 |
|
| 242 |
// Elementor Addons: https://developers.elementor.com/docs/getting-started/first-addon/. |
| 243 |
require_once WPBC_PLUGIN_DIR . '/includes/elementor-booking-form/wpbc-elementor.php'; |
| 244 |
|
| 245 |
// --------------------------------------------------------------------------------------------------------------------- |
| 246 |
|
| 247 |
// FixIn: 9.6.3.5. |
| 248 |
require_once WPBC_PLUGIN_DIR . '/core/admin/page-timeline.php'; // Timeline. |
| 249 |
require_once WPBC_PLUGIN_DIR . '/includes/page-add-booking/add_booking__page.php'; // Add New Booking page. |
| 250 |
|
| 251 |
require_once WPBC_PLUGIN_DIR . '/core/admin/wpbc-settings-functions.php'; // Support functions for Booking > Settings General page. |
| 252 |
require_once WPBC_PLUGIN_DIR . '/core/admin/page-settings.php'; // Settings page. |
| 253 |
require_once WPBC_PLUGIN_DIR . '/core/admin/api-settings.php'; // Settings API. |
| 254 |
require_once WPBC_PLUGIN_DIR . '/includes/page-resource-capacity/page-resource-capacity.php'; // Resource Capacity Settings. |
| 255 |
|
| 256 |
|
| 257 |
require_once WPBC_PLUGIN_DIR . '/core/admin/wpbc-gutenberg.php'; // Settings page. |
| 258 |
|
| 259 |
// --------------------------------------------------------------------------------------------------------------------- |
| 260 |
|
| 261 |
if ( file_exists( WPBC_PLUGIN_DIR . '/inc/_ps/personal.php' ) ) { |
| 262 |
require_once WPBC_PLUGIN_DIR . '/inc/_ps/personal.php'; |
| 263 |
} else { |
| 264 |
require_once WPBC_PLUGIN_DIR . '/includes/page-resource-free/page-resource-free.php'; // Resource page for Free version. |
| 265 |
|
| 266 |
require_once WPBC_PLUGIN_DIR . '/core/admin/page-email-new-admin.php'; // Email - New admin. |
| 267 |
require_once WPBC_PLUGIN_DIR . '/core/admin/page-email-new-visitor.php'; // Email - New visitor. |
| 268 |
require_once WPBC_PLUGIN_DIR . '/core/admin/page-email-deny.php'; // Email - Deny - set pending. |
| 269 |
require_once WPBC_PLUGIN_DIR . '/core/admin/page-email-approved.php'; // Email - Approved. |
| 270 |
require_once WPBC_PLUGIN_DIR . '/core/admin/page-email-trash.php'; // Email - Trash. |
| 271 |
require_once WPBC_PLUGIN_DIR . '/core/admin/page-email-deleted.php'; // Email - Deleted / completely erase. |
| 272 |
|
| 273 |
require_once WPBC_PLUGIN_DIR . '/core/admin/page-ics-general.php'; // General ICS Help Settings page. |
| 274 |
require_once WPBC_PLUGIN_DIR . '/core/admin/page-ics-import.php'; // Import ICS Help Settings page. |
| 275 |
require_once WPBC_PLUGIN_DIR . '/core/admin/page-ics-export.php'; // Export ICS Feeds Settings page. |
| 276 |
require_once WPBC_PLUGIN_DIR . '/core/admin/page-import-gcal.php'; // Import from Google Calendar Settings page . |
| 277 |
} |
| 278 |
|
| 279 |
require_once WPBC_PLUGIN_DIR . '/includes/page-settings-themes/settings_themes__page.php'; // Appearance / Theme Settings. |
| 280 |
require_once WPBC_PLUGIN_DIR . '/includes/page-settings-themes/ajax/settings_themes__save.php'; |
| 281 |
require_once WPBC_PLUGIN_DIR . '/includes/page-settings-themes/ajax/settings_themes__preview.php'; |
| 282 |
require_once WPBC_PLUGIN_DIR . '/includes/page-settings-calendar/settings_calendar__page.php'; // Calendar Settings. |
| 283 |
require_once WPBC_PLUGIN_DIR . '/includes/page-settings-calendar/ajax/settings_calendar__save.php'; |
| 284 |
require_once WPBC_PLUGIN_DIR . '/includes/page-settings-calendar/ajax/settings_calendar__preview.php'; |
| 285 |
require_once WPBC_PLUGIN_DIR . '/includes/page-settings-messages/settings_messages__page.php'; // Visitor-facing Form Messages settings. |
| 286 |
require_once WPBC_PLUGIN_DIR . '/includes/page-settings-messages/ajax/settings_messages__save.php'; |
| 287 |
|
| 288 |
// Booking > Setup page // FixIn: 10.2.0.1. |
| 289 |
// FixIn: 9.8.0.2. |
| 290 |
require_once WPBC_PLUGIN_DIR . '/includes/page-setup/setup__page.php'; |
| 291 |
require_once WPBC_PLUGIN_DIR . '/includes/_tour/wpbc_tour.php'; // FixIn: 10.4.0.1. |
| 292 |
|
| 293 |
|
| 294 |
require_once WPBC_PLUGIN_DIR . '/includes/_feedback/feedback.php'; // FixIn: 9.2.3.6. |
| 295 |
require_once WPBC_PLUGIN_DIR . '/includes/_feedback_deactivation/feedback.php'; // FixIn: 10.12.3.4. |
| 296 |
|
| 297 |
// Old Working. |
| 298 |
require_once WPBC_PLUGIN_DIR . '/core/lib/wpdev-booking-widget.php'; // W i d g e t s. |
| 299 |
require_once WPBC_PLUGIN_DIR . '/js/captcha/captcha.php'; // C A P T C H A. |
| 300 |
|
| 301 |
require_once WPBC_PLUGIN_DIR . '/core/lib/wpbc-calendar-legend.php'; // Calendar Legend // FixIn: 9.4.3.6. |
| 302 |
/* Frontend renderers. */ |
| 303 |
require_once WPBC_PLUGIN_DIR . '/includes/_front_end/class-fe-shortcode-params.php'; |
| 304 |
require_once WPBC_PLUGIN_DIR . '/includes/_front_end/class-fe-inline-css-js.php'; |
| 305 |
require_once WPBC_PLUGIN_DIR . '/includes/_front_end/class-fe-render.php'; |
| 306 |
require_once WPBC_PLUGIN_DIR . '/includes/_front_end/class-fe-shortcodes.php'; |
| 307 |
require_once WPBC_PLUGIN_DIR . '/includes/_front_end/class-fe-form-source-resolver.php'; |
| 308 |
require_once WPBC_PLUGIN_DIR . '/includes/_front_end/form-style-presets.php'; |
| 309 |
require_once WPBC_PLUGIN_DIR . '/includes/_front_end/hooks/class-fe-bfb-settings-hooks.php'; // Apply BFB settings to rendered booking form HTML. |
| 310 |
require_once WPBC_PLUGIN_DIR . '/includes/_front_end/class-fe-render-form-body.php'; |
| 311 |
require_once WPBC_PLUGIN_DIR . '/includes/_custom_forms/class-custom-forms-helper.php'; // Custom forms Helpers. |
| 312 |
|
| 313 |
if ( wpbc_is_11_5_features_enabled() ) { |
| 314 |
// Service-first, AJAX Appointment booking shortcode built on the existing resource-bound renderer. |
| 315 |
require_once WPBC_PLUGIN_DIR . '/includes/booking-appointment/booking-appointment.php'; |
| 316 |
// Resource-first, AJAX booking shortcode built on the same native resource-bound renderer. |
| 317 |
require_once WPBC_PLUGIN_DIR . '/includes/booking-resource-selector/booking-resource-selector.php'; |
| 318 |
// Dedicated administrator workflow built on the same Appointment controller. |
| 319 |
require_once WPBC_PLUGIN_DIR . '/includes/page-add-appointment/add_appointment__page.php'; |
| 320 |
} |
| 321 |
|
| 322 |
require_once WPBC_PLUGIN_DIR . '/core/lib/wpdev-booking-class.php'; // C L A S S B o o k i n g. |
| 323 |
require_once WPBC_PLUGIN_DIR . '/core/lib/wpbc-booking-new.php'; // N e w. |
| 324 |
require_once WPBC_PLUGIN_DIR . '/core/lib/wpbc-cron.php'; // CRON @since: 5.2.0. |
| 325 |
|
| 326 |
|
| 327 |
if ( is_admin() ) { |
| 328 |
// FixIn: 9.9.0.15. |
| 329 |
require_once WPBC_PLUGIN_DIR . '/includes/ui_modal__shortcodes/shortcode_tpl_js_loader.php'; // Templates JS Loader. |
| 330 |
require_once WPBC_PLUGIN_DIR . '/includes/ui_modal__shortcodes/sh_tpl_booking.php'; // Booking - Shortcode Config Content. |
| 331 |
require_once WPBC_PLUGIN_DIR . '/includes/ui_modal__shortcodes/sh_tpl_booking_calendar.php'; |
| 332 |
require_once WPBC_PLUGIN_DIR . '/includes/ui_modal__shortcodes/sh_tpl_booking_select.php'; |
| 333 |
require_once WPBC_PLUGIN_DIR . '/includes/ui_modal__shortcodes/sh_tpl_booking_timeline.php'; |
| 334 |
require_once WPBC_PLUGIN_DIR . '/includes/ui_modal__shortcodes/sh_tpl_booking_form.php'; |
| 335 |
require_once WPBC_PLUGIN_DIR . '/includes/ui_modal__shortcodes/sh_tpl_booking_search.php'; |
| 336 |
require_once WPBC_PLUGIN_DIR . '/includes/ui_modal__shortcodes/sh_tpl_booking_other.php'; |
| 337 |
require_once WPBC_PLUGIN_DIR . '/includes/ui_modal__shortcodes/sh_tpl_booking_import.php'; |
| 338 |
require_once WPBC_PLUGIN_DIR . '/includes/ui_modal__shortcodes/sh_tpl_booking_listing.php'; |
| 339 |
require_once WPBC_PLUGIN_DIR . '/includes/ui_modal__shortcodes/tiny-button-popup.php'; // PopUp for shortcodes and Buttons in Edit toolbar. |
| 340 |
} |
| 341 |
|
| 342 |
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. |
| 343 |
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. |
| 344 |
|
| 345 |
require_once WPBC_PLUGIN_DIR . '/core/any/activation.php'; |
| 346 |
require_once WPBC_PLUGIN_DIR . '/core/wpbc-activation.php'; |
| 347 |
|
| 348 |
require_once WPBC_PLUGIN_DIR . '/core/wpbc-dev-api.php'; // API for Booking Calendar integrations. |
| 349 |
|
| 350 |
wpbc_prevent_incompatible_pro_version_loading(); |
| 351 |
|
| 352 |
make_bk_action( 'wpbc_loaded_php_files' ); |
| 353 |
do_action( 'wpbc_loaded_php_files' ); |
| 354 |
|