register_controls_section(); $this->style_tab_content(); } protected function register_controls_section() { $this->start_controls_section( 'be_section_text', [ 'label' => esc_html__('Section Title', 'being'), 'description' => esc_html__('Add text', 'being'), ] ); $this->add_control( 'be_skill_title', [ 'label' => esc_html__('Title', 'being'), 'type' => \Elementor\Controls_Manager::TEXT, 'default' => esc_html__('Skills', 'being'), 'placeholder' => esc_html__('Title', 'being'), ] ); $this->end_controls_section(); $this->start_controls_section("be_skill_section", [ "label" => __("Skill Item", 'being'), "tab" => Controls_Manager::TAB_CONTENT, ]); $repeater = new Repeater(); $repeater->add_control("be_skill_name_title", [ "label" => esc_html__("Title", 'being'), "type" => Controls_Manager::TEXT, "default" => be_kses("CSS3", 'being'), "label_block" => true, ]); $repeater->add_control("be_skill_percentage", [ "label" => esc_html__("Percentage", 'being'), "type" => Controls_Manager::TEXT, "default" => be_kses("90%", 'being'), "label_block" => true, ]); $this->add_control("be_skills_row", [ "show_label" => false, "type" => Controls_Manager::REPEATER, "fields" => $repeater->get_controls(), "title_field" => esc_html__("Skill 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", ".being-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(); ?>

    $item) : ?>
register(new BE_Skills());