| 1 |
<?php |
| 2 |
|
| 3 |
namespace Elementor\Modules\GlobalClasses; |
| 4 |
|
| 5 |
class Global_Classes_CSS_Preview extends Global_Classes_CSS_File { |
| 6 |
|
| 7 |
const FILE_PREFIX = 'global-classes-preview-'; |
| 8 |
|
| 9 |
private $meta_cache = []; |
| 10 |
|
| 11 |
public function is_update_required() { |
| 12 |
return true; |
| 13 |
} |
| 14 |
|
| 15 |
protected function load_meta() { |
| 16 |
return $this->meta_cache; |
| 17 |
} |
| 18 |
|
| 19 |
protected function delete_meta() { |
| 20 |
$this->meta_cache = []; |
| 21 |
} |
| 22 |
|
| 23 |
protected function update_meta( $meta ) { |
| 24 |
$this->meta_cache = $meta; |
| 25 |
} |
| 26 |
|
| 27 |
protected function get_file_handle_id() { |
| 28 |
return 'elementor-global-classes-preview-' . $this->get_post_id(); |
| 29 |
} |
| 30 |
|
| 31 |
protected function render_css() { |
| 32 |
$this->render( Global_Classes_Repository::CONTEXT_PREVIEW ); |
| 33 |
} |
| 34 |
} |
| 35 |
|