start_controls_section( 'heading_content', [ 'label' => __( 'Heading', 'ai-elementor' ), ] ); $this->add_control( 'title_hlt', [ 'label' => __( 'Highlight Text', 'ai-elementor' ), 'type' => Controls_Manager::TEXT, 'default' => 'Why Choose US', ] ); $this->add_control( 'title', [ 'label' => __( 'Title', 'ai-elementor' ), 'type' => Controls_Manager::TEXT, 'default' => 'Problems We Defeated', ] ); $this->add_control( 'description', [ 'label' => __( 'Description', 'ai-elementor' ), 'type' => Controls_Manager::TEXTAREA, 'default' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed quis accumsan nisi Ut ut felis congue nisl hendrerit commodo.', ] ); $this->end_controls_section(); $this->start_controls_section( 'heading_style', [ 'label' => __( 'Style', 'ai-elementor' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_control( 'hlt_color', [ 'label' => __( 'Highlight Text Color', 'ai-elementor' ), 'type' => Controls_Manager::SELECT, 'default' => 'blue', 'options' => [ 'blue' => __( 'Blue', 'plugin-domain' ), 'cyan' => __( 'Cyan', 'plugin-domain' ), ], ] ); $this->add_control( 'title_color', [ 'label' => __( 'Title Color', 'ai-elementor' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .w-text' => 'color: {{VALUE}}', ], ] ); $this->add_control( 'desc_color', [ 'label' => __( 'Description Color', 'ai-elementor' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .g-text' => 'color: {{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(); ?>