start_controls_section( 'content_section', [ 'label' => esc_html__( 'Content', 'businesswebx' ), 'tab' => \Elementor\Controls_Manager::TAB_CONTENT, ] ); $repeater = new \Elementor\Repeater(); $repeater->add_control( 'list_title', [ 'label' => esc_html__( 'Title', 'businesswebx' ), 'type' => \Elementor\Controls_Manager::TEXT, 'default' => esc_html__( 'List Title' , 'businesswebx' ), 'label_block' => true, ] ); $repeater->add_control( 'list_content', [ 'label' => esc_html__( 'Content', 'businesswebx' ), 'type' => \Elementor\Controls_Manager::WYSIWYG, 'default' => esc_html__( 'List Content' , 'businesswebx' ), 'show_label' => false, ] ); $repeater->add_control( 'list_color', [ 'label' => esc_html__( 'Color', 'businesswebx' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} {{CURRENT_ITEM}}' => 'color: {{VALUE}}' ], ] ); $this->add_control( 'testimonial_list', [ 'label' => esc_html__( 'Testimonial List', 'businesswebx' ), 'type' => \Elementor\Controls_Manager::REPEATER, 'fields' => $repeater->get_controls(), 'default' => [ [ 'list_title' => esc_html__( 'Title #1', 'businesswebx' ), 'list_content' => esc_html__( 'Item content. Click the edit button to change this text.', 'businesswebx' ), ], [ 'list_title' => esc_html__( 'Title #2', 'businesswebx' ), 'list_content' => esc_html__( 'Item content. Click the edit button to change this text.', 'businesswebx' ), ], ], 'title_field' => '{{{ list_title }}}', ] ); $this->end_controls_section(); } protected function render() { $settings = $this->get_settings_for_display(); ?>