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