當前位置: 首頁>>代碼示例>>PHP>>正文


PHP BP_Component::includes方法代碼示例

本文整理匯總了PHP中BP_Component::includes方法的典型用法代碼示例。如果您正苦於以下問題:PHP BP_Component::includes方法的具體用法?PHP BP_Component::includes怎麽用?PHP BP_Component::includes使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在BP_Component的用法示例。


在下文中一共展示了BP_Component::includes方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: 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', '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);
 }
開發者ID:CompositeUK,項目名稱:clone.BuddyPress,代碼行數:35,代碼來源:class-bp-activity-component.php

示例2: 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 );
	}
開發者ID:pombredanne,項目名稱:ArcherSys,代碼行數:33,代碼來源:bp-members-loader.php

示例3: 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);
 }
開發者ID:dcavins,項目名稱:buddypress-svn,代碼行數:17,代碼來源:class-bp-friends-component.php

示例4: 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);
 }
開發者ID:AceMedia,項目名稱:BuddyPress,代碼行數:11,代碼來源:bp-xprofile-loader.php

示例5: 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);
 }
開發者ID:dcavins,項目名稱:buddypress-svn,代碼行數:17,代碼來源:class-bp-notifications-component.php

示例6: 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);
 }
開發者ID:pyropictures,項目名稱:wordpress-plugins,代碼行數:11,代碼來源:bp-groups-loader.php

示例7: 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);
 }
開發者ID:MrVibe,項目名稱:buddydrive,代碼行數:17,代碼來源:buddydrive-component.php

示例8: 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';
     }
 }
開發者ID:ncrocfer,項目名稱:BP-Portfolio,代碼行數:12,代碼來源:bp-portfolio-loader.php

示例9: includes

 /**
  * 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);
 }
開發者ID:hornetalcala,項目名稱:trunk,代碼行數:13,代碼來源:bp-blogs-loader.php

示例10: 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);
 }
開發者ID:jasonmcalpin,項目名稱:BuddyPress,代碼行數:17,代碼來源:bp-messages-loader.php

示例11: 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);
 }
開發者ID:eresyyl,項目名稱:mk,代碼行數:17,代碼來源:bp-members-loader.php

示例12: 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);
 }
開發者ID:dcavins,項目名稱:buddypress-svn,代碼行數:16,代碼來源:class-bp-xprofile-component.php

示例13: 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';
     }
 }
開發者ID:jfeliweb,項目名稱:BuddyPress-User-Account-Type,代碼行數:11,代碼來源:buatp-core-loader.php

示例14: includes

 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
 }
開發者ID:batruji,項目名稱:metareading,代碼行數:11,代碼來源:bp-em-core.php

示例15: includes

 /**
  * 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);
 }
開發者ID:socialray,項目名稱:surfied-2-0,代碼行數:18,代碼來源:bp-checkins-component.php


注:本文中的BP_Component::includes方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。