start_controls_section( 'float_image', [ 'label' => esc_html__( 'Float Image', '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'), '5' => esc_html__( 'Style Five ', 'thinkai'), '6' => esc_html__( 'Style Six ', 'thinkai'), ), ] ); //Curved Title $this->add_control( 'curved_title', [ 'label' => __( 'Curved Text', 'thinkai' ), 'label_block' => true, 'type' => Controls_Manager::TEXT, 'dynamic' => [ 'active' => true, ], 'default' => esc_html__( 'Making ai image is safe & easy with thinkai', 'thinkai' ), 'condition' => [ 'layout_control' => '1' ] ] ); $this->add_control( 'bg_shape_image', [ 'label' => esc_html__( 'BG Shape Image', 'thinkai' ), 'type' => Controls_Manager::MEDIA, 'default' => [ 'url' => Utils::get_placeholder_image_src(), ], 'condition' => [ 'layout_control' => '3', ] ] ); $this->add_control( 'feature_image', [ 'label' => esc_html__( 'Feature Image', 'thinkai' ), 'type' => Controls_Manager::MEDIA, 'default' => [ 'url' => Utils::get_placeholder_image_src(), ], 'condition' => [ 'layout_control' => ['1','2','3','4','5','6'] ] ] ); //Description $this->add_control( 'founded_text', [ 'label' => __( 'Founded Text', 'thinkai' ), 'label_block' => true, 'type' => Controls_Manager::TEXT, 'dynamic' => [ 'active' => true, ], 'default' => esc_html__( '2010 founded', 'thinkai' ), 'condition' => [ 'layout_control' => '1' ] ] ); $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' ); ?>
<?php bloginfo( 'name' ); ?>
<?php bloginfo( 'name' ); ?>
<?php bloginfo( 'name' ); ?>
<?php bloginfo( 'name' ); ?>
<?php bloginfo( 'name' ); ?>