HEX
Server: LiteSpeed
System: Linux dune179.sitesanctuary.org 5.14.0-427.40.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Oct 16 07:08:17 EDT 2024 x86_64
User: h278792 (1197)
PHP: 8.1.29
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/h278792/www/wp-content/plugins/easy-form-builder/includes/admin/integrate-elementor.php
<?php
/* use Elementor\Controls_Manager;
use Elementor\Widget_Base;

if ( ! defined( 'ABSPATH' ) ) {
    exit;
}

class Emsfb_Form_Widget extends Widget_Base {
  
    public function get_name() {
        return 'emsfb_form';
    }

    public function get_title() {
        return __( 'Easy Form Builder', 'easy-form-builder' );
    }

    protected function _register_controls() {
        $this->start_controls_section(
            'content_section',
            [
                'label' => __( 'Content', 'easy-form-builder' ),
                'tab' => Controls_Manager::TAB_CONTENT,
            ]
        );

        $this->add_control(
            'form_id',
            [
                'label' => __( 'Select a form', 'easy-form-builder' ),
                'type' => Controls_Manager::SELECT,
                'options' => $this->get_forms(),
            ]
        );

        $this->end_controls_section();
    }

    protected function render() {
        $settings = $this->get_settings_for_display();
        echo do_shortcode( '[easy_form_builder id="' . $settings['form_id'] . '"]' );
    }

    private function get_forms() {
       
       
       
        return [];
    }
}

add_action( 'elementor/widgets/widgets_registered', function( $widgets_manager ) {
    $widgets_manager->register_widget_type( new Emsfb_Form_Widget() );
} );
 */