PluginProbe
SellKit – Funnel builder and checkout optimizer for WooCommerce to sell more, faster / 1.6.2
SellKit – Funnel builder and checkout optimizer for WooCommerce to sell more, faster v1.6.2
2.6.0 trunk 1.1.0 1.1.4 1.2.1 1.2.2 1.2.3 1.2.5 1.2.9 1.3.1 1.3.2 1.5.0 1.5.1 1.5.4 1.5.7 1.5.8 1.5.9 1.6.2 1.6.5 1.6.8 1.7.2 1.7.4 1.7.5 1.7.9 1.8.1 All 42 releases
sellkit / includes / elementor / modules / optin / fields / textarea.php

textarea.php in SellKit – Funnel builder and checkout optimizer for WooCommerce to sell more, faster 1.6.2, at includes/elementor/modules/optin/fields/textarea.php

46 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 defined( 'ABSPATH' ) || die();
4
5 class Sellkit_Elementor_Optin_Field_Textarea extends Sellkit_Elementor_Optin_Field_Base {
6
7 public static function get_field_type() {
8 return 'textarea';
9 }
10
11 public function get_input_type() {
12 return 'textarea';
13 }
14
15 public function add_field_render_attribute() {
16 parent::add_field_render_attribute();
17
18 $this->widget->add_render_attribute( 'field-' . $this->get_id(), 'rows', $this->field['rows'] );
19 }
20
21 public function render_content() {
22 $attrs = $this->widget->get_render_attribute_string( 'field-' . $this->get_id() );
23
24 ?>
25 <textarea <?php echo $attrs; ?>><?php echo $this->field['field_value']; ?></textarea>
26 <?php
27 }
28
29 public static function get_additional_controls() {
30 $commons = parent::get_common_controls();
31
32 return [
33 'label' => $commons['label'],
34 'field_value' => $commons['field_value'],
35 'rows' => [
36 'label' => esc_html__( 'Rows', 'sellkit' ),
37 'type' => 'number',
38 'default' => 5,
39 'conditions' => [ 'terms' => [ parent::get_type_condition() ] ],
40 ],
41 'required' => $commons['required'],
42 'width_responsive' => $commons['width_responsive'],
43 ];
44 }
45 }
46