| Server IP : 13.126.101.145 / Your IP : 216.73.217.37 Web Server : Apache/2.4.52 (Ubuntu) System : Linux ip-11-115-0-196 6.8.0-1039-aws #41~22.04.1-Ubuntu SMP Thu Sep 11 10:54:48 UTC 2025 x86_64 User : www-data ( 33) PHP Version : 8.3.17 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/html/rentals_updated/wp-content/plugins/elementor-pro/modules/assets-manager/ |
Upload File : |
<?php
namespace ElementorPro\Modules\AssetsManager;
use ElementorPro\Base\Module_Base;
use ElementorPro\Modules\AssetsManager\AssetTypes;
use ElementorPro\Plugin;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
class Module extends Module_Base {
private $asset_managers = [];
public function get_name() {
return 'assets-manager';
}
public function add_asset_manager( $name, $instance ) {
$this->asset_managers[ $name ] = $instance;
}
public function get_assets_manager( $id = null ) {
if ( $id ) {
if ( ! isset( $this->asset_managers[ $id ] ) ) {
return null;
}
return $this->asset_managers[ $id ];
}
return $this->asset_managers;
}
public function __construct() {
parent::__construct();
$this->add_asset_manager( 'font', new AssetTypes\Fonts_Manager() );
$this->add_asset_manager( 'icon', new AssetTypes\Icons_Manager() );
}
}