Server IP : 209.38.156.173 / Your IP : 216.73.216.122 [ Web Server : Apache/2.4.52 (Ubuntu) System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.1.2-1ubuntu2.22 Disable Function : NONE Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /proc/1534260/cwd/plugins/jetpack/jetpack_vendor/automattic/jetpack-videopress/src/ |
Upload File : |
<?php /** * Divi integration for Videopress. * * @package automattic/jetpack-videopress **/ namespace Automattic\Jetpack\VideoPress; /** * Class Divi **/ class Divi { /** * The instance. * * @var Divi **/ private static $instance = null; /** * Running or not. * * @var bool **/ private $running = false; /** * Initializes VideoPress/Divi integration. * * Called only once by the Initializer class * * @return self */ public static function init() { return self::get_instance()->run(); } /** * Get the instance. * * @return self */ public static function get_instance() { if ( null === self::$instance ) { self::$instance = new self(); } return self::$instance; } /** * Run the extension. * * @return self */ public function run() { if ( $this->running ) { return $this; } $this->running = true; add_action( 'divi_extensions_init', array( $this, 'initialize_extension' ) ); add_action( 'et_fb_framework_loaded', array( $this, 'on_fb_framework_loaded' ) ); return $this; } /** * Fires when the Frontend Builder is loaded. */ public function on_fb_framework_loaded() { Jwt_Token_Bridge::enqueue_jwt_token_bridge(); } /** * Creates the extension's main class instance. */ public function initialize_extension() { require_once plugin_dir_path( __FILE__ ) . 'videopress-divi/class-videopress-divi-extension.php'; $this->vidi_extension = new \VideoPress_Divi_Extension(); } }