| 1 |
<?php |
| 2 |
namespace Elementor\Core\Editor\Config_Providers; |
| 3 |
|
| 4 |
if ( ! defined( 'ABSPATH' ) ) { |
| 5 |
exit; // Exit if accessed directly. |
| 6 |
} |
| 7 |
|
| 8 |
class Editor_V1_Config_Provider implements Config_Provider_Interface { |
| 9 |
public function get_script_configs() { |
| 10 |
return array_merge( |
| 11 |
Editor_Common_Assets::get_script_configs(), |
| 12 |
[ |
| 13 |
// Loader script |
| 14 |
[ |
| 15 |
'handle' => 'elementor-editor-loader-v1', |
| 16 |
'src' => '{{ELEMENTOR_ASSETS_URL}}js/editor-loader-v1{{MIN_SUFFIX}}.js', |
| 17 |
'deps' => [ 'elementor-editor' ], |
| 18 |
], |
| 19 |
] |
| 20 |
); |
| 21 |
} |
| 22 |
|
| 23 |
public function get_script_handles_to_enqueue() { |
| 24 |
return [ 'elementor-editor-loader-v1' ]; |
| 25 |
} |
| 26 |
|
| 27 |
public function get_style_configs() { |
| 28 |
return Editor_Common_Assets::get_style_configs(); |
| 29 |
} |
| 30 |
|
| 31 |
public function get_style_handles_to_enqueue() { |
| 32 |
return [ 'elementor-editor' ]; |
| 33 |
} |
| 34 |
|
| 35 |
public function get_template_body_file_path() { |
| 36 |
return __DIR__ . '/../templates/editor-body-v1.view.php'; |
| 37 |
} |
| 38 |
} |
| 39 |
|