← All changes
|
integrations/buddyboss/includes/community/loader.php
+45
-0
7.9.2
→
8.0.5
View file →
| @@ -1,0 +1,45 @@ | ||
| 1 | +<?php | |
| 2 | +/** | |
| 3 | + * Loader | |
| 4 | + * | |
| 5 | + * @package GamiPress\Community\Loader | |
| 6 | + * @since 1.0.0 | |
| 7 | + */ | |
| 8 | + | |
| 9 | +// Exit if accessed directly | |
| 10 | +if( !defined( 'ABSPATH' ) ) exit; | |
| 11 | + | |
| 12 | +// Plugin version | |
| 13 | +define( 'GAMIPRESS_BP_VER', '1.3.7' ); | |
| 14 | + | |
| 15 | +// Plugin file | |
| 16 | +define( 'GAMIPRESS_BP_FILE', __FILE__ ); | |
| 17 | + | |
| 18 | +// Plugin path | |
| 19 | +define( 'GAMIPRESS_BP_DIR', plugin_dir_path( __FILE__ ) ); | |
| 20 | + | |
| 21 | +// Plugin URL | |
| 22 | +define( 'GAMIPRESS_BP_URL', plugin_dir_url( __FILE__ ) ); | |
| 23 | + | |
| 24 | +require_once GAMIPRESS_BP_DIR . 'includes/admin.php'; | |
| 25 | +require_once GAMIPRESS_BP_DIR . 'includes/functions.php'; | |
| 26 | +require_once GAMIPRESS_BP_DIR . 'includes/listeners.php'; | |
| 27 | +require_once GAMIPRESS_BP_DIR . 'includes/requirements.php'; | |
| 28 | +require_once GAMIPRESS_BP_DIR . 'includes/rules-engine.php'; | |
| 29 | +require_once GAMIPRESS_BP_DIR . 'includes/scripts.php'; | |
| 30 | +require_once GAMIPRESS_BP_DIR . 'includes/triggers.php'; | |
| 31 | + | |
| 32 | +// Since the multisite feature we need an extra check here to meet if BuddyPress is active on current site | |
| 33 | +if ( class_exists( 'BuddyPress' ) ) { | |
| 34 | + | |
| 35 | + require_once GAMIPRESS_BP_DIR . 'includes/components/gamipress-achievements-bp-component.php'; | |
| 36 | + require_once GAMIPRESS_BP_DIR . 'includes/components/gamipress-points-bp-component.php'; | |
| 37 | + require_once GAMIPRESS_BP_DIR . 'includes/components/gamipress-ranks-bp-component.php'; | |
| 38 | + | |
| 39 | + // Profile | |
| 40 | + require_once GAMIPRESS_BP_DIR . 'includes/bp-members.php'; | |
| 41 | + | |
| 42 | + // Activity | |
| 43 | + require_once GAMIPRESS_BP_DIR . 'includes/bp-activity.php'; | |
| 44 | + | |
| 45 | +} | |