register_controls_section(); $this->style_tab_content(); } protected function register_controls_section() { $this->start_controls_section( 'be_section_text', [ 'label' => esc_html__('Section Text', 'being'), 'description' => esc_html__('Add text', 'being'), // 'tab' => \Elementor\Controls_Manager::TAB_CONTENT, ] ); $this->add_control( 'be_services_title', [ 'label' => esc_html__('Title', 'being'), 'type' => \Elementor\Controls_Manager::TEXT, 'default' => esc_html__('Title', 'being'), 'placeholder' => esc_html__('Title', 'being'), ] ); $this->end_controls_section(); $this->start_controls_section("be_service_section", [ "label" => __("Services Item", "being"), "tab" => Controls_Manager::TAB_CONTENT, ]); $repeater = new Repeater(); $repeater->add_control("be_service_name_title", [ "label" => esc_html__("Title", "being"), "type" => Controls_Manager::TEXT, "default" => be_kses("Web Design", "being"), "label_block" => true, ]); $repeater->add_control("be_service_desc", [ "label" => esc_html__("Description", "being"), "type" => \Elementor\Controls_Manager::WYSIWYG, "default" => '
' . esc_html__('Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut.', 'being') . '
', "placeholder" => esc_html__( "Type your description here", "being" ), ]); $this->add_control("be_service_row", [ "show_label" => false, "type" => Controls_Manager::REPEATER, "fields" => $repeater->get_controls(), "title_field" => esc_html__("Services Item", "being"), "default" => [[]], ]); $this->end_controls_section(); } // style_tab_content protected function style_tab_content() { $this->section_title_style_controls( $this->style_control_id, "Title Color" ); $this->section_style_controls( $this->style_control_id, "Section - Style", ".be-section", "", "", "", false ); } /** * Render the widget output on the frontend. * * Written in PHP and used to generate the final HTML. * * @since 1.0.0 * * @access protected */ protected function render() { $settings = $this->get_settings_for_display(); ?>