start_controls_section( 'banner', [ 'label' => esc_html__( 'Thinkai Banner', 'thinkai' ), ] ); $this->add_control( 'layout_control', [ 'label' => esc_html__( 'Layout Style', 'thinkai' ), 'label_block' => true, 'type' => Controls_Manager::SELECT, 'default' => '1', 'options' => array( '1' => esc_html__( 'Style One ', 'thinkai'), '2' => esc_html__( 'Style Two ', 'thinkai'), '3' => esc_html__( 'Style Three ', 'thinkai'), '4' => esc_html__( 'Style Four ', 'thinkai'), ), ] ); //Shape img $this->add_control( 'shape_img', [ 'label' => __( 'Shape Image', 'thinkai' ), 'type' => Controls_Manager::MEDIA, 'default' => ['url' => Utils::get_placeholder_image_src(),], 'condition' => [ 'layout_control' => ['3','4'] ], ] ); //Shape img $this->add_control( 'shape_img_v2', [ 'label' => __( 'Shape Image V2', 'thinkai' ), 'type' => Controls_Manager::MEDIA, 'default' => ['url' => Utils::get_placeholder_image_src(),], 'condition' => [ 'layout_control' => '4' ], ] ); //Switcher $this->add_control( 'show_vector_img', [ 'label' => esc_html__( 'Enable Vector Image', 'thinkai' ), 'type' => Controls_Manager::SWITCHER, 'label_on' => esc_html__( 'On', 'thinkai' ), 'label_off' => esc_html__( 'Off', 'thinkai' ), 'return_value' => 'yes', 'default' => 'no', 'condition' => [ 'layout_control' => '3' ], ] ); //Pattern img $this->add_control( 'Pattern_img', [ 'label' => __( 'Pattern Image', 'thinkai' ), 'type' => Controls_Manager::MEDIA, 'default' => ['url' => Utils::get_placeholder_image_src(),], 'condition' => [ 'layout_control' => '2' ], ] ); //Rating $this->add_control( 'rating', [ 'label' => esc_html__( 'Total Rating', 'thinkai' ), 'label_block' => true, 'type' => Controls_Manager::SELECT, 'default' => '1', 'options' => array( '1' => esc_html__( 'One Star ', 'thinkai'), '2' => esc_html__( 'Two Star ', 'thinkai'), '3' => esc_html__( 'Three Star ', 'thinkai'), '4' => esc_html__( 'Four Star ', 'thinkai'), '5' => esc_html__( 'Five Star ', 'thinkai'), ), 'condition' => [ 'layout_control' => ['2','3'] ], ] ); //Total Rating $this->add_control( 'total_rating', [ 'label' => __( 'Total Rating', 'thinkai' ), 'label_block' => true, 'type' => Controls_Manager::TEXT, 'dynamic' => [ 'active' => true, ], 'default' => esc_html__( '4.9/5.0', 'thinkai' ), 'condition' => [ 'layout_control' => ['2','3'] ], ] ); //Rating Description $this->add_control( 'rating_description', [ 'label' => __( 'Rating Description', 'thinkai' ), 'label_block' => true, 'type' => Controls_Manager::TEXT, 'dynamic' => [ 'active' => true, ], 'default' => esc_html__( '(from 20k reviews)', 'thinkai' ), 'condition' => [ 'layout_control' => ['2','3'] ], ] ); //Switcher $this->add_control( 'show_particles', [ 'label' => esc_html__( 'Enable Particles', 'thinkai' ), 'type' => Controls_Manager::SWITCHER, 'label_on' => esc_html__( 'On', 'thinkai' ), 'label_off' => esc_html__( 'Off', 'thinkai' ), 'return_value' => 'yes', 'default' => 'no', 'condition' => [ 'layout_control' => '1' ], ] ); //Title V1 $this->add_control( 'title_v1', [ 'label' => __( 'Title V1', 'thinkai' ), 'label_block' => true, 'type' => Controls_Manager::TEXT, 'dynamic' => [ 'active' => true, ], 'default' => esc_html__( 'Futuristic Services,', 'thinkai' ), 'condition' => [ 'layout_control' => '1' ], ] ); //Video BTN BG Image $this->add_control( 'video_bg_img', [ 'label' => __( 'Button BG Image', 'thinkai' ), 'type' => Controls_Manager::MEDIA, 'default' => ['url' => Utils::get_placeholder_image_src(),], 'condition' => [ 'layout_control' => '1' ], ] ); //Video Title $this->add_control( 'video_title', [ 'label' => __( 'Video Title', 'thinkai' ), 'label_block' => true, 'type' => Controls_Manager::TEXT, 'dynamic' => [ 'active' => true, ], 'default' => esc_html__( 'Watch Demo Video,', 'thinkai' ), 'condition' => [ 'layout_control' => ['1','2'] ], ] ); //Video Link Option $this->add_control( 'video_option', [ 'label' => __( 'Select Video Type', 'thinkai' ), 'label_block' => true, 'type' => Controls_Manager::SELECT, 'default' => 'src_url', 'options' => array( 'src_url' => esc_html__( 'Source URL', 'thinkai' ), 'src_media' => esc_html__( 'Source Media', 'thinkai' ), ), 'condition' => [ 'layout_control' => ['1','2'] ], ] ); $this->add_control( 'video_link', [ 'label' => __( 'Video Source Url', 'thinkai' ), 'type' => Controls_Manager::URL, 'label_block' => true, 'placeholder' => __( 'https://your-link.com', 'thinkai' ), 'show_external' => true, 'default' => [ 'url' => '', ], 'condition' => [ 'layout_control' => ['1','2'], 'video_option' => 'src_url' ], ] ); $this->add_control( 'video_source_image', [ 'label' => __( 'Video Source Media', 'thinkai' ), 'type' => Controls_Manager::MEDIA, 'media_types' => ['video'], 'condition' => [ 'layout_control' => ['1','2'], 'video_option' => 'src_media' ], ] ); //Title V2 $this->add_control( 'title_v2', [ 'label' => __( 'Title V2', 'thinkai' ), 'label_block' => true, 'type' => Controls_Manager::TEXT, 'dynamic' => [ 'active' => true, ], 'default' => esc_html__( 'Transforming Ideas', 'thinkai' ), 'condition' => [ 'layout_control' => '1' ], ] ); //Title V3 $this->add_control( 'title_v3', [ 'label' => __( 'Title V3', 'thinkai' ), 'label_block' => true, 'type' => Controls_Manager::TEXT, 'dynamic' => [ 'active' => true, ], 'default' => esc_html__( 'into Images', 'thinkai' ), 'condition' => [ 'layout_control' => '1' ], ] ); //subTitle $this->add_control( 'sub_title', [ 'label' => __( 'Sub Title', 'thinkai' ), 'label_block' => true, 'type' => Controls_Manager::TEXT, 'dynamic' => [ 'active' => true, ], 'default' => esc_html__( '[ AI VOICE GENERATOR & TEXT TO SPEECH ]', 'thinkai' ), 'condition' => [ 'layout_control' => '3', ], ] ); //Title $this->add_control( 'title', [ 'label' => __( 'Title', 'thinkai' ), 'label_block' => true, 'type' => Controls_Manager::TEXTAREA, 'dynamic' => [ 'active' => true, ], 'placeholder' => __( 'Enter your Title', 'thinkai' ), 'condition' => [ 'layout_control' => ['2','3','4'] ], ] ); //Text $this->add_control( 'text', [ 'label' => __( 'Description', 'thinkai' ), 'label_block' => true, 'type' => Controls_Manager::TEXTAREA, 'dynamic' => [ 'active' => true, ], 'placeholder' => __( 'Enter your Description', 'thinkai' ), 'condition' => [ 'layout_control' => ['1','2','4'] ], ] ); //Icon $this->add_control( 'icon', [ 'label' => esc_html__('Enter The icons', 'thinkai'), 'type' => \Elementor\Controls_Manager::ICONS, 'default' => [ 'value' => 'icon-performance', 'library' => 'solid', ], 'condition' => [ 'layout_control' => '4' ] ] ); //project Value $this->add_control( 'total_project_value', [ 'label' => __( 'Total Project Value', 'thinkai' ), 'label_block' => true, 'type' => Controls_Manager::TEXT, 'dynamic' => [ 'active' => true, ], 'default' => esc_html__( '2.4', 'thinkai' ), 'condition' => [ 'layout_control' => '4', ], ] ); //Value in Million $this->add_control( 'value_in_million', [ 'label' => __( 'Value In Million', 'thinkai' ), 'label_block' => true, 'type' => Controls_Manager::TEXT, 'dynamic' => [ 'active' => true, ], 'default' => esc_html__( 'Million', 'thinkai' ), 'condition' => [ 'layout_control' => '4', ], ] ); //Project Description $this->add_control( 'project_description', [ 'label' => __( 'Project Description', 'thinkai' ), 'label_block' => true, 'type' => Controls_Manager::TEXT, 'dynamic' => [ 'active' => true, ], 'default' => esc_html__( 'Projects Completed Successfully', 'thinkai' ), 'condition' => [ 'layout_control' => '4', ], ] ); //Curved Switcher $this->add_control( 'show_curved_circle_area', [ 'label' => esc_html__( 'Enable Curved Circle Area', 'thinkai' ), 'type' => Controls_Manager::SWITCHER, 'label_on' => esc_html__( 'On', 'thinkai' ), 'label_off' => esc_html__( 'Off', 'thinkai' ), 'return_value' => 'yes', 'default' => 'no', 'condition' => [ 'layout_control' => '1' ], ] ); //Carved Text V1 $this->add_control( 'curved_text_v1', [ 'label' => __( 'Curved Title V1', 'thinkai' ), 'label_block' => true, 'type' => Controls_Manager::TEXT, 'dynamic' => [ 'active' => true, ], 'default' => esc_html__( 'Generate Your Image', 'thinkai' ), 'condition' => [ 'layout_control' => '1', 'show_curved_circle_area' => 'yes' ] ] ); //Carved Text V2 $this->add_control( 'curved_text_v2', [ 'label' => __( 'Curved Title V2', 'thinkai' ), 'label_block' => true, 'type' => Controls_Manager::TEXT, 'dynamic' => [ 'active' => true, ], 'default' => esc_html__( 'Generate Your Image', 'thinkai' ), 'condition' => [ 'layout_control' => '1', 'show_curved_circle_area' => 'yes' ] ] ); $this->add_control( 'curved_link', [ 'label' => __('External Url', 'thinkai'), 'type' => Controls_Manager::URL, 'placeholder' => __('https://your-link.com', 'plugin-domain'), 'show_external' => true, 'default' => [ 'url' => '', 'is_external' => true, 'nofollow' => true, ], 'condition' => [ 'layout_control' => '1', 'show_curved_circle_area' => 'yes' ] ] ); //List Title $this->add_control( 'transparent_title', [ 'label' => __( 'Transparent Title', 'thinkai' ), 'label_block' => true, 'type' => Controls_Manager::TEXT, 'dynamic' => [ 'active' => true, ], 'default' => esc_html__( 'to Brands', 'thinkai' ), 'condition' => [ 'layout_control' => '4', ], ] ); //Feature List Repeater $repeater = new Repeater(); $repeater->add_control( 'list_title', [ 'label' => __( 'List Title', 'thinkai' ), 'label_block' => true, 'type' => Controls_Manager::TEXT, 'dynamic' => [ 'active' => true, ], 'placeholder' => __( 'Enter your List Title', 'thinkai' ), ] ); $repeater->add_control( 'list_link', [ 'label' => __( 'External Link', 'thinkai' ), 'type' => Controls_Manager::URL, 'label_block' => true, 'placeholder' => __( 'https://your-link.com', 'thinkai' ), 'show_external' => true, 'default' => [ 'url' => '', 'is_external' => true, 'nofollow' => true, ], ] ); $this->add_control( 'list', [ 'label' => __('Add List Item', 'thinkai'), 'type' => Controls_Manager::REPEATER, 'fields' => $repeater->get_controls(), 'title_field' => '{{{ list_title }}}', 'condition' => [ 'layout_control' => ['3','4'] ], 'default' => [ [ 'list_title' => esc_html__( 'Support 100+ Languages', 'thinkai' ), 'list_link' => esc_html__( '#', 'thinkai' ), ], [ 'list_title' => esc_html__( 'Largest library of voices', 'thinkai' ), 'list_link' => esc_html__( '#', 'thinkai' ), ], [ 'list_title' => esc_html__( 'Multi-Voice Feature', 'thinkai' ), 'list_link' => esc_html__( '#', 'thinkai' ), ], ], ] ); //Client Title $this->add_control( 'client_title', [ 'label' => __( 'Client Title', 'thinkai' ), 'label_block' => true, 'type' => Controls_Manager::TEXT, 'dynamic' => [ 'active' => true, ], 'placeholder' => esc_html__( 'Try More Sample', 'thinkai' ), 'condition' => [ 'layout_control' => '3' ] ] ); //Feature Carousel Repeater $repeater = new Repeater(); $repeater->add_control( 'client_img', [ 'label' => __( 'Choose clients Image', 'thinkai' ), 'type' => Controls_Manager::MEDIA, 'default' => ['url' => Utils::get_placeholder_image_src(),], ] ); $this->add_control( 'author_img', [ 'label' => __('Add Clients Item', 'thinkai'), 'type' => Controls_Manager::REPEATER, 'fields' => $repeater->get_controls(), 'condition' => [ 'layout_control' => '3' ] ] ); $this->add_control( 'total_value', [ 'label' => __( 'Total Clients', 'thinkai' ), 'label_block' => true, 'type' => Controls_Manager::TEXT, 'dynamic' => [ 'active' => true, ], 'placeholder' => esc_html__( '+ 100', 'thinkai' ), 'condition' => [ 'layout_control' => '3' ] ] ); //Button Title $this->add_control( 'button_title', [ 'label' => __( 'Button Title', 'thinkai' ), 'label_block' => true, 'type' => Controls_Manager::TEXT, 'dynamic' => [ 'active' => true, ], 'default' => esc_html__( 'Get Started Now', 'thinkai' ), 'condition' => [ 'layout_control' => ['2','3','4'] ] ] ); //Link Option $this->add_control( 'link_option', [ 'label' => esc_html__( 'Select link Option', 'thinkai' ), 'label_block' => true, 'type' => Controls_Manager::SELECT, 'default' => 'extranal', 'options' => array( 'extranal' => esc_html__( 'Extranal ', 'thinkai'), 'page' => esc_html__( 'Page ', 'thinkai'), ), 'condition' => [ 'layout_control' => ['2','3','4'], ] ] ); $this->add_control( 'link', [ 'label' => __( 'External Link', 'thinkai' ), 'type' => Controls_Manager::URL, 'label_block' => true, 'placeholder' => __( 'https://your-link.com', 'thinkai' ), 'show_external' => true, 'default' => [ 'url' => '', 'is_external' => true, 'nofollow' => true, ], 'condition' => [ 'layout_control' => ['2','3','4'], 'link_option' => 'extranal' ] ] ); $this->add_control( 'page_select', [ 'label' => esc_html__( 'Select Page', 'thinkai' ), 'label_block' => true, 'type' => Controls_Manager::SELECT2, 'default' => 'extranal', 'options' => thinkai_page_list(), 'condition' => [ 'layout_control' => ['2','3','4'], 'link_option' => 'page' ] ] ); //Button Title V2 $this->add_control( 'button_title_v2', [ 'label' => __( 'Button Title V2', 'thinkai' ), 'label_block' => true, 'type' => Controls_Manager::TEXT, 'dynamic' => [ 'active' => true, ], 'default' => esc_html__( 'How It’s Work', 'thinkai' ), 'condition' => [ 'layout_control' => '4' ] ] ); $this->add_control( 'btn_link_v2', [ 'label' => __( 'External Link', 'thinkai' ), 'type' => Controls_Manager::URL, 'label_block' => true, 'placeholder' => __( 'https://your-link.com', 'thinkai' ), 'show_external' => true, 'default' => [ 'url' => '', 'is_external' => true, 'nofollow' => true, ], 'condition' => [ 'layout_control' => '4' ] ] ); //Robot Image $this->add_control( 'robot_img', [ 'label' => __( 'Robot Image Url', 'thinkai' ), 'type' => Controls_Manager::MEDIA, 'default' => ['url' => Utils::get_placeholder_image_src(),], 'condition' => [ 'layout_control' => '2', ] ] ); //Robot Title $this->add_control( 'robot_title', [ 'label' => __( 'Robot Title', 'thinkai' ), 'label_block' => true, 'type' => Controls_Manager::TEXT, 'dynamic' => [ 'active' => true, ], 'default' => esc_html__( 'Can i help you?', 'thinkai' ), 'condition' => [ 'layout_control' => '2', ], ] ); //Robot Text $this->add_control( 'robot_text', [ 'label' => __( 'Robot Text', 'thinkai' ), 'label_block' => true, 'type' => Controls_Manager::TEXTAREA, 'dynamic' => [ 'active' => true, ], 'default' => esc_html__( 'I,m an AI-powered chatbot designed to assist and provide information to users.', 'thinkai' ), 'condition' => [ 'layout_control' => '2', ], ] ); //Feature Image $this->add_control( 'feature_img', [ 'label' => __( 'Feature Image Url', 'thinkai' ), 'type' => Controls_Manager::MEDIA, 'default' => ['url' => Utils::get_placeholder_image_src(),], 'condition' => [ 'layout_control' => '2', ] ] ); //Feature Text $this->add_control( 'feature_text', [ 'label' => __( 'Description', 'thinkai' ), 'label_block' => true, 'type' => Controls_Manager::TEXTAREA, 'dynamic' => [ 'active' => true, ], 'default' => esc_html__( 'Could you tell me more about the ThinkAi?', 'thinkai' ), 'condition' => [ 'layout_control' => '2', ], ] ); //Carousel Images $this->add_control( 'gallery_img_v1', [ 'label' => __( 'Gallery Carousel Image V1', 'thinkai' ), 'type' => Controls_Manager::MEDIA, 'default' => ['url' => Utils::get_placeholder_image_src(),], 'condition' => [ 'layout_control' => ['4'] ], ] ); $this->add_control( 'gallery_img_v2', [ 'label' => __( 'Gallery Carousel Image V2', 'thinkai' ), 'type' => Controls_Manager::MEDIA, 'default' => ['url' => Utils::get_placeholder_image_src(),], 'condition' => [ 'layout_control' => ['4'] ], ] ); $this->add_control( 'gallery_img_v3', [ 'label' => __( 'Gallery Carousel Image V3', 'thinkai' ), 'type' => Controls_Manager::MEDIA, 'default' => ['url' => Utils::get_placeholder_image_src(),], 'condition' => [ 'layout_control' => ['4'] ], ] ); //Images Repeater $repeater = new Repeater(); $repeater->add_control( 'gallery_img', [ 'label' => __( 'Gallery Images', 'thinkai' ), 'type' => Controls_Manager::MEDIA, 'default' => ['url' => Utils::get_placeholder_image_src(),], ] ); $this->add_control( 'gallery', [ 'label' => __('Add Gallery Image', 'thinkai'), 'type' => Controls_Manager::REPEATER, 'fields' => $repeater->get_controls(), 'condition' => [ 'layout_control' => ['1'] ], ] ); //Images Repeater V2 $repeater = new Repeater(); $repeater->add_control( 'gallery_img_v2', [ 'label' => __( 'Gallery Images', 'thinkai' ), 'type' => Controls_Manager::MEDIA, 'default' => ['url' => Utils::get_placeholder_image_src(),], ] ); $repeater->add_control( 'gallery_img_v3', [ 'label' => __( 'Gallery Images', 'thinkai' ), 'type' => Controls_Manager::MEDIA, 'default' => ['url' => Utils::get_placeholder_image_src(),], ] ); $this->add_control( 'gallery_v2', [ 'label' => __('Add Gallery Image', 'thinkai'), 'type' => Controls_Manager::REPEATER, 'fields' => $repeater->get_controls(), 'condition' => [ 'layout_control' => '1' ], ] ); //Images Repeater V3 $repeater = new Repeater(); $repeater->add_control( 'gallery_img_v4', [ 'label' => __( 'Gallery Images', 'thinkai' ), 'type' => Controls_Manager::MEDIA, 'default' => ['url' => Utils::get_placeholder_image_src(),], ] ); $this->add_control( 'gallery_v3', [ 'label' => __('Add Gallery Image', 'thinkai'), 'type' => Controls_Manager::REPEATER, 'fields' => $repeater->get_controls(), 'condition' => [ 'layout_control' => '1' ], ] ); //Images Repeater V3 $repeater = new Repeater(); $repeater->add_control( 'gallery_img_v5', [ 'label' => __( 'Gallery Images', 'thinkai' ), 'type' => Controls_Manager::MEDIA, 'default' => ['url' => Utils::get_placeholder_image_src(),], ] ); $repeater->add_control( 'gallery_img_v6', [ 'label' => __( 'Gallery Images', 'thinkai' ), 'type' => Controls_Manager::MEDIA, 'default' => ['url' => Utils::get_placeholder_image_src(),], ] ); $this->add_control( 'gallery_v4', [ 'label' => __('Add Gallery Item', 'thinkai'), 'type' => Controls_Manager::REPEATER, 'fields' => $repeater->get_controls(), 'condition' => [ 'layout_control' => '1' ], ] ); //Author Title $this->add_control( 'author_title', [ 'label' => __( 'Authror Title', 'thinkai' ), 'label_block' => true, 'type' => Controls_Manager::TEXT, 'dynamic' => [ 'active' => true, ], 'placeholder' => esc_html__( 'Try More Sampl', 'thinkai' ), 'condition' => [ 'layout_control' => '3' ] ] ); //Partner Title $this->add_control( 'partner_title', [ 'label' => __( 'Partner Title', 'thinkai' ), 'label_block' => true, 'type' => Controls_Manager::TEXT, 'dynamic' => [ 'active' => true, ], 'placeholder' => esc_html__( 'Popular Brand Users', 'thinkai' ), 'condition' => [ 'layout_control' => '4' ] ] ); //Feature Carousel Repeater $repeater = new Repeater(); $repeater->add_control( 'partner_img', [ 'label' => __( 'Choose Partner Image', 'thinkai' ), 'type' => Controls_Manager::MEDIA, 'default' => ['url' => Utils::get_placeholder_image_src(),], ] ); $repeater->add_control( 'partner_link', [ 'label' => __( 'Partner Link', 'thinkai' ), 'type' => Controls_Manager::URL, 'label_block' => true, 'placeholder' => __( 'https://your-link.com', 'thinkai' ), 'show_external' => true, 'default' => [ 'url' => '', 'is_external' => true, 'nofollow' => true, ], ] ); $this->add_control( 'partner', [ 'label' => __('Add Partner Item', 'thinkai'), 'type' => Controls_Manager::REPEATER, 'fields' => $repeater->get_controls(), 'condition' => [ 'layout_control' => '4' ] ] ); $this->end_controls_section(); } /** * Render button 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(); $allowed_tags = wp_kses_allowed_html('post'); $layout = $settings[ 'layout_control' ]; ?>