| Server IP : 170.10.161.225 / Your IP : 216.73.216.78 Web Server : Apache System : Linux vps103298.mylogin.co 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Wed Jan 17 02:00:40 EST 2024 x86_64 User : calvet ( 273824) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : ON Directory : /home/www/calvetrealty.com/wp-content/themes/Divi/includes/builder/module/helpers/ |
Upload File : |
<?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 );
}
}