HEX
Server: Apache/2.4.46 (Ubuntu)
System: Linux localhost 5.11.0-49-generic #55-Ubuntu SMP Wed Jan 12 17:36:34 UTC 2022 x86_64
User: root (0)
PHP: 7.4.16
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: /var/www/html/wavecolordrop.com/wp-content/plugins/wps-team/includes/controls/dimensions.php
<?php

namespace WPSpeedo_Team;

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

class Control_Dimensions extends Base_Data_Control {
	
	public function get_type() {
		return 'dimensions';
	}
	
	public function get_default_value() {

		return [
			'top' => '',
			'right' => '',
			'bottom' => '',
			'left' => '',
			'linked' => true,
		];
		
	}

	public function get_value( $control, $settings ) {
		$value = parent::get_value( $control, $settings );
		if ( !empty($value['value']) ) {
			$value['value']['top'] = strlen( $value['value']['top'] ) ? intval( $value['value']['top'] ) : '';
			$value['value']['right'] = strlen( $value['value']['right'] ) ? intval( $value['value']['right'] ) : '';
			$value['value']['bottom'] = strlen( $value['value']['bottom'] ) ? intval( $value['value']['bottom'] ) : '';
			$value['value']['left'] = strlen( $value['value']['left'] ) ? intval( $value['value']['left'] ) : '';
			$value['value']['linked'] = wp_validate_boolean( $value['value']['linked'] );
		}
		return $value;
	}
	
	protected function get_default_settings() {
		return array_merge(
			parent::get_default_settings(), [
				'label_block' => true,
				'allowed_dimensions' => 'all',
				'placeholder' => '',
				'tooltips' => [
					'top' => _x('Top', 'Editor: Dimension', 'wpspeedo-team'),
					'right' => _x('Right', 'Editor: Dimension', 'wpspeedo-team'),
					'bottom' => _x('Bottom', 'Editor: Dimension', 'wpspeedo-team'),
					'left' => _x('Left', 'Editor: Dimension', 'wpspeedo-team'),
					'link' => _x('Link Together', 'Editor: Dimension', 'wpspeedo-team'),
				],
			]
		);
	}
	
}