start_controls_section( 'service_content', [ 'label' => __( 'Service', 'ai-elementor' ), ] ); $this->add_control( 'image', [ 'label' => __( 'Image Icon', 'ai-elementor' ), 'type' => Controls_Manager::MEDIA, 'default' => [ 'url' => AIDA_ASSETS_URL . 'images/default/w2.png', ], ] ); $this->add_control( 'title', [ 'label' => __( 'Title', 'ai-elementor' ), 'type' => Controls_Manager::TEXT, 'default' => 'Go Live in Minutes', ] ); $this->add_control( 'description', [ 'label' => __( 'Description', 'ai-elementor' ), 'type' => Controls_Manager::TEXTAREA, 'default' => 'Lorem ipsum dolor sit amet, adipiscing elit. Nulla neque quam, maxi ut ac cu msan ut, posuere sit Lorem ipsum qu.', ] ); $this->end_controls_section(); $this->start_controls_section( 'service_style', [ 'label' => __( 'Style', 'ai-elementor' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_control( 'text_align', [ 'label' => __( 'Text Align', 'plugin-domain' ), 'type' => \Elementor\Controls_Manager::SELECT, 'default' => 'left', 'options' => [ 'left' => __( 'Left', 'plugin-domain' ), 'center' => __( 'Center', 'plugin-domain' ), ], ] ); $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(); ?>