PluginProbe
HubSpot All-In-One Marketing – Forms, Popups, Live Chat / 11.0.54
HubSpot All-In-One Marketing – Forms, Popups, Live Chat v11.0.54
11.3.75 11.3.73 11.3.71 11.3.70 11.3.69 11.3.64 11.3.65 11.3.62 11.3.61 11.3.56 11.3.58 11.0.31 11.0.52 11.0.54 11.0.56 11.0.58 11.0.7 11.1.10 11.1.11 11.1.13 11.1.14 11.1.15 11.1.2 11.1.20 11.1.21 All 73 releases
leadin / public / admin / widgets / class-elementorformselect.php

class-elementorformselect.php in HubSpot All-In-One Marketing – Forms, Popups, Live Chat 11.0.54, at public/admin/widgets/class-elementorformselect.php

48 lines 854 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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