| 1 |
<?php |
| 2 |
|
| 3 |
namespace Elementor\Modules\AtomicWidgets\Elements\Promotions; |
| 4 |
|
| 5 |
use Elementor\Element_Base; |
| 6 |
|
| 7 |
if ( ! defined( 'ABSPATH' ) ) { |
| 8 |
exit; |
| 9 |
} |
| 10 |
|
| 11 |
class Preserved_Element extends Element_Base { |
| 12 |
|
| 13 |
public function get_name() { |
| 14 |
$widget_type = $this->get_data( 'widgetType' ); |
| 15 |
|
| 16 |
if ( ! empty( $widget_type ) ) { |
| 17 |
return $widget_type; |
| 18 |
} |
| 19 |
|
| 20 |
$el_type = $this->get_data( 'elType' ); |
| 21 |
|
| 22 |
return empty( $el_type ) ? 'e-preserved-element' : $el_type; |
| 23 |
} |
| 24 |
|
| 25 |
protected function _get_default_child_type( array $element_data ) { |
| 26 |
return new self(); |
| 27 |
} |
| 28 |
|
| 29 |
public function get_controls( $control_id = null ) { |
| 30 |
return []; |
| 31 |
} |
| 32 |
|
| 33 |
public function get_data_for_save() { |
| 34 |
return $this->get_data(); |
| 35 |
} |
| 36 |
|
| 37 |
public function get_raw_data( $with_html_content = false ) { |
| 38 |
return $this->get_data(); |
| 39 |
} |
| 40 |
} |
| 41 |
|