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/elementor.class.php
<?php


use Elementor\Controls_Manager;
use Elementor\Widget_Base;
use Elementor\Repeater;

class Elementor_Mailster_Form extends Widget_Base {

	public function get_name() {
		return 'et-mailster-block-form';
	}

	public function get_title() {
		return __( 'Mailster Form', 'mailster' );
	}

	public function get_icon() {
		return 'eicon-form-horizontal';
	}

	public function get_categories() {
		return array( 'general' );
	}
	public function get_keywords() {
		return array( 'mailster', 'form', 'newsletter', 'signup' );
	}

	protected function _register_controls() {
		$this->start_controls_section(
			'form_section',
			array(
				'label' => __( 'Form', 'mailster' ),
				'tab'   => Controls_Manager::TAB_CONTENT,
			)
		);

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

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

		$this->add_control(
			'form',
			array(
				'type'    => Controls_Manager::SELECT,
				'label'   => esc_html__( 'Form', 'mailster' ),
				'options' => $options,
				'default' => '0',
			)
		);

		$this->end_controls_section();
	}

	protected function render() {
		$settings = $this->get_settings_for_display();
		$form     = isset( $settings['form'] ) ? $settings['form'] : null;
		if ( ! $form ) {
			return;
		}
		echo mailster( 'block-forms' )->render_form( $form, array(), false );
	}
}