| @@ -1,105 +1,152 @@ | ||
| 1 | -<?php | |
| 2 | -/* | |
| 3 | -Plugin Name: Booking Calendar | |
| 4 | -Plugin URI: https://wpbookingcalendar.com/demo/ | |
| 5 | -Description: <a href="https://wpbookingcalendar.com/"><strong>Booking Calendar</strong></a> is the original first and most popular WordPress booking plugin. <strong>Show your availability</strong> on a calendar, receive and manage <strong>full-day</strong> or <strong>time-slot bookings</strong> in a modern and intuitive booking panel. <strong>Sync</strong> your events and <strong>schedule appointments</strong> with ease using this <strong>awesome booking system</strong>. | |
| 6 | -Author: wpdevelop, oplugins | |
| 7 | -Author URI: https://wpbookingcalendar.com/ | |
| 8 | -Text Domain: booking | |
| 9 | -Domain Path: /languages/ | |
| 10 | -Version: 10.11.2 | |
| 11 | -License: GPLv2 or later | |
| 12 | -*/ | |
| 13 | - | |
| 14 | -/* | |
| 15 | - Copyright 2009 - 2025 www.wpbookingcalendar.com (email: info@wpbookingcalendar.com), | |
| 16 | - | |
| 17 | - This program is free software: you can redistribute it and/or modify | |
| 18 | - it under the terms of the GNU General Public License as published by | |
| 19 | - the Free Software Foundation, either version 2 of the License, or | |
| 20 | - (at your option) any later version. | |
| 21 | - | |
| 22 | - This program is distributed in the hope that it will be useful, | |
| 23 | - but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 24 | - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 25 | - GNU General Public License for more details. | |
| 26 | - | |
| 27 | - You should have received a copy of the GNU General Public License | |
| 28 | - along with this program. If not, see <http://www.gnu.org/licenses/> | |
| 29 | -*/ | |
| 30 | - | |
| 31 | -if ( ! defined( 'ABSPATH' ) ) { | |
| 32 | - die( '<h3>Direct access to this file do not allow!</h3>' ); // Exit if accessed directly. | |
| 33 | -} | |
| 34 | - | |
| 35 | - | |
| 36 | -if ( ! defined( 'WP_BK_VERSION_NUM' ) ) { | |
| 37 | - define( 'WP_BK_VERSION_NUM', '10.11.2' ); | |
| 38 | -} | |
| 39 | -if ( ! defined( 'WP_BK_MINOR_UPDATE' ) ) { | |
| 40 | - define( 'WP_BK_MINOR_UPDATE', true ); | |
| 41 | -} | |
| 42 | - | |
| 43 | - | |
| 44 | -// --------------------------------------------------------------------------------------------------------------------- | |
| 45 | -// PRIMARY URL CONSTANTS | |
| 46 | -// --------------------------------------------------------------------------------------------------------------------- | |
| 47 | - | |
| 48 | -if ( ! defined( 'WPBC_FILE' ) ) { | |
| 49 | - define( 'WPBC_FILE', __FILE__ ); // ..\home\siteurl\www\wp-content\plugins\plugin-name\wpdev-booking.php | |
| 50 | -} | |
| 51 | - | |
| 52 | -if ( ! defined( 'WPBC_PLUGIN_FILENAME' ) ) { | |
| 53 | - define( 'WPBC_PLUGIN_FILENAME', basename( __FILE__ ) ); // wpdev-booking.php . | |
| 54 | -} | |
| 55 | - | |
| 56 | -if ( ! defined( 'WPBC_PLUGIN_DIRNAME' ) ) { | |
| 57 | - define( 'WPBC_PLUGIN_DIRNAME', plugin_basename( __DIR__ ) ); // plugin-name . | |
| 58 | -} | |
| 59 | - | |
| 60 | -if ( ! defined( 'WPBC_PLUGIN_DIR' ) ) { | |
| 61 | - define( 'WPBC_PLUGIN_DIR', untrailingslashit( plugin_dir_path( WPBC_FILE ) ) ); // ..\home\siteurl\www\wp-content\plugins\plugin-name | |
| 62 | -} | |
| 63 | - | |
| 64 | -if ( ! defined( 'WPBC_PLUGIN_URL' ) ) { | |
| 65 | - define( 'WPBC_PLUGIN_URL', untrailingslashit( plugins_url( '', WPBC_FILE ) ) ); // https: //website.com/wp-content/plugins/plugin-name . | |
| 66 | -} | |
| 67 | - | |
| 68 | -if ( ! defined( 'WP_BK_MIN_WP_VERSION' ) ) { | |
| 69 | - define( 'WP_BK_MIN_WP_VERSION', '4.0' ); // Minimum required WP version. | |
| 70 | -} | |
| 71 | - | |
| 72 | -if ( ! defined( 'WPBC_JS_IN_FOOTER' ) ) { | |
| 73 | - define( 'WPBC_JS_IN_FOOTER', true ); // Load all JavaScript files of plugin at footer or in header. | |
| 74 | -} | |
| 75 | - | |
| 76 | -// --------------------------------------------------------------------------------------------------------------------- | |
| 77 | -// == SYSTEM CONSTANTS == | |
| 78 | -// --------------------------------------------------------------------------------------------------------------------- | |
| 79 | -if ( ! defined( 'WP_BK_RESPONSE' ) ) { | |
| 80 | - define( 'WP_BK_RESPONSE', false ); | |
| 81 | -} | |
| 82 | - | |
| 83 | -// --------------------------------------------------------------------------------------------------------------------- | |
| 84 | -// == DEBUG CONSTANTS == | |
| 85 | -// --------------------------------------------------------------------------------------------------------------------- | |
| 86 | -if ( true ) { | |
| 87 | - // :: LIVE | |
| 88 | - if ( ! defined( 'WP_BK_BETA_DATA_FILL' ) ) { | |
| 89 | - define( 'WP_BK_BETA_DATA_FILL', 0 ); | |
| 90 | - } // Set 0 for no filling or 2 for 241 bookings or more for more. | |
| 91 | -} else { | |
| 92 | - // :: DEBUG | |
| 93 | - define( 'WP_BK_BETA_DATA_FILL', 2 ); | |
| 94 | - define( 'WP_BK_BETA_DATA_FILL_AS', 'BL' ); // BL - Dates , MU - Times. | |
| 95 | -} | |
| 96 | - | |
| 97 | - | |
| 98 | -if ( ! defined( 'WPBC_NEW_LISTING' ) ) { | |
| 99 | - define( 'WPBC_NEW_LISTING', true ); | |
| 100 | -} | |
| 101 | - | |
| 102 | -// --------------------------------------------------------------------------------------------------------------------- | |
| 103 | -// == Go == | |
| 104 | -// --------------------------------------------------------------------------------------------------------------------- | |
| 105 | -require_once WPBC_PLUGIN_DIR . '/core/wpbc.php'; | |
| 1 | +<?php | |
| 2 | +/* | |
| 3 | +Plugin Name: Booking Calendar | |
| 4 | +Plugin URI: https://wpbookingcalendar.com/demo/ | |
| 5 | +Description: Booking Calendar is the original WordPress booking plugin — trusted since 2009. Easily add a calendar to your site, display availability, and accept bookings for appointments, events, time slots, or full-day reservations. | |
| 6 | +Author: wpdevelop, oplugins | |
| 7 | +Author URI: https://wpbookingcalendar.com/ | |
| 8 | +Text Domain: booking | |
| 9 | +Domain Path: /languages/ | |
| 10 | +Version: 11.8.2 | |
| 11 | +License: GPLv2 or later | |
| 12 | +*/ | |
| 13 | + | |
| 14 | +/* | |
| 15 | + Copyright 2009 - 2026 www.wpbookingcalendar.com (email: info@wpbookingcalendar.com), | |
| 16 | + | |
| 17 | + This program is free software: you can redistribute it and/or modify | |
| 18 | + it under the terms of the GNU General Public License as published by | |
| 19 | + the Free Software Foundation, either version 2 of the License, or | |
| 20 | + (at your option) any later version. | |
| 21 | + | |
| 22 | + This program is distributed in the hope that it will be useful, | |
| 23 | + but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 24 | + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 25 | + GNU General Public License for more details. | |
| 26 | + | |
| 27 | + You should have received a copy of the GNU General Public License | |
| 28 | + along with this program. If not, see <http://www.gnu.org/licenses/> | |
| 29 | +*/ | |
| 30 | + | |
| 31 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 32 | + die( '<h3>Direct access to this file do not allow!</h3>' ); // Exit if accessed directly. | |
| 33 | +} | |
| 34 | + | |
| 35 | + | |
| 36 | +if ( ! defined( 'WP_BK_VERSION_NUM' ) ) { | |
| 37 | + define( 'WP_BK_VERSION_NUM', '11.8.2' ); | |
| 38 | +} | |
| 39 | +if ( ! defined( 'WP_BK_PRO_BFB_ONLY_VERSION' ) ) { | |
| 40 | + define( 'WP_BK_PRO_BFB_ONLY_VERSION', '11.4' ); // First Pro version that no longer loads legacy Booking Form settings pages. | |
| 41 | +} | |
| 42 | +if ( ! defined( 'WP_BK_MINOR_UPDATE' ) ) { | |
| 43 | + define( 'WP_BK_MINOR_UPDATE', true ); | |
| 44 | +} | |
| 45 | + | |
| 46 | +/** | |
| 47 | + * Default Form Style accent color for new Booking Calendar installations. | |
| 48 | + * | |
| 49 | + * Existing saved settings are intentionally preserved when this value changes. | |
| 50 | + * | |
| 51 | + * @since 11.5.0 | |
| 52 | + * @var string | |
| 53 | + */ | |
| 54 | +if ( ! defined( 'WPBC_DEFAULT_FORM_ACCENT_COLOR' ) ) { | |
| 55 | + define( 'WPBC_DEFAULT_FORM_ACCENT_COLOR', '#4765d5' ); // '#4765d5' -> default blue '#465160'; -> black // '#3858e9'; -> light blue // '#3849e8' -> light Woo. | |
| 56 | +} | |
| 57 | + | |
| 58 | +/** | |
| 59 | + * Master release gate for unfinished Booking Calendar 11.6 functionality. | |
| 60 | + * | |
| 61 | + * This gate keeps the new Booking Resources manager disabled independently | |
| 62 | + * from the released Services and Appointment functionality. | |
| 63 | + * | |
| 64 | + * @since 11.6.0 | |
| 65 | + */ | |
| 66 | +if ( ! defined( 'WPBC_ENABLE_11_6_FEATURES' ) ) { | |
| 67 | + define( 'WPBC_ENABLE_11_6_FEATURES', true ); | |
| 68 | +} | |
| 69 | + | |
| 70 | +/** | |
| 71 | + * Select the source used for bundled starter images. | |
| 72 | + * | |
| 73 | + * Set this constant to `remote` before Booking Calendar loads to resolve | |
| 74 | + * starter images from the Booking Calendar website. Every other value keeps | |
| 75 | + * the default, update-safe local plugin asset source. | |
| 76 | + * | |
| 77 | + * @since 11.6.0 | |
| 78 | + * @var string Supported values are `local` and `remote`. | |
| 79 | + */ | |
| 80 | +if ( ! defined( 'WPBC_STARTER_ASSETS_SOURCE' ) ) { | |
| 81 | + define( 'WPBC_STARTER_ASSETS_SOURCE', 'remote' ); | |
| 82 | +} | |
| 83 | + | |
| 84 | +// --------------------------------------------------------------------------------------------------------------------- | |
| 85 | +// PRIMARY URL CONSTANTS | |
| 86 | +// --------------------------------------------------------------------------------------------------------------------- | |
| 87 | + | |
| 88 | +if ( ! defined( 'WPBC_FILE' ) ) { | |
| 89 | + define( 'WPBC_FILE', __FILE__ ); // ..\home\siteurl\www\wp-content\plugins\plugin-name\wpdev-booking.php | |
| 90 | +} | |
| 91 | + | |
| 92 | +if ( ! defined( 'WPBC_PLUGIN_FILENAME' ) ) { | |
| 93 | + define( 'WPBC_PLUGIN_FILENAME', basename( __FILE__ ) ); // wpdev-booking.php . | |
| 94 | +} | |
| 95 | + | |
| 96 | +if ( ! defined( 'WPBC_PLUGIN_DIRNAME' ) ) { | |
| 97 | + define( 'WPBC_PLUGIN_DIRNAME', plugin_basename( __DIR__ ) ); // plugin-name . | |
| 98 | +} | |
| 99 | + | |
| 100 | +if ( ! defined( 'WPBC_PLUGIN_DIR' ) ) { | |
| 101 | + define( 'WPBC_PLUGIN_DIR', untrailingslashit( plugin_dir_path( WPBC_FILE ) ) ); // ..\home\siteurl\www\wp-content\plugins\plugin-name | |
| 102 | +} | |
| 103 | + | |
| 104 | +if ( ! defined( 'WPBC_PLUGIN_URL' ) ) { | |
| 105 | + define( 'WPBC_PLUGIN_URL', untrailingslashit( plugins_url( '', WPBC_FILE ) ) ); // https: //website.com/wp-content/plugins/plugin-name . | |
| 106 | +} | |
| 107 | + | |
| 108 | +if ( ! defined( 'WP_BK_MIN_WP_VERSION' ) ) { | |
| 109 | + define( 'WP_BK_MIN_WP_VERSION', '4.0' ); // Minimum required WP version. | |
| 110 | +} | |
| 111 | + | |
| 112 | +if ( ! defined( 'WPBC_JS_IN_FOOTER' ) ) { | |
| 113 | + define( 'WPBC_JS_IN_FOOTER', true ); // Load all JavaScript files of plugin at footer or in header. | |
| 114 | +} | |
| 115 | + | |
| 116 | +// --------------------------------------------------------------------------------------------------------------------- | |
| 117 | +// == SYSTEM CONSTANTS == | |
| 118 | +// --------------------------------------------------------------------------------------------------------------------- | |
| 119 | +if ( ! defined( 'WP_BK_RESPONSE' ) ) { | |
| 120 | + define( 'WP_BK_RESPONSE', false ); | |
| 121 | +} | |
| 122 | +if ( ! defined( 'WPBC_IS_PLAYGROUND' ) ) { | |
| 123 | + define( 'WPBC_IS_PLAYGROUND', ( isset( $_SERVER['SERVER_SOFTWARE'] ) && ( 'PHP.wasm' === $_SERVER['SERVER_SOFTWARE'] ) ) ); | |
| 124 | +} | |
| 125 | + | |
| 126 | +// Intentionally completely disable showing booking deatils in Timeline view on Front-End side. // FixIn: 10.14.11.1. | |
| 127 | +if ( ! defined( 'WPBC_DISABLE_POPOVER_IN_TIMELINE' ) ) { | |
| 128 | + define( 'WPBC_DISABLE_POPOVER_IN_TIMELINE', true ); | |
| 129 | +} | |
| 130 | + | |
| 131 | +// --------------------------------------------------------------------------------------------------------------------- | |
| 132 | +// == DEBUG CONSTANTS == | |
| 133 | +// --------------------------------------------------------------------------------------------------------------------- | |
| 134 | +if ( true ) { | |
| 135 | + // :: LIVE | |
| 136 | + if ( ! defined( 'WP_BK_BETA_DATA_FILL' ) ) { | |
| 137 | + define( 'WP_BK_BETA_DATA_FILL', 0 ); | |
| 138 | + } // Set 0 for no filling or 2 for 241 bookings or more for more. | |
| 139 | +} else { | |
| 140 | + // :: DEBUG | |
| 141 | + define( 'WP_BK_BETA_DATA_FILL', 1 ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedConstantFound | |
| 142 | + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedConstantFound | |
| 143 | + define( 'WP_BK_BETA_DATA_FILL_AS', 'BL' ); // BL - Dates , MU - Times. | |
| 144 | +} | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | +// --------------------------------------------------------------------------------------------------------------------- | |
| 150 | +// == Go == | |
| 151 | +// --------------------------------------------------------------------------------------------------------------------- | |
| 152 | +require_once WPBC_PLUGIN_DIR . '/core/wpbc.php'; | |