| 1 |
<?php |
| 2 |
/** |
| 3 |
* Plugin Name: Booking Calendar | Appointment Booking | BookIt |
| 4 |
* Plugin URI: https://bookit.stylemixthemes.com/ |
| 5 |
* Description: Booking Appointments Calendar. You can easily realize One Time and Recurring Booking with this plugin. |
| 6 |
* Author: StylemixThemes |
| 7 |
* Author URI: https://stylemixthemes.com/ |
| 8 |
* License: GNU General Public License v2 or later |
| 9 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html |
| 10 |
* Text Domain: bookit |
| 11 |
* Version: 1.2 |
| 12 |
*/ |
| 13 |
|
| 14 |
define('STM_BOOKIT_CALENDAR_FILE', __FILE__); |
| 15 |
define('STM_BOOKIT_CALENDAR_PATH', dirname(STM_BOOKIT_CALENDAR_FILE)); |
| 16 |
define('STM_BOOKIT_CALENDAR_URL', plugin_dir_url(STM_BOOKIT_CALENDAR_FILE)); |
| 17 |
|
| 18 |
if (!is_textdomain_loaded('bookit')) { |
| 19 |
load_plugin_textdomain('bookit', false, 'bookit/languages'); |
| 20 |
} |
| 21 |
|
| 22 |
require_once STM_BOOKIT_CALENDAR_PATH . '/db/tables.php'; |
| 23 |
require_once STM_BOOKIT_CALENDAR_PATH . '/api/appointment.php'; |
| 24 |
require_once STM_BOOKIT_CALENDAR_PATH . '/api/user.php'; |
| 25 |
require_once STM_BOOKIT_CALENDAR_PATH . '/api/calendar.php'; |
| 26 |
require_once STM_BOOKIT_CALENDAR_PATH . '/user_account/user_dashboard.php'; |
| 27 |
require_once STM_BOOKIT_CALENDAR_PATH . '/user_account/calendar_page.php'; |
| 28 |
require_once STM_BOOKIT_CALENDAR_PATH . '/helpers/main.php'; |
| 29 |
|
| 30 |
if (is_admin()) { |
| 31 |
require_once STM_BOOKIT_CALENDAR_PATH . '/helpers/admin_menu.php'; |
| 32 |
require_once STM_BOOKIT_CALENDAR_PATH . '/post_type/bookit.post.php'; |
| 33 |
require_once STM_BOOKIT_CALENDAR_PATH . '/calendar_app/main.php'; |
| 34 |
require_once(STM_BOOKIT_CALENDAR_PATH . '/helpers/post_type/metaboxes/metabox.php'); |
| 35 |
|
| 36 |
if (file_exists(dirname(__FILE__) . '/cmb2/init.php')) { |
| 37 |
require_once dirname(__FILE__) . '/cmb2/init.php'; |
| 38 |
} elseif (file_exists(dirname(__FILE__) . '/CMB2/init.php')) { |
| 39 |
require_once dirname(__FILE__) . '/CMB2/init.php'; |
| 40 |
} |
| 41 |
|
| 42 |
require_once STM_BOOKIT_CALENDAR_PATH . '/metaboxes/metaboxes.php'; |
| 43 |
require_once(STM_BOOKIT_CALENDAR_PATH . '/helpers/settings/settings.php'); |
| 44 |
require_once(STM_BOOKIT_CALENDAR_PATH . '/helpers/services/services.php'); |
| 45 |
} |