当前位置: 首页>>代码示例>>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;未经允许,请勿转载。