Uname: Linux p3plzcpnl499967.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
Software: Apache
PHP version: 8.2.30 [ PHP INFO ] PHP os: Linux
Server Ip: 208.109.40.231
Your Ip: 216.73.216.26
User: nayff91c5tsx (10005085) | Group: nayff91c5tsx (10005085)
Safe Mode: OFF
Disable Function:
NONE

name : manager.php
<?php
/**
 * Compatibility manager class.
 */

// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
	die;
}

if ( ! class_exists( 'Jet_Woo_Builder_Compatibility' ) ) {

	class Jet_Woo_Builder_Compatibility {

		function __construct() {
			add_action( 'init', [ $this, 'load_plugin_compatibility_packages' ] );

			$this->load_theme_compatibility_packages();
		}

		/**
		 * Plugin compat packages.
		 *
		 * Load plugin compatibility packages.
		 *
		 * @since  1.13.0
		 * @access public
		 *
		 * @return void
		 */
		public function load_plugin_compatibility_packages() {

			$packages = [
				'jet-popup.php'         => [
					'cb'   => 'class_exists',
					'args' => 'Jet_Popup',
				],
				'jet-cw.php'            => [
					'cb'   => 'class_exists',
					'args' => 'Jet_CW',
				],
				'jet-engine.php'        => [
					'cb'   => 'class_exists',
					'args' => 'Jet_Engine',
				],
				'jet-gallery.php'       => [
					'cb'   => 'class_exists',
					'args' => 'Jet_Woo_Product_Gallery',
				],
				'jet-smart-filters.php' => [
					'cb'   => 'class_exists',
					'args' => 'Jet_Smart_Filters',
				],
				'polylang.php'          => [
					'cb'   => 'class_exists',
					'args' => 'Polylang',
				],
				'wpml.php'              => [
					'cb'   => 'defined',
					'args' => 'WPML_ST_VERSION',
				],
			];

			foreach ( $packages as $file => $condition ) {
				if ( true === call_user_func( $condition['cb'], $condition['args'] ) ) {
					require jet_woo_builder()->plugin_path( 'includes/compatibility/packages/plugins/' . $file );
				}
			}

		}

		/**
		 * Theme compat packages.
		 *
		 * Load theme compatibility packages.
		 *
		 * @since  1.13.0
		 * @access public
		 *
		 * @return void
		 */
		public function load_theme_compatibility_packages() {

			$template = get_template();
			$int_file = jet_woo_builder()->plugin_path( 'includes/compatibility/packages/themes/' . $template . '/functions.php' );

			if ( file_exists( $int_file ) ) {
				require $int_file;
			}

		}

	}

}
© 2026 GrazzMean