HEX
Server: Apache
System: Linux vpshost0650.publiccloud.com.br 4.4.79-grsec-1.lc.x86_64 #1 SMP Wed Aug 2 14:18:21 -03 2017 x86_64
User: bandeirantesbomb3 (10068)
PHP: 8.0.7
Disabled: apache_child_terminate,dl,escapeshellarg,escapeshellcmd,exec,link,mail,openlog,passthru,pcntl_alarm,pcntl_exec,pcntl_fork,pcntl_get_last_error,pcntl_getpriority,pcntl_setpriority,pcntl_signal,pcntl_signal_dispatch,pcntl_sigprocmask,pcntl_sigtimedwait,pcntl_sigwaitinfo,pcntl_strerror,pcntl_wait,pcntl_waitpid,pcntl_wexitstatus,pcntl_wifexited,pcntl_wifsignaled,pcntl_wifstopped,pcntl_wstopsig,pcntl_wtermsig,php_check_syntax,php_strip_whitespace,popen,proc_close,proc_open,shell_exec,symlink,system
Upload Files
File: //proc/self/cwd/wp-content/plugins/elementskit-lite/modules/widget-builder/controls/ct-factory.php
<?php

namespace ElementsKit_Lite\Modules\Widget_Builder\Controls;

defined( 'ABSPATH' ) || exit;

class CT_Factory {

	public function make( $type, $domain, $group = 'single' ) {

		if ( $group == 'single' ) {

			switch ( $type ) {

				case 'TextControl':
					return new Control_Type_Input( $domain );

				case 'NumberControl':
					return new Control_Type_Number( $domain );

				case 'UrlControl':
					return new Control_Type_URL( $domain );

				case 'TextareaControl':
					return new Control_Type_Text_Area( $domain );

				case 'SelectControl':
					return new Control_Type_Select( $domain );

				case 'Select2Control':
					return new Control_Type_Select2( $domain );

				case 'CodeControl':
					return new Control_Type_Code( $domain );

				case 'SwitcherControl':
					return new Control_Type_Switch( $domain );

				case 'ChooseControl':
					return new Control_Type_Choose( $domain );

				case 'ColorControl':
					return new Control_Type_Color( $domain );

				case 'EntranceAnimationControl':
					return new Control_Type_Animation( $domain );

				case 'HoverAnimationControl':
					return new Control_Type_Animation( $domain );

				case 'DateTimeControl':
					return new Control_Type_Date_Time( $domain );

				case 'FontControl':
					return new Control_Type_Font( $domain );

				case 'GalleryControl':
					return new Control_Type_Gallery( $domain );

				case 'SliderControl':
					return new Control_Type_Slider( $domain );

				case 'IconsControl':
					return new Control_Type_Icons( $domain );

				case 'MediaControl':
					return new Control_Type_Media( $domain );

				case 'WysiwygControl':
					return new Control_Type_Wys( $domain );
			   
				case 'DimensionsControl':
					return new Control_Type_Dimensions( $domain );
			   
				case 'ImageDimensionsControl':
					return new Control_Type_Image_Dimensions( $domain );

				default:
					return new Control_Type_Input( $domain );
			}       
		} elseif ( $group == 'group' ) {

			switch ( $type ) {

				case 'BackgroundControl':
					return new Control_Type_Background( $domain );

				case 'BorderControl':
					return new Control_Type_Border( $domain );

				case 'TextShadowControl':
					return new Control_Type_Text_Shadow( $domain );

				case 'BoxShadowControl':
					return new Control_Type_Box_Shadow( $domain );

				case 'TypographyControl':
					return new Control_Type_Typography( $domain );

				case 'ImageSizeControl':
					return new Control_Type_Image_Size( $domain );

				default:
					return new Control_Type_Border( $domain );
			}       
		} elseif ( $group == 'responsive' ) {

		}

		return new Control_Type_Input( $domain );
	}
}