start_controls_section( 'text_with_image_section', [ 'label' => __( 'Setting', 'bring-back' ), 'tab' => \Elementor\Controls_Manager::TAB_CONTENT, ] ); $this->add_control( 'title', [ 'label' => __( 'Title', 'bring-back' ), 'type' => \Elementor\Controls_Manager::TEXT, 'default' => __( 'We are global business solutions provider.', 'bring-back' ) ] ); $this->add_control( 'paragraph', [ 'label' => __( 'Paragraph', 'bring-back' ), 'type' => \Elementor\Controls_Manager::TEXTAREA, 'default' => __( 'Having a proper appearance devices tablets more and smartphone can eportant when trying getteing customers keep your visitors attention.', 'bring-back' ) ] ); $this->add_control( 'btn_txt', [ 'label' => __( 'Button Text', 'bring-back' ), 'type' => \Elementor\Controls_Manager::TEXT, 'default' => __( 'Get Started', 'bring-back' ) ] ); $this->add_control( 'btn_url', [ 'label' => __( 'Button URL', 'bring-back' ), 'type' => \Elementor\Controls_Manager::URL, 'placeholder' => __( 'https://your-link.com', 'bring-back' ), 'show_external' => true, 'default' => [ 'url' => '#', 'is_external' => true, 'nofollow' => true, ], ] ); $this->add_control( 'banner', [ 'label' => __( 'Choose Image', 'bring-back' ), 'type' => \Elementor\Controls_Manager::MEDIA, 'default' => [ 'url' => \Elementor\Utils::get_placeholder_image_src(), ], ] ); $this->end_controls_section(); } /** * Render oEmbed 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(); $target = $settings['btn_url']['is_external'] ? ' target="_blank"' : ''; $nofollow = $settings['btn_url']['nofollow'] ? ' rel="nofollow"' : ''; ?>