start_controls_section( 'partners-section', [ 'label' => __( 'Partners', 'ai-elementor' ), ] ); $repeater = new \Elementor\Repeater(); $repeater->add_control( 'image', [ 'label' => __( 'Image', 'plugin-domain' ), 'type' => Controls_Manager::MEDIA, 'default' => [ 'url' => AIDA_ASSETS_URL . 'images/default/1.png', ], ] ); $this->add_control( 'image_items', [ 'label' => __( 'Partner Items', 'ai-elementor' ), 'type' => Controls_Manager::REPEATER, 'fields' => $repeater->get_controls(), ] ); $this->end_controls_section(); } /** * 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(); ?>