get_settings_for_display( 'sms' );
if ( empty($sms) ) {
return;
}
$sms = wpautop( $sms );
?>
$default,
] );
/**
* Group: SMS Section
*/
$this->start_controls_section( 'sms_section', [
'label' => esc_html__( 'SMS', 'copy-the-code' ),
] );
// Two paragraph gap in pixcel.
$this->add_responsive_control( 'line_gap', [
'label' => esc_html__( 'Line Gap', 'copy-the-code' ),
'type' => Controls_Manager::SLIDER,
'size_units' => [ 'px', 'em' ],
'range' => [
'px' => [
'min' => 0,
'max' => 100,
],
],
'selectors' => [
'{{WRAPPER}} .ctc-sms-text p' => 'margin-bottom: {{SIZE}}{{UNIT}};',
],
] );
$this->add_control( 'sms', [
'label' => esc_html__( 'SMS', 'copy-the-code' ),
'type' => Controls_Manager::WYSIWYG,
'default' => $default,
] );
$this->end_controls_section();
Helpers::register_copy_button_section( $this, [
'button_text' => esc_html__( 'Copy SMS', 'copy-the-code' ),
] );
Helpers::register_pro_sections( $this, [ 'SMS Box', 'SMS' ] );
Helpers::register_copy_button_style_section( $this );
}
}