start_controls_section( 'hero_content', [ 'label' => __( 'Hero Content', 'ai-elementor' ), ] ); $this->add_control( 'title_hlt', [ 'label' => __( 'Highlight Text', 'ai-elementor' ), 'type' => Controls_Manager::TEXT, 'default' => 'Creative Artificial Intelligence Solutions', ] ); $this->add_control( 'title', [ 'label' => __( 'Title', 'ai-elementor' ), 'type' => Controls_Manager::TEXT, 'default' => 'AI Data Analysis helps grow faster & Manage like A Pro', ] ); $this->add_control( 'description', [ 'label' => __( 'Description', 'ai-elementor' ), 'type' => Controls_Manager::TEXTAREA, 'default' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Odit quaerat est, a labore excepturi rem sed eius facere error! Dolore in perspiciatis porro dolor debitis', ] ); $this->add_control( 'show_title', [ 'label' => __( 'Show Button', 'ai-elementor' ), 'type' => Controls_Manager::SWITCHER, 'default' => 'yes', ] ); $this->add_control( 'button_title', [ 'label' => __( 'Button Title', 'ai-elementor' ), 'type' => Controls_Manager::TEXT, 'default' => 'Learn More', 'condition' => [ 'show_title' => 'yes' ] ] ); $this->add_control( 'button_url', [ 'label' => __( 'Button Url', 'ai-elementor' ), 'type' => Controls_Manager::URL, 'show_external' => true, 'default' => [ 'url' => '', ], 'condition' => [ 'show_title' => 'yes' ] ] ); $this->add_control( 'show_video', [ 'label' => __( 'Show Video', 'ai-elementor' ), 'type' => Controls_Manager::SWITCHER, 'default' => 'yes', ] ); $this->add_control( 'video_title', [ 'label' => __( 'Video Title', 'ai-elementor' ), 'type' => Controls_Manager::TEXT, 'default' => 'Watch Demo', 'condition' => [ 'show_video' => 'yes' ] ] ); $this->add_control( 'video_url', [ 'label' => __( 'Button Url', 'ai-elementor' ), 'type' => Controls_Manager::URL, 'show_external' => true, 'default' => [ 'url' => '', ], 'condition' => [ 'show_video' => 'yes' ] ] ); $this->add_control( 'image', [ 'label' => __( 'Choose Right Side Image', 'plugin-domain' ), 'type' => Controls_Manager::MEDIA, 'default' => [ 'url' => \Elementor\Utils::get_placeholder_image_src(), ], ] ); $this->end_controls_section(); $this->start_controls_section( 'hero_style', [ 'label' => __( 'Style', 'ai-elementor' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_control( 'bg_color', [ 'label' => __( 'Section BG Color', 'ai-elementor' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .ico-bg2' => 'background: {{VALUE}}', ], ] ); $this->add_control( 'button_color', [ 'label' => __( 'Button Color', 'plugin-domain' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .more-btn.pink' => 'background: {{VALUE}}', ], ] ); $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(); ?>