HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux ip-172-31-42-149 5.15.0-1084-aws #91~20.04.1-Ubuntu SMP Fri May 2 07:00:04 UTC 2025 aarch64
User: ubuntu (1000)
PHP: 7.4.33
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_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
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);
	}
}