start_controls_section( 'icon_box', [ 'label' => esc_html__( 'Thinkai Icon Box', '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 Image $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' => ['2','3'] ] ] ); //Shape Image V2 $this->add_control( 'bg_shape_image_v2', [ 'label' => esc_html__( 'BG Shape Image V2', 'thinkai' ), 'type' => Controls_Manager::MEDIA, 'default' => [ 'url' => Utils::get_placeholder_image_src(), ], 'condition' => [ 'layout_control' => '3', ] ] ); //Icon $this->add_control( 'icon', [ 'label' => esc_html__('Enter The icons', 'thinkai'), 'type' => \Elementor\Controls_Manager::ICONS, 'default' => [ 'value' => 'icon-input', 'library' => 'solid', ], 'condition' => [ 'layout_control' => ['1','2','3'] ] ] ); //Icon V2 $this->add_control( 'icon_v2', [ 'label' => esc_html__('Enter The icons', 'thinkai'), 'type' => \Elementor\Controls_Manager::ICONS, 'default' => [ 'value' => 'icon-radio-waves', 'library' => 'solid', ], 'condition' => [ 'layout_control' => ['1'] ] ] ); //Counter Value $this->add_control( 'counter_value', [ 'label' => __( 'Counter Value', 'thinkai' ), 'label_block' => true, 'type' => Controls_Manager::TEXT, 'dynamic' => [ 'active' => true, ], 'default' => esc_html__( '01', 'thinkai' ), 'condition' => [ 'layout_control' => '4', ] ] ); //Title $this->add_control( 'title', [ 'label' => __( 'Title', 'thinkai' ), 'label_block' => true, 'type' => Controls_Manager::TEXT, 'dynamic' => [ 'active' => true, ], 'placeholder' => __( 'Enter your Title', 'thinkai' ), 'condition' => [ 'layout_control' => ['2','4'] ] ] ); //Text $this->add_control( 'text', [ 'label' => __( 'Description', 'thinkai' ), 'type' => Controls_Manager::TEXTAREA, 'dynamic' => [ 'active' => true, ], 'placeholder' => __( 'Enter your Desription', 'thinkai' ), 'condition' => [ 'layout_control' => ['1','2','3','4'] ] ] ); //Contact Info Text $this->add_control( 'contact_info_text', [ 'label' => __( 'Contact Info', 'thinkai' ), 'type' => Controls_Manager::TEXTAREA, 'dynamic' => [ 'active' => true, ], 'placeholder' => __( 'Enter your Contact Info', 'thinkai' ), 'condition' => [ 'layout_control' => '3', ] ] ); //Button Title $this->add_control( 'btn_title', [ 'label' => __( 'Button Title', 'thinkai' ), 'label_block' => true, 'type' => Controls_Manager::TEXT, 'dynamic' => [ 'active' => true, ], 'default' => esc_html__( 'Read More', 'thinkai' ), 'condition' => [ 'layout_control' => ['1'] ] ] ); $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' => ['1','2','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' => ['1','2','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' => ['1','2','4'], 'link_option' => 'page', ] ] ); $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'); ?>