| 1 |
<?php |
| 2 |
namespace Elementor\Core\Editor\Loader; |
| 3 |
|
| 4 |
if ( ! defined( 'ABSPATH' ) ) { |
| 5 |
exit; // Exit if accessed directly. |
| 6 |
} |
| 7 |
|
| 8 |
interface Editor_Loader_Interface { |
| 9 |
/** |
| 10 |
* Init function purpose is to prepare some stuff that should be available for other methods |
| 11 |
* and register some hooks |
| 12 |
* |
| 13 |
* @return void |
| 14 |
*/ |
| 15 |
public function init(); |
| 16 |
|
| 17 |
/** |
| 18 |
* Register all the scripts for the editor. |
| 19 |
* |
| 20 |
* @return void |
| 21 |
*/ |
| 22 |
public function register_scripts(); |
| 23 |
|
| 24 |
/** |
| 25 |
* Enqueue all the scripts for the editor. |
| 26 |
* |
| 27 |
* @return void |
| 28 |
*/ |
| 29 |
public function enqueue_scripts(); |
| 30 |
|
| 31 |
/** |
| 32 |
* Register all the styles for the editor. |
| 33 |
* |
| 34 |
* @return void |
| 35 |
*/ |
| 36 |
public function register_styles(); |
| 37 |
|
| 38 |
/** |
| 39 |
* Enqueue all the styles for the editor. |
| 40 |
* |
| 41 |
* @return void |
| 42 |
*/ |
| 43 |
public function enqueue_styles(); |
| 44 |
|
| 45 |
/** |
| 46 |
* Print the actual initial html for the editor, later on, the scripts takeover and renders the JS apps. |
| 47 |
* |
| 48 |
* @return void |
| 49 |
*/ |
| 50 |
public function print_root_template(); |
| 51 |
|
| 52 |
/** |
| 53 |
* Register additional templates that are required for the marionette part of the application |
| 54 |
* |
| 55 |
* @return void |
| 56 |
*/ |
| 57 |
public function register_additional_templates(); |
| 58 |
} |
| 59 |
|