field['checked_by_default'] ) { $this->widget->add_render_attribute( 'field-' . $this->get_id(), 'checked' ); } } public function render_content() { ?>
widget->get_render_attribute_string( 'field-' . esc_attr( $this->get_id() ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Elementor-generated attributes. ?>>
$commons['label'], 'acceptance_text' => [ 'label' => esc_html__( 'Acceptance Text', 'sellkit' ), 'default' => esc_html__( 'I agree to terms.', 'sellkit' ), 'type' => 'textarea', 'conditions' => [ 'terms' => [ parent::get_type_condition() ] ], ], 'checked_by_default' => [ 'label' => esc_html__( 'Checked by Default', 'sellkit' ), 'type' => 'switcher', 'return_value' => 'true', 'conditions' => [ 'terms' => [ parent::get_type_condition() ] ], ], 'required' => $commons['required'], 'width_responsive' => $commons['width_responsive'], ]; } }