start_controls_section( 'section_content0', [ 'label' => esc_html__( 'Color', 'amedea' ), 'tab' => \Elementor\Controls_Manager::TAB_CONTENT, ] ); $this->add_control( 'style', array( 'label' => esc_html__('Text Color', 'amedea'), 'type' => \Elementor\Controls_Manager::SELECT, 'default' => 'dark', 'label_block' => true, 'options' => array( 'light' => esc_html__('Light', 'amedea'), 'dark' => esc_html__('Dark', 'amedea'), ) ) ); $this->end_controls_section(); $this->start_controls_section( 'section_content', [ 'label' => esc_html__( 'Content', 'amedea' ), 'tab' => \Elementor\Controls_Manager::TAB_CONTENT, ] ); $this->add_control( 'image', [ 'label' => __( 'Image', 'amedea' ), 'type' => \Elementor\Controls_Manager::MEDIA, 'default' => [ 'url' => \Elementor\Utils::get_placeholder_image_src() ], ] ); $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(); ?>
Please, update the version from this link. This version requires GSAP which is not included to WordPress.Org Version.