$65 GRAYBYTE WORDPRESS FILE MANAGER $97

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.217.254 | ADMIN IP 216.73.216.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/home/bravrvjk/dantho.rw/wp-content/plugins/elementor/core/editor/loader/

HOME
Current File : /home/bravrvjk/dantho.rw/wp-content/plugins/elementor/core/editor/loader//editor-loader-factory.php
<?php
namespace Elementor\Core\Editor\Loader;

use Elementor\Core\Editor\Editor;
use Elementor\Core\Editor\Loader\V1\Editor_V1_Loader;
use Elementor\Core\Editor\Loader\V2\Editor_V2_Loader;
use Elementor\Core\Utils\Assets_Config_Provider;
use Elementor\Core\Utils\Collection;
use Elementor\Plugin;
use Elementor\Utils;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

class Editor_Loader_Factory {
	/**
	 * @return Editor_Loader_Interface
	 */
	public static function create() {
		$config = new Collection( [
			'assets_url' => ELEMENTOR_ASSETS_URL,
			'min_suffix' => ( Utils::is_script_debug() || Utils::is_elementor_tests() ) ? '' : '.min',
			'direction_suffix' => is_rtl() ? '-rtl' : '',
		] );

		$assets_config_provider = ( new Assets_Config_Provider() )
			->set_path_resolver( function ( $name ) {
				return ELEMENTOR_ASSETS_PATH . "js/packages/{$name}/{$name}.asset.php";
			} );

		if ( static::should_use_v2_loader() ) {
			return new Editor_V2_Loader( $config, $assets_config_provider );
		}

		return new Editor_V1_Loader( $config, $assets_config_provider );
	}

	/**
	 * If there are v2 packages enqueued, we should use the V2 loader.
	 *
	 * @return bool
	 */
	private static function should_use_v2_loader() {
		return ! empty( Editor_V2_Loader::get_packages_to_enqueue() );
	}
}


Current_dir [ WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
6 Nov 2025 10.43 AM
bravrvjk / bravrvjk
0755
common
--
6 Nov 2025 10.43 AM
bravrvjk / bravrvjk
0755
v1
--
6 Nov 2025 10.43 AM
bravrvjk / bravrvjk
0755
v2
--
6 Nov 2025 10.43 AM
bravrvjk / bravrvjk
0755
editor-base-loader.php
5.636 KB
21 Oct 2025 3.45 PM
bravrvjk / bravrvjk
0644
editor-loader-factory.php
1.289 KB
25 Aug 2024 5.59 PM
bravrvjk / bravrvjk
0644
editor-loader-interface.php
1.111 KB
23 Aug 2023 5.47 PM
bravrvjk / bravrvjk
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF