HEX
Server: Apache/2.4.57 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/3.0.2
System: Linux vmi267337.contaboserver.net 5.15.0-25-generic #25-Ubuntu SMP Wed Mar 30 15:54:22 UTC 2022 x86_64
User: ohirex (1008)
PHP: 8.2.8
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,exec,system,passthru,shell_exec
Upload Files
File: /home/ohirex/web/ohirex.com/public_html/wp-content/plugins/mailster/classes/divi.class.php
<?php

class ET_Builder_Module_Mailster_Block_Form extends ET_Builder_Module {

	protected $whitelisted_fields;
	protected $icon;

	public function init() {
		$this->name       = esc_html__( 'Mailster Form', 'mailster' );
		$this->slug       = 'divi-mailster-block-form';
		$this->vb_support = 'partial';

		$this->whitelisted_fields = array(
			'form',
		);

		$this->main_css_element = '%%order_class%%';
		$this->icon             = '1'; // email icon
		$this->advanced_fields  = false;
	}

	public function get_fields() {

		$forms = mailster( 'block-forms' )->get_all();

		$options = array( '0' => __( 'Select form', 'mailster' ) );
		foreach ( $forms as $form ) {
			$options[ $form->ID ] = $form->post_title;
		}

		return array(
			'form' => array(
				'default'          => '0',
				'default_on_front' => false,
				'label'            => esc_html__( 'Select form', 'mailster' ),
				'type'             => 'select',
				'description'      => esc_html__( 'Choose the form you like to display here.', 'mailster' ),
				'options'          => $options,
			),
		);
	}

	public function render( $attrs, $content = null, $render_slug = null ) {

		$form = isset( $attrs['form'] ) ? $attrs['form'] : null;
		if ( ! $form ) {
			return;
		}

		// Render module content
		$output = mailster( 'block-forms' )->render_form( $form, array(), false );

		return $this->_render_module_wrapper( $output, $render_slug );
	}
}