芝麻web文件管理V1.00
编辑当前文件:/var/www/cognitio.in/wp-content/plugins/the-events-calendar/src/Tribe/Integrations/Manager.php
load_freemius(); $this->load_acf_integration(); $this->load_twenty_seventeen_integration(); $this->load_wpml_integration(); $this->load_X_theme_integration(); $this->load_wp_rocket_integration(); $this->load_rcp_integration(); $this->load_beaver_builder_integration(); $this->load_fusion_integration(); $this->load_hello_elementor_integration(); $this->load_divi_integration(); } /** * Loads our Events Freemius integration * * @since 4.9 * * @return bool */ private function load_freemius() { /** * Allows third-party disabling of The Events Calendar integration * * @since 4.9 * * @param bool $should_load */ $should_load = apply_filters( 'tribe_events_integrations_should_load_freemius', true ); if ( ! $should_load ) { return false; } tribe_singleton( 'events.integrations.freemius', new Tribe__Events__Integrations__Freemius ); return true; } /** * Loads our ACF integrations if that theme is active. * * @return bool */ private function load_acf_integration() { if ( ! class_exists( 'acf' ) ) { return false; } Tribe__Events__Integrations__ACF__ACF::instance()->hook(); return true; } /** * Loads our Twenty Seventeen integrations if that theme is active. * * @since 4.5.10 * * @return bool */ protected function load_twenty_seventeen_integration() { $theme = get_stylesheet(); if ( 'twentyseventeen' === $theme ) { tribe( 'tec.integrations.twenty-seventeen' ); return true; } return false; } /** * Loads WPML integration classes and event listeners. * * @return bool */ private function load_wpml_integration() { if ( ! tribe_is_wpml_active() ) { return false; } Tribe__Events__Integrations__WPML__WPML::instance()->hook(); return true; } /** * Loads our X Theme integrations if that theme is active. * * @return bool */ private function load_X_theme_integration() { $theme = wp_get_theme(); if ( 'x' !== $theme->get_template() ) { return false; } Tribe__Events__Integrations__X_Theme__X_Theme::instance()->hook(); return true; } /** * Loads our WP Rocket plugin integration. * * @since 5.0.0.2 * * @return bool Whether we loaded WP Rocket compatibility or not. */ private function load_wp_rocket_integration() { if ( ! defined( 'WP_ROCKET_VERSION' ) ) { return false; } tribe_singleton( \Tribe\Events\Integrations\WP_Rocket::class, \Tribe\Events\Integrations\WP_Rocket::class ); tribe( WP_Rocket::class )->hook(); return true; } /** * Loads our Restrict Content Pro integration. * * @since 6.0.2 * * @return bool */ private function load_rcp_integration() { if ( ! function_exists( 'rcp_user_can_access' ) ) { return false; } tribe_singleton( \Tribe\Events\Integrations\RCP_Integration::class, \Tribe\Events\Integrations\RCP_Integration::class ); tribe( RCP_Integration::class )->hook(); return true; } /** * Loads our beaver builder plugin integration. * * @since 5.0.2 * * @return bool Whether we loaded Beaver Builder compatibility or not. */ private function load_beaver_builder_integration() { if ( ! class_exists( 'FLThemeBuilderLoader' ) || ! class_exists( 'FLBuilderLoader' ) ) { return false; } tribe_singleton( \Tribe\Events\Integrations\Beaver_Builder::class, \Tribe\Events\Integrations\Beaver_Builder::class ); tribe( Beaver_Builder::class )->hook(); return true; } /** * Loads the Fusion integration if Fusion Core is currently active. * * @since 5.5.0 */ public function load_fusion_integration() { tribe_register_provider( Fusion_Integration::class ); } /** * Loads the Hello Elementor theme integration. * * @since 5.7.0 */ private function load_hello_elementor_integration() { tribe_register_provider( Hello_Elementor_Integration::class ); } /** * Loads the Hello Elementor theme integration. * * @since 6.0.1 */ private function load_divi_integration() { tribe_register_provider( Tribe\Events\Integrations\Divi\Service_Provider::class ); } }