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'), // 'tab' => \Elementor\Controls_Manager::TAB_CONTENT, ] ); $this->add_control( 'be_section_title', [ 'label' => esc_html__('Title', 'being'), 'type' => \Elementor\Controls_Manager::TEXT, 'default' => esc_html__('Portfolio', 'being'), 'placeholder' => esc_html__('Title', 'being'), ] ); $this->end_controls_section(); $this->start_controls_section( 'be_card_section', [ 'label' => __('Portfolio Item', 'being'), 'tab' => Controls_Manager::TAB_CONTENT, ] ); $repeater = new Repeater(); $repeater->add_control( 'be_portfolio_title', [ 'label' => esc_html__('Title', 'being'), 'description' => be_get_allowed_html_desc('intermediate'), 'type' => Controls_Manager::TEXT, 'default' => be_kses('Urban Oasis', 'being'), 'label_block' => true, ] ); $repeater->add_control( 'be_portfolio_description', [ 'label' => esc_html__('Description', 'being'), 'type' => \Elementor\Controls_Manager::WYSIWYG, 'default' => be_kses('
Description
', 'being'), ] ); $repeater->add_control( 'be_portfolio_image', [ 'label' => esc_html__('Choose Image', 'being'), 'type' => \Elementor\Controls_Manager::MEDIA, 'default' => [ 'url' => \Elementor\Utils::get_placeholder_image_src(), ], ] ); $this->add_control( 'be_portfolio_row', [ 'show_label' => false, 'type' => Controls_Manager::REPEATER, 'fields' => $repeater->get_controls(), 'title_field' => esc_html__('Item Slider', 'being'), "default" => [[]], ] ); $this->end_controls_section(); } // style_tab_content protected function style_tab_content() { $this->section_style_controls( $this->style_control_id, "Section - Style", ".being-section", "yes", "yes" ); } /** * 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(); ?>