/** * Include component files. * * @since 1.5.0 * * @see BP_Component::includes() for a description of arguments. * * @param array $includes See BP_Component::includes() for a description. */ public function includes($includes = array()) { // Files to include. $includes = array('cssjs', 'actions', 'screens', 'filters', 'adminbar', 'template', 'functions', 'cache'); // Notifications support. if (bp_is_active('notifications')) { $includes[] = 'notifications'; } if (!buddypress()->do_autoload) { $includes[] = 'classes'; } // Load Akismet support if Akismet is configured. $akismet_key = bp_get_option('wordpress_api_key'); /** This filter is documented in bp-activity/bp-activity-akismet.php */ if (defined('AKISMET_VERSION') && class_exists('Akismet') && (!empty($akismet_key) || defined('WPCOM_API_KEY')) && apply_filters('bp_activity_use_akismet', bp_is_akismet_active())) { $includes[] = 'akismet'; } // Embeds - only applicable for WP 4.5+ if (version_compare($GLOBALS['wp_version'], '4.5', '>=') && bp_is_active($this->id, 'embeds')) { $includes[] = 'embeds'; } if (is_admin()) { $includes[] = 'admin'; } parent::includes($includes); }
/** * Include bp-members files. * * @see BP_Component::includes() for description of parameters. * * @param array $includes See {@link BP_Component::includes()}. */ public function includes( $includes = array() ) { // Always include these files $includes = array( 'actions', 'classes', 'filters', 'screens', 'template', 'adminbar', 'functions', 'widgets', 'cache', ); if ( bp_is_active( 'activity' ) ) { $includes[] = 'activity'; } // Include these only if in admin if ( is_admin() ) { $includes[] = 'admin'; } parent::includes( $includes ); }
/** * Include bp-friends files. * * @since 1.5.0 * * @see BP_Component::includes() for description of parameters. * * @param array $includes See {@link BP_Component::includes()}. */ public function includes($includes = array()) { $includes = array('cache', 'actions', 'screens', 'filters', 'activity', 'template', 'functions', 'notifications', 'widgets'); if (!buddypress()->do_autoload) { $includes[] = 'classes'; } parent::includes($includes); }
/** * Include files */ public function includes($includes = array()) { $includes = array('cssjs', 'cache', 'actions', 'activity', 'screens', 'caps', 'classes', 'filters', 'settings', 'template', 'functions'); if (is_admin()) { $includes[] = 'admin'; } parent::includes($includes); }
/** * Include notifications component files. * * @since 1.9.0 * * @see BP_Component::includes() for a description of arguments. * * @param array $includes See BP_Component::includes() for a description. */ public function includes($includes = array()) { $includes = array('actions', 'screens', 'adminbar', 'template', 'functions', 'cache'); if (!buddypress()->do_autoload) { $includes[] = 'classes'; } parent::includes($includes); }
/** * Include files */ public function includes($includes = array()) { $includes = array('cache', 'forums', 'actions', 'filters', 'screens', 'classes', 'widgets', 'activity', 'template', 'buddybar', 'adminbar', 'functions', 'notifications'); if (is_admin()) { $includes[] = 'admin'; } parent::includes($includes); }
/** * BuddyDrive needed files * * @package BuddyDrive * @since 1.0 * * @uses bp_is_active() to check if group component is active */ public function includes($includes = array()) { // Files to include $includes = array('buddydrive-item-filters.php', 'buddydrive-item-actions.php', 'buddydrive-item-screens.php', 'buddydrive-item-classes.php', 'buddydrive-item-functions.php', 'buddydrive-item-template.php', 'buddydrive-item-ajax.php'); if (bp_is_active('groups')) { $includes[] = 'buddydrive-group-class.php'; } parent::includes($includes); }
/** * Include component's files */ public function includes() { $includes = array('includes/bp-portfolio-actions.php', 'includes/bp-portfolio-screens.php', 'includes/bp-portfolio-filters.php', 'includes/bp-portfolio-classes.php', 'includes/bp-portfolio-activity.php', 'includes/bp-portfolio-functions.php', 'includes/bp-portfolio-cssjs.php', 'includes/bp-portfolio-ajax.php', 'includes/bp-portfolio-template.php', 'includes/widgets/bp-portfolio-last-projects-widget.php', 'includes/widgets/bp-portfolio-last-user-projects-widget.php'); parent::includes($includes); // Load the admin required file if (is_admin() || is_network_admin()) { include BP_PORTFOLIO_PLUGIN_DIR . '/includes/bp-portfolio-admin.php'; } }
/** * Include files */ function includes() { // Files to include $includes = array('cache', 'actions', 'screens', 'classes', 'template', 'activity', 'functions', 'buddybar'); if (is_multisite()) { $includes[] = 'widgets'; } // Include the files parent::includes($includes); }
/** * Include files. * * @since 1.5.0 * * @param array $includes See {BP_Component::includes()} for details. */ public function includes($includes = array()) { // Files to include $includes = array('cssjs', 'cache', 'actions', 'screens', 'classes', 'filters', 'template', 'functions', 'notifications', 'widgets'); // Conditional includes if (bp_is_active($this->id, 'star')) { $includes[] = 'star'; } parent::includes($includes); }
/** * Include bp-members files. * * @see BP_Component::includes() for description of parameters. * * @param array $includes See {@link BP_Component::includes()}. */ public function includes($includes = array()) { // Always include these files $includes = array('actions', 'classes', 'filters', 'screens', 'template', 'adminbar', 'functions'); // Include these only if in admin if (is_admin()) { $includes[] = 'admin'; } parent::includes($includes); }
/** * Include files. * * @param array $includes Array of files to include. */ public function includes($includes = array()) { $includes = array('cssjs', 'cache', 'actions', 'activity', 'screens', 'caps', 'filters', 'settings', 'template', 'functions', 'notifications'); if (!buddypress()->do_autoload) { $includes[] = 'classes'; } if (is_admin()) { $includes[] = 'admin'; } parent::includes($includes); }
function includes() { // Files to include $includes = array('/bp-user-type-screens.php', '/bp-user-type-template.php', '/bp-user-type-functions.php', '/bp-user-type-hooks.php', '/bp-user-type-ajax.php'); parent::includes($includes); if (is_admin() || is_network_admin()) { include BUATP_INC . '/admin/buatp-options.class.php'; include BUATP_INC . '/admin/buatp-admin-page-functions.php'; include BUATP_INC . '/admin/buatp-admin-pages.php'; } }
function includes() { // Files to include $includes = array('buddypress/bp-em-activity.php', 'buddypress/bp-em-templatetags.php', 'buddypress/bp-em-notifications.php', 'buddypress/screens/profile.php', 'buddypress/screens/my-events.php', 'buddypress/screens/my-locations.php', 'buddypress/screens/attending.php', 'buddypress/screens/my-bookings.php', 'buddypress/screens/my-group-events.php'); if (bp_is_active('groups')) { $includes[] = 'buddypress/screens/group-events.php'; $includes[] = 'buddypress/bp-em-groups.php'; } parent::includes($includes); //TODO add admin pages for extra BP specific settings }
/** * BP Checkins needed files * * @package BP Checkins * @since 1.0 */ function includes() { // Files to include $includes = array('includes/bp-checkins-actions.php', 'includes/bp-checkins-screens.php', 'includes/bp-checkins-functions.php', 'includes/bp-checkins-filters.php', 'includes/bp-checkins-places-class.php', 'includes/bp-checkins-template.php', 'includes/bp-checkins-ajax.php', 'includes/bp-checkins-places-widget.php'); if (bp_is_active('groups')) { $includes[] = 'includes/bp-checkins-group-class.php'; } if (bp_checkins_is_foursquare_ready() && bp_is_active('settings')) { $includes[] = 'includes/bp-checkins-foursquare-api.php'; } parent::includes($includes); }
/** * Include files. * * @since 1.5.0 * * @param array $includes See {BP_Component::includes()} for details. */ public function includes($includes = array()) { // Files to include. $includes = array('cssjs', 'cache', 'actions', 'screens', 'filters', 'template', 'functions', 'notifications', 'widgets'); if (!buddypress()->do_autoload) { $includes[] = 'classes'; } // Conditional includes. if (bp_is_active($this->id, 'star')) { $includes[] = 'star'; } parent::includes($includes); }
/** * Include files */ function includes() { // Files to include $includes = array('actions', 'screens', 'classes', 'filters', 'template', 'functions'); // Admin area if (is_admin()) { $includes[] = 'admin'; } // bbPress stand-alone if (!defined('BB_PATH')) { $includes[] = 'bbpress-sa'; } parent::includes($includes); }
/** * Include component files. * * @since BuddyPress (1.5) * * @see BP_Component::includes() for a description of arguments. * * @param array $includes See BP_Component::includes() for a description. */ public function includes($includes = array()) { // Files to include $includes = array('actions', 'screens', 'filters', 'classes', 'template', 'functions', 'notifications', 'cache'); // Load Akismet support if Akismet is configured $akismet_key = bp_get_option('wordpress_api_key'); if (defined('AKISMET_VERSION') && (!empty($akismet_key) || defined('WPCOM_API_KEY')) && apply_filters('bp_activity_use_akismet', bp_is_akismet_active())) { $includes[] = 'akismet'; } if (is_admin()) { $includes[] = 'admin'; } parent::includes($includes); }
/** * Include bp-forums files. * * @see BP_Component::includes() for description of parameters. * * @param array $includes See {@link BP_Component::includes()}. */ public function includes($includes = array()) { // Files to include $includes = array('actions', 'screens', 'classes', 'filters', 'template', 'functions'); // bbPress stand-alone if (!defined('BB_PATH')) { $includes[] = 'bbpress-sa'; } // Admin-specific code if (is_admin()) { $includes[] = 'deprecated/1.6'; $includes[] = 'deprecated/1.7'; } parent::includes($includes); }
/** * GMW location files * * @package GMW Location * @since 1.0 */ function includes($includes = array()) { // Files to include $includes = array('includes/gmw-fl-shortcodes.php', 'includes/gmw-fl-actions.php', 'includes/gmw-fl-functions.php', 'includes/gmw-fl-activity.php', 'includes/gmw-fl-update-location.php', 'includes/gmw-fl-template-functions.php', 'includes/gmw-fl-search-query-class.php'); if (class_exists('GMW_Single_Location')) { $includes[] = 'includes/gmw-fl-single-member-location-class.php'; } else { $includes[] = 'includes/gmw-fl-member-location-shortcode.php'; } if (is_admin() && !defined('DOING_AJAX')) { $includes[] = 'includes/admin/gmw-fl-admin.php'; $includes[] = 'includes/admin/gmw-fl-db.php'; } parent::includes($includes); }
/** * Include bp-members files. * * @since 1.5.0 * * @see BP_Component::includes() for description of parameters. * * @param array $includes See {@link BP_Component::includes()}. */ public function includes($includes = array()) { // Always include these files. $includes = array('actions', 'filters', 'screens', 'template', 'adminbar', 'functions', 'widgets', 'cache'); if (!buddypress()->do_autoload) { $includes[] = 'classes'; } if (bp_is_active('activity')) { $includes[] = 'activity'; } // Include these only if in admin. if (is_admin()) { $includes[] = 'admin'; } parent::includes($includes); }
/** * Include bp-friends files. * * @see BP_Component::includes() for description of parameters. * * @param array $includes See {@link BP_Component::includes()}. */ public function includes( $includes = array() ) { $includes = array( 'cache', 'actions', 'screens', 'filters', 'classes', 'activity', 'template', 'functions', 'notifications', 'widgets', ); parent::includes( $includes ); }
/** * Include component files. * * @since 1.5.0 * * @see BP_Component::includes() for a description of arguments. * * @param array $includes See BP_Component::includes() for a description. */ public function includes($includes = array()) { // Files to include. $includes = array('cssjs', 'actions', 'screens', 'filters', 'template', 'functions', 'notifications', 'cache'); if (!buddypress()->do_autoload) { $includes[] = 'classes'; } // Load Akismet support if Akismet is configured. $akismet_key = bp_get_option('wordpress_api_key'); /** This filter is documented in bp-activity/bp-activity-actions.php */ if (defined('AKISMET_VERSION') && class_exists('Akismet') && (!empty($akismet_key) || defined('WPCOM_API_KEY')) && apply_filters('bp_activity_use_akismet', bp_is_akismet_active())) { $includes[] = 'akismet'; } if (is_admin()) { $includes[] = 'admin'; } parent::includes($includes); }
/** * Include files * * @package Rendez_Vous * @subpackage Component * * @since Rendez Vous (1.0.0) */ function includes($includes = array()) { // Files to include $includes = array('rendez-vous-filters.php', 'rendez-vous-screens.php', 'rendez-vous-editor.php', 'rendez-vous-classes.php', 'rendez-vous-ajax.php', 'rendez-vous-parts.php', 'rendez-vous-template.php', 'rendez-vous-functions.php'); if (bp_is_active('notifications')) { $includes[] = 'rendez-vous-notifications.php'; } if (bp_is_active('activity')) { $includes[] = 'rendez-vous-activity.php'; } if (bp_is_active('groups')) { $includes[] = 'rendez-vous-groups.php'; } if (is_admin()) { $includes[] = 'rendez-vous-admin.php'; } parent::includes($includes); }
/** * Include BuddyPress classes and functions */ public function includes($includes = array()) { // Helper BuddyPress functions $includes[] = 'functions.php'; // Members modifications $includes[] = 'members.php'; // BuddyPress Notfications Extension functions if (bp_is_active('notifications')) { $includes[] = 'notifications.php'; } // BuddyPress Activity Extension class if (bp_is_active('activity')) { $includes[] = 'activity.php'; } // BuddyPress Group Extension class if (bbp_is_group_forums_active() && bp_is_active('groups')) { $includes[] = 'groups.php'; } parent::includes($includes); }
/** * Include files. * * @param array $includes Array of values to include. Not used. */ public function includes($includes = array()) { parent::includes(array('actions', 'screens', 'template', 'functions')); }
/** * Include files */ function includes() { // Files to include $includes = array('cssjs', 'cache', 'actions', 'screens', 'classes', 'filters', 'template', 'functions', 'notifications'); parent::includes($includes); }
/** * Include files * * @global BuddyPress $bp The one true BuddyPress instance */ function includes() { // Files to include $includes = array('actions', 'screens', 'template', 'functions'); parent::includes($includes); }
/** * Include notifications component files. * * @since 1.9.0 * * @see BP_Component::includes() for a description of arguments. * * @param array $includes See BP_Component::includes() for a description. */ public function includes($includes = array()) { $includes = array('actions', 'classes', 'screens', 'adminbar', 'template', 'functions', 'cache'); parent::includes($includes); }
/** * Include bp-core files. * * @see BP_Component::includes() for description of parameters. * * @param array $includes See {@link BP_Component::includes()}. */ public function includes($includes = array()) { if (!is_admin()) { return; } $includes = array('admin'); parent::includes($includes); }