| 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.1.3 |
| 11 |
*/ |
| 12 |
|
| 13 |
/* Copyright 2009 - 2024 www.wpbookingcalendar.com (email: info@wpbookingcalendar.com), |
| 14 |
|
| 15 |
This program is free software: you can redistribute it and/or modify |
| 16 |
it under the terms of the GNU General Public License as published by |
| 17 |
the Free Software Foundation, either version 2 of the License, or |
| 18 |
(at your option) any later version. |
| 19 |
|
| 20 |
This program is distributed in the hope that it will be useful, |
| 21 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 22 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 23 |
GNU General Public License for more details. |
| 24 |
|
| 25 |
You should have received a copy of the GNU General Public License |
| 26 |
along with this program. If not, see <http://www.gnu.org/licenses/> |
| 27 |
*/ |
| 28 |
|
| 29 |
if ( ! defined( 'ABSPATH' ) ) die( '<h3>Direct access to this file do not allow!</h3>' ); // Exit if accessed directly |
| 30 |
|
| 31 |
|
| 32 |
if ( ! defined( 'WP_BK_VERSION_NUM' ) ) { define( 'WP_BK_VERSION_NUM', '10.1.3' ); } |
| 33 |
if ( ! defined( 'WP_BK_MINOR_UPDATE' ) ) { define( 'WP_BK_MINOR_UPDATE', true ); } |
| 34 |
|
| 35 |
|
| 36 |
// --------------------------------------------------------------------------------------------------------------------- |
| 37 |
// PRIMARY URL CONSTANTS |
| 38 |
// --------------------------------------------------------------------------------------------------------------------- |
| 39 |
|
| 40 |
// ..\home\siteurl\www\wp-content\plugins\plugin-name\wpdev-booking.php |
| 41 |
if ( ! defined( 'WPBC_FILE' ) ) define( 'WPBC_FILE', __FILE__ ); |
| 42 |
|
| 43 |
// wpdev-booking.php |
| 44 |
if ( ! defined('WPBC_PLUGIN_FILENAME' ) ) define('WPBC_PLUGIN_FILENAME', basename( __FILE__ ) ); |
| 45 |
|
| 46 |
// plugin-name |
| 47 |
if ( ! defined('WPBC_PLUGIN_DIRNAME' ) ) define('WPBC_PLUGIN_DIRNAME', plugin_basename( dirname( __FILE__ ) ) ); |
| 48 |
|
| 49 |
// ..\home\siteurl\www\wp-content\plugins\plugin-name |
| 50 |
if ( ! defined('WPBC_PLUGIN_DIR' ) ) define('WPBC_PLUGIN_DIR', untrailingslashit( plugin_dir_path( WPBC_FILE ) ) ); |
| 51 |
|
| 52 |
// http: //website.com/wp-content/plugins/plugin-name |
| 53 |
if ( ! defined('WPBC_PLUGIN_URL' ) ) define('WPBC_PLUGIN_URL', untrailingslashit( plugins_url( '', WPBC_FILE ) ) ); |
| 54 |
|
| 55 |
if ( ! defined('WP_BK_MIN_WP_VERSION' ) ) define('WP_BK_MIN_WP_VERSION', '4.0'); //Minimum required WP version //FixIn: 7.0.1.6 |
| 56 |
|
| 57 |
|
| 58 |
// --------------------------------------------------------------------------------------------------------------------- |
| 59 |
// == SYSTEM CONSTANTS == |
| 60 |
// --------------------------------------------------------------------------------------------------------------------- |
| 61 |
if ( ! defined( 'WP_BK_RESPONSE' ) ) { define( 'WP_BK_RESPONSE', false ); } |
| 62 |
|
| 63 |
|
| 64 |
// --------------------------------------------------------------------------------------------------------------------- |
| 65 |
// == DEBUG CONSTANTS == |
| 66 |
// --------------------------------------------------------------------------------------------------------------------- |
| 67 |
$is_debug = 0; |
| 68 |
if ( ! $is_debug ) { |
| 69 |
if ( ! defined( 'WP_BK_BETA_DATA_FILL' ) ) { define( 'WP_BK_BETA_DATA_FILL', 0 ); } // Set 0 for no filling or 2 for 241 bookings or more for more |
| 70 |
} else { |
| 71 |
define( 'WP_BK_BETA_DATA_FILL', 3 ); |
| 72 |
define( 'WP_BK_BETA_DATA_FILL_AS', 'BL' ); // BL - Dates , MU - Times |
| 73 |
} |
| 74 |
|
| 75 |
if ( ! defined( 'WPBC_customize_plugin' ) ) { define( 'WPBC_customize_plugin', false ); } |
| 76 |
|
| 77 |
// --------------------------------------------------------------------------------------------------------------------- |
| 78 |
// == Go == |
| 79 |
// --------------------------------------------------------------------------------------------------------------------- |
| 80 |
require_once WPBC_PLUGIN_DIR . '/core/wpbc.php'; |