| 1 |
<?php |
| 2 |
namespace Leadin\admin\widgets; |
| 3 |
|
| 4 |
use Leadin\AssetsManager; |
| 5 |
|
| 6 |
/** |
| 7 |
* Class for Elementor form selector control |
| 8 |
*/ |
| 9 |
class ElementorFormSelect extends \Elementor\Base_Data_Control { |
| 10 |
|
| 11 |
/** |
| 12 |
* Returns control internal name |
| 13 |
*/ |
| 14 |
public function get_type() { |
| 15 |
return 'leadinformselect'; |
| 16 |
} |
| 17 |
|
| 18 |
/** |
| 19 |
* Load assets needed for control |
| 20 |
*/ |
| 21 |
public function enqueue() { |
| 22 |
AssetsManager::enqueue_elementor_script(); |
| 23 |
} |
| 24 |
|
| 25 |
/** |
| 26 |
* Default settings for control |
| 27 |
*/ |
| 28 |
protected function get_default_settings() { |
| 29 |
return array( |
| 30 |
'label_block' => true, |
| 31 |
'rows' => 3, |
| 32 |
'hsptform_options' => array(), |
| 33 |
); |
| 34 |
} |
| 35 |
|
| 36 |
/** |
| 37 |
* Render Function |
| 38 |
*/ |
| 39 |
public function content_template() { |
| 40 |
$control_uid = $this->get_control_uid(); |
| 41 |
?> |
| 42 |
<div class="elementor-hbspt-form-selector" data-id="<?php echo esc_html( $control_uid ); ?>"></div> |
| 43 |
<?php |
| 44 |
} |
| 45 |
|
| 46 |
} |
| 47 |
|
| 48 |
|