start_controls_section( 'team-section', [ 'label' => __( 'Team Member', 'ai-elementor' ), ] ); $this->add_control( 'image', [ 'label' => __( 'Image', 'plugin-domain' ), 'type' => Controls_Manager::MEDIA, 'default' => [ 'url' => \Elementor\Utils::get_placeholder_image_src(), ], ] ); $this->add_control( 'name', [ 'label' => __( 'Name', 'ai-elementor' ), 'type' => Controls_Manager::TEXT, 'default' => __( 'Andy Crishen' , 'ai-elementor' ), ] ); $this->add_control( 'designation', [ 'label' => __( 'Designation', 'ai-elementor' ), 'type' => Controls_Manager::TEXT, 'default' => __( 'Company CEO' , 'ai-elementor' ), ] ); $this->add_control( 'fb_url', [ 'label' => __( 'Facebook Url', 'ai-elementor' ), 'type' => Controls_Manager::TEXT, ] ); $this->add_control( 'twitter_url', [ 'label' => __( 'Twitter Url', 'ai-elementor' ), 'type' => Controls_Manager::TEXT, ] ); $this->add_control( 'linkedin_url', [ 'label' => __( 'Linkedin Url', 'ai-elementor' ), 'type' => Controls_Manager::TEXT, ] ); $this->end_controls_section(); $this->start_controls_section( 'about_us_style', [ 'label' => __( 'Style', 'ai-elementor' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_control( 'bg_color', [ 'label' => __( 'Section Color', 'ai-elementor' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .check-mark-icon-font' => 'color: {{VALUE}}', '{{WRAPPER}} .icon-font-box i' => 'color: {{VALUE}}', '{{WRAPPER}} .icon-font-box' => 'border: 2px solid {{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(); ?>
chef-1