get_settings_for_display( 'message' ); if ( empty($message) ) { return; } $message = wpautop( $message ); ?>
$default, ] ); /** * Group: message Section */ $this->start_controls_section( 'message_section', [ 'label' => esc_html__( 'Message', '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-message-text p' => 'margin-bottom: {{SIZE}}{{UNIT}};', ], ] ); $this->add_control( 'message', [ 'label' => esc_html__( 'Message', 'copy-the-code' ), 'type' => Controls_Manager::WYSIWYG, 'default' => $default, ] ); $this->end_controls_section(); Helpers::register_copy_button_section( $this, [ 'button_text' => esc_html__( 'Copy Message', 'copy-the-code' ), ] ); Helpers::register_pro_sections( $this, [ 'Message Box', 'Message' ] ); Helpers::register_copy_button_style_section( $this ); } }