| 1 |
<?php /** |
| 2 |
* @version 1.0 |
| 3 |
* @package Booking Manager |
| 4 |
* @subpackage Files Loading |
| 5 |
* @category Items |
| 6 |
* |
| 7 |
* @author wpdevelop |
| 8 |
* @link https://oplugins.com/ |
| 9 |
* @email info@oplugins.com |
| 10 |
* |
| 11 |
* @modified 29.09.2015 |
| 12 |
*/ |
| 13 |
|
| 14 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly |
| 15 |
|
| 16 |
//////////////////////////////////////////////////////////////////////////////// |
| 17 |
// L O A D F I L E S |
| 18 |
//////////////////////////////////////////////////////////////////////////////// |
| 19 |
|
| 20 |
require_once( WPBM_PLUGIN_DIR . '/core/any/class-css-js.php' ); // Abstract. Loading CSS & JS files = Package: Any = |
| 21 |
require_once( WPBM_PLUGIN_DIR . '/core/any/class-admin-settings-api.php' ); // Abstract. Settings API. |
| 22 |
require_once( WPBM_PLUGIN_DIR . '/core/any/class-admin-page-structure.php' ); // Abstract. Page Structure in Admin Panel |
| 23 |
require_once( WPBM_PLUGIN_DIR . '/core/any/class-admin-menu.php' ); // CLASS. Menus of plugin |
| 24 |
require_once( WPBM_PLUGIN_DIR . '/core/any/admin-bs-ui.php' ); // Functions. Toolbar BS UI Elements |
| 25 |
if( is_admin() ) { |
| 26 |
require_once WPBM_PLUGIN_DIR . '/core/any/wpbm-class-dismiss.php'; // Class - Dismiss |
| 27 |
require_once WPBM_PLUGIN_DIR . '/core/any/wpbm-class-notices.php'; // Class - Notices |
| 28 |
} |
| 29 |
|
| 30 |
//////////////////////////////////////////////////////////////////////////////// |
| 31 |
// Functions |
| 32 |
//////////////////////////////////////////////////////////////////////////////// |
| 33 |
require_once( WPBM_PLUGIN_DIR . '/core/wpbm-debug.php' ); // Debug = Package: WPBM = |
| 34 |
require_once( WPBM_PLUGIN_DIR . '/core/wpbm-core.php' ); // Core |
| 35 |
require_once( WPBM_PLUGIN_DIR . '/core/wpbm-translation.php' ); // Translations |
| 36 |
require_once( WPBM_PLUGIN_DIR . '/core/wpbm-functions.php' ); // Functions |
| 37 |
|
| 38 |
//----------------------------------------------------------------------------------------- |
| 39 |
// Working files: ... // |
| 40 |
require_once( WPBM_PLUGIN_DIR . '/core/wpbm-shortcodes.php' ); // Shortcodes |
| 41 |
require_once( WPBM_PLUGIN_DIR . '/core/wpbm-ics.php' ); // ICS |
| 42 |
require_once( WPBM_PLUGIN_DIR . '/core/wpbm-ics-listing.php' ); // ICS Listing functionality |
| 43 |
|
| 44 |
if ( true ) { // Only if wpbc installed |
| 45 |
require_once( WPBM_PLUGIN_DIR . '/core/wpbc/wpbm-bc.php' ); // Booking Calendar native integration |
| 46 |
require_once( WPBM_PLUGIN_DIR . '/core/wpbc/wpbm-bc-import.php' ); // Booking Calendar native integration |
| 47 |
require_once( WPBM_PLUGIN_DIR . '/core/wpbc/wpbm-bc-export.php' ); // Booking Calendar native integration |
| 48 |
} |
| 49 |
//----------------------------------------------------------------------------------------- |
| 50 |
|
| 51 |
require_once( WPBM_PLUGIN_DIR . '/core/wpbm-upload.php' ); // Upload Functions |
| 52 |
require_once( WPBM_PLUGIN_DIR . '/core/wpbm-emails.php' ); // Emails |
| 53 |
|
| 54 |
// JS & CSS //////////////////////////////////////////////////////////////// |
| 55 |
require_once( WPBM_PLUGIN_DIR . '/core/wpbm-css.php' ); // Load CSS |
| 56 |
require_once( WPBM_PLUGIN_DIR . '/core/wpbm-js.php' ); // Load JavaScript and define JS Varibales |
| 57 |
|
| 58 |
// Admin UI //////////////////////////////////////////////////////////////////// |
| 59 |
require_once( WPBM_PLUGIN_DIR . '/core/admin/wpbm-dashboard.php' ); // Dashboard Widget |
| 60 |
|
| 61 |
// Admin Pages //////////////////////////////////////////////////////////////// |
| 62 |
if( is_admin() ) { |
| 63 |
//----------------------------------------------------------------------------------------- |
| 64 |
require_once( WPBM_PLUGIN_DIR . '/core/admin/page-root-ics.php' ); // Master page |
| 65 |
// require_once( WPBM_PLUGIN_DIR . '/core/admin/exmpl-page-files-add.php' ); // Get Upload functionality from this file for uploading .ICS file |
| 66 |
require_once( WPBM_PLUGIN_DIR . '/core/admin/page-settings.php' ); // Settings page |
| 67 |
require_once( WPBM_PLUGIN_DIR . '/core/admin/api-settings.php' ); // Settings API |
| 68 |
require_once( WPBM_PLUGIN_DIR . '/core/admin/page-settings-listing.php' ); // Settings > Listing page |
| 69 |
|
| 70 |
//----------------------------------------------------------------------------------------- |
| 71 |
} |
| 72 |
///////////////////////////////////////////////////////////////////////////////// |
| 73 |
require_once( WPBM_PLUGIN_DIR . '/core/any/activation.php' ); |
| 74 |
require_once( WPBM_PLUGIN_DIR . '/core/wpbm-activation.php' ); |
| 75 |
|
| 76 |
make_wpbm_action( 'wpbm_loaded_php_files' ); |