start_controls_section( 'contact_us', [ 'label' => esc_html__( 'Thinkai Contact Us', 'thinkai' ), ] ); //Shape img $this->add_control( 'shape_img', [ 'label' => __( 'Shape Image', 'thinkai' ), 'type' => Controls_Manager::MEDIA, 'default' => ['url' => Utils::get_placeholder_image_src(),], ] ); //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', ] ); //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' ), ] ); //Feature img $this->add_control( 'feature_img', [ 'label' => __( 'Feature Image', 'thinkai' ), 'type' => Controls_Manager::MEDIA, 'default' => ['url' => Utils::get_placeholder_image_src(),], ] ); //Sub Title $this->add_control( 'subtitle', [ 'label' => __( 'Sub Title', 'thinkai' ), 'label_block' => true, 'type' => Controls_Manager::TEXT, 'dynamic' => [ 'active' => true, ], 'default' => esc_html__( '[ SEND A MESSAGE ]', 'thinkai' ), ] ); //Title $this->add_control( 'title', [ 'label' => __( 'Title', 'thinkai' ), 'label_block' => true, 'type' => Controls_Manager::TEXTAREA, 'dynamic' => [ 'active' => true, ], 'placeholder' => __( 'Enter your title', 'thinkai' ), ] ); //Form Array $this->add_control( 'cf7_shortocde', [ 'label' => esc_html__('Select Contact Form 7', 'thinkai'), 'type' => Controls_Manager::SELECT, 'label_block' => true, 'options' => get_contact_form_7_list(), ] ); $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'); ?>
<?php bloginfo( 'name' ); ?>
<?php bloginfo( 'name' ); ?>