start_controls_section( 'about_us', [ 'label' => esc_html__( 'Thinkai About Us', 'thinkai' ), ] ); //Layout $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'), ), ] ); //show_particles $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' => '2', ], ] ); //features_list $this->add_control( 'features_list', [ 'label' => __( 'Feature List', 'thinkai' ), 'label_block' => true, 'type' => Controls_Manager::TEXTAREA, 'dynamic' => [ 'active' => true, ], 'placeholder' => __( 'Enter your List', 'thinkai' ), 'condition' => [ 'layout_control' => '2', ], ] ); //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' => '1', ], ] ); //Feature img $this->add_control( 'feature_img', [ 'label' => __( 'Feature Image', 'thinkai' ), 'type' => Controls_Manager::MEDIA, 'default' => ['url' => Utils::get_placeholder_image_src(),], 'condition' => [ 'layout_control' => '2' ], ] ); //show_Round Text $this->add_control( 'show_round_text', [ 'label' => esc_html__( 'Enable Round Text', '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' => '2', ], ] ); $this->add_control( 'round_text_v1', [ 'label' => __( 'Round Text V1', 'thinkai' ), 'label_block' => true, 'type' => Controls_Manager::TEXT, 'dynamic' => [ 'active' => true, ], 'default' => esc_html__( 'AI-Driven Visual Wonders', 'thinkai' ), 'condition' => [ 'layout_control' => '2', 'show_round_text' => 'yes', ], ] ); $this->add_control( 'round_text_v2', [ 'label' => __( 'Round Text V2', 'thinkai' ), 'label_block' => true, 'type' => Controls_Manager::TEXT, 'dynamic' => [ 'active' => true, ], 'default' => esc_html__( 'AI-Driven Visual Wonders', 'thinkai' ), 'condition' => [ 'layout_control' => '2', 'show_round_text' => 'yes', ], ] ); //Sub Title $this->add_control( 'subtitle', [ 'label' => __( 'Sub Title', 'thinkai' ), 'label_block' => true, 'type' => Controls_Manager::TEXT, 'dynamic' => [ 'active' => true, ], 'default' => esc_html__( '[ ABOUT THINKAI ]', 'thinkai' ), 'condition' => [ 'layout_control' => ['1','2'] ], ] ); //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' => ['1','2'] ], ] ); //Banner Carousel Repeater $repeater = new Repeater(); $repeater->add_control( 'tab_title', [ 'label' => __( 'Title', 'thinkai' ), 'type' => Controls_Manager::TEXT, 'label_block' => true, 'dynamic' => [ 'active' => true, ], 'placeholder' => __( 'Enter your title', 'thinkai' ), ] ); //Text $repeater->add_control( 'tab_text', [ 'label' => __( 'Description', 'thinkai' ), 'label_block' => true, 'type' => Controls_Manager::TEXTAREA, 'dynamic' => [ 'active' => true, ], 'placeholder' => __( 'Enter your Description', 'thinkai' ), ] ); //Feature img $repeater->add_control( 'feature_image', [ 'label' => __( 'Feature Image', 'thinkai' ), 'type' => Controls_Manager::MEDIA, 'default' => ['url' => Utils::get_placeholder_image_src(),], ] ); $this->add_control( 'tabs', [ 'label' => __('Add Tabs Item', 'thinkai'), 'type' => Controls_Manager::REPEATER, 'fields' => $repeater->get_controls(), 'title_field' => '{{{ tab_title }}}', 'condition' => [ 'layout_control' => '1' ], 'default' => [ [ 'tab_title' => esc_html__( 'Our Experience', 'thinkai' ), 'tab_text' => esc_html__( 'Repudiated and annoyances accepted the wise man therefore always holds in these matters to this principle of selection he rejects pleasures to secure other greater pleasures or else he endures.', 'thinkai' ), ], [ 'tab_title' => esc_html__( 'Our Leadership', 'thinkai' ), 'tab_text' => esc_html__( 'Repudiated and annoyances accepted the wise man therefore always holds in these matters to this principle of selection he rejects pleasures to secure other greater pleasures or else he endures.', 'thinkai' ), ], [ 'tab_title' => esc_html__( 'Impact &Commitment', 'thinkai' ), 'tab_text' => esc_html__( 'Repudiated and annoyances accepted the wise man therefore always holds in these matters to this principle of selection he rejects pleasures to secure other greater pleasures or else he endures.', 'thinkai' ), ], ], ] ); $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'); ?> style="background-image: url();"> $items): ?> $items): ?>