| 1 |
<?php |
| 2 |
|
| 3 |
defined( 'ABSPATH' ) || die(); |
| 4 |
|
| 5 |
class Sellkit_Elementor_Optin_Field_Text extends Sellkit_Elementor_Optin_Field_Base { |
| 6 |
|
| 7 |
public static function get_field_type() { |
| 8 |
return 'text'; |
| 9 |
} |
| 10 |
|
| 11 |
public function get_input_type() { |
| 12 |
return 'text'; |
| 13 |
} |
| 14 |
|
| 15 |
public function render_content() { |
| 16 |
?> |
| 17 |
<input <?php echo $this->widget->get_render_attribute_string( 'field-' . esc_attr( $this->get_id() ) ); ?>> |
| 18 |
<?php |
| 19 |
} |
| 20 |
|
| 21 |
public static function get_additional_controls() { |
| 22 |
$commons = parent::get_common_controls(); |
| 23 |
|
| 24 |
return [ |
| 25 |
'label' => $commons['label'], |
| 26 |
'field_value' => $commons['field_value'], |
| 27 |
'placeholder' => $commons['placeholder'], |
| 28 |
'required' => $commons['required'], |
| 29 |
'width_responsive' => $commons['width_responsive'], |
| 30 |
]; |
| 31 |
} |
| 32 |
} |
| 33 |
|