get_template() ) { return true; } if ( class_exists( 'ET_Builder_Plugin' ) ) { return true; } return in_array( 'divi-builder/divi-builder.php', self::$active_plugins, true ) || array_key_exists( 'divi-builder/divi-builder.php', self::$active_plugins ); } /** * Checking if Funnel Builder - Optin form plugin active * @return bool */ public static function optin_forms_active_check() { if ( ! self::$active_plugins ) { self::init(); } if ( class_exists( 'WFFN_Core' ) ) { return true; } return in_array( 'funnel-builder/funnel-builder.php', self::$active_plugins, true ) || array_key_exists( 'woofunnels-flex-funnels/woofunnels-flex-funnels.php', self::$active_plugins ); } /** * Checking if utm grabber plugin active * @return bool */ public static function handle_utm_grabber_active_check() { if ( ! self::$active_plugins ) { self::init(); } if ( defined( 'HANDL_UTM_V3_LINK' ) ) { return true; } return in_array( 'handl-utm-grabber/handl-utm-grabber.php', self::$active_plugins, true ) || array_key_exists( 'handl-utm-grabber/handl-utm-grabber.php', self::$active_plugins ) || in_array( 'handl-utm-grabber-v3/handl-utm-grabber-v3.php', self::$active_plugins, true ) || array_key_exists( 'handl-utm-grabber-v3/handl-utm-grabber-v3.php', self::$active_plugins ); } /** * Checking if weglot lanuage plugin active * @return bool */ public static function weglot_active_check() { if ( ! self::$active_plugins ) { self::init(); } if ( defined( 'WEGLOT_NAME' ) ) { return true; } return in_array( 'weglot/weglot.php', self::$active_plugins, true ) || array_key_exists( 'weglot/weglot.php', self::$active_plugins ); } /** * Checking if GTranslate language plugin is active * @return bool */ public static function gtranslate_active_check() { if ( ! self::$active_plugins ) { self::init(); } if ( class_exists( 'GTranslate' ) ) { return true; } return in_array( 'gtranslate/gtranslate.php', self::$active_plugins, true ) || array_key_exists( 'gtranslate/gtranslate.php', self::$active_plugins ); } /** * Xl next move plugin checking * @return bool */ public static function xl_nextmove_thankyou_active_check() { if ( ! self::$active_plugins ) { self::init(); } return in_array( 'thank-you-page-for-woocommerce-nextmove/woocommerce-thankyou-pages.php', self::$active_plugins, true ) || array_key_exists( 'thank-you-page-for-woocommerce-nextmove/woocommerce-thankyou-pages.php', self::$active_plugins ); } public static function bwfan_breakdance_check() { if ( ! self::$active_plugins ) { self::init(); } return in_array( 'breakdance/plugin.php', self::$active_plugins, true ) || array_key_exists( 'breakdance/plugin.php', self::$active_plugins ); } }