Server : Apache System : Linux server.lienzindia.com 4.18.0-348.7.1.el8_5.x86_64 #1 SMP Wed Dec 22 13:25:12 UTC 2021 x86_64 User : plutus ( 1007) PHP Version : 7.4.33 Disable Function : NONE Directory : /home/plutus/public_html/wp-content/themes/vrm/inc/ |
Upload File : |
<?php declare(strict_types=1); namespace TotalTheme; \defined( 'ABSPATH' ) || exit; /** * 3rd Party Integrations. */ class Integrations { /** * Init. */ public static function init(): void { Integration\Gutenberg::init(); if ( \WPEX_VC_ACTIVE && self::is_integration_enabled( 'wpbakery' ) ) { Integration\WPBakery::init(); } if ( \WPEX_TEMPLATERA_ACTIVE && self::is_integration_enabled( 'templatera' ) ) { Integration\Templatera::init(); } if ( \WPEX_WOOCOMMERCE_ACTIVE ) { Integration\WooCommerce::init(); } if ( \WPEX_ELEMENTOR_ACTIVE && self::is_integration_enabled( 'elementor' ) ) { Integration\Elementor::init(); } if ( \WPEX_PTU_ACTIVE ) { Integration\Post_Types_Unlimited::init(); } if ( \defined( 'WPSEO_VERSION' ) && self::is_integration_enabled( 'yoastseo' ) ) { Integration\Yoast_SEO::init(); } if ( \class_exists( 'Tribe__Events__Main' ) && self::is_integration_enabled( 'tribe_events' ) ) { Integration\Tribe_Events::instance(); } if ( \class_exists( 'OCDI\OneClickDemoImport' ) && self::is_integration_enabled( 'ocdi' ) ) { Integration\One_Click_Demo_Import::instance(); } if ( \defined( 'W3TC' ) && self::is_integration_enabled( 'w3_total_cache' ) ) { Integration\W3_Total_cache::instance(); } if ( \defined( 'RML_VERSION' ) && self::is_integration_enabled( 'realmedialibrary' ) ) { new Integration\Real_Media_Library(); } if ( \WPEX_WPML_ACTIVE && self::is_integration_enabled( 'wpml' ) ) { Integration\WPML::instance(); } if ( \WPEX_POLYLANG_ACTIVE && self::is_integration_enabled( 'polylang' ) ) { Integration\Polylang::instance(); } if ( \WPEX_BBPRESS_ACTIVE && self::is_integration_enabled( 'bbpress' ) ) { Integration\bbPress::instance(); } if ( \function_exists( 'buddypress' ) && self::is_integration_enabled( 'buddypress' ) ) { Integration\BuddyPress::instance(); } if ( \defined( 'WPCF7_VERSION' ) && self::is_integration_enabled( 'contactform7' ) ) { Integration\Contact_Form_7::instance(); } if ( \class_exists( 'RGForms' ) && self::is_integration_enabled( 'gravityforms' ) ) { Integration\Gravity_Forms::instance(); } if ( \class_exists( 'Jetpack' ) && self::is_integration_enabled( 'jetpack' ) ) { Integration\Jetpack::instance(); } if ( \defined( 'LEARNDASH_VERSION' ) && self::is_integration_enabled( 'learndash' ) ) { Integration\Learn_Dash::instance(); } if ( \function_exists( 'Sensei' ) && self::is_integration_enabled( 'sensei' ) ) { Integration\Sensei::instance(); } if ( \function_exists( 'cptui_init' ) && self::is_integration_enabled( 'cptui' ) ) { Integration\Custom_Post_Type_UI::instance(); } if ( \defined( 'MPC_MASSIVE_VERSION' ) && self::is_integration_enabled( 'massive_addons' ) ) { Integration\Massive_Addons_For_WPBakery::init(); } if ( \class_exists( 'TablePress' ) && self::is_integration_enabled( 'tablepress' ) ) { Integration\TablePress::instance(); } if ( \class_exists( 'RevSlider' ) && self::is_integration_enabled( 'revslider' ) ) { Integration\Revslider::instance(); } if ( \function_exists( 'relevanssi_init' ) && self::is_integration_enabled( 'relevanssi' ) ) { Integration\Relevanssi::instance(); } if ( \class_exists( 'Easy_Notification_Bar', false ) && self::is_integration_enabled( 'easy_notification_bar' ) ) { Integration\Easy_Notification_Bar::instance(); } } /** * Check if a current integration is enabled. */ public static function is_integration_enabled( string $integration ): bool { $check = true; /** * Filters whether a specific integration is enabled. * * @param string $integration Integration name such as "wpbakery" */ $check = (bool) \apply_filters( "totaltheme/integrations/{$integration}/is_enabled", $check ); /*** deprecated ***/ $check = (bool) \apply_filters( "wpex_{$integration}_support", $check ); if ( 'wpbakery' === $integration ) { $check = (bool) \apply_filters( 'wpex_has_vc_mods', $check ); } return $check; } }