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