Server IP : 15.235.198.142 / Your IP : 216.73.216.149 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ballsack 6.8.0-45-generic #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/yme/wp-content/plugins/ocean-extra/includes/metabox/controls/range/ |
Upload File : |
<?php /** * Range control class. * * @package OceanWP WordPress theme * @subpackage Controls * @see https://github.com/justintadlock/butterbean * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html */ /** * Range control class. * * @since 1.0.0 * @access public */ class OceanWP_ButterBean_Control_Range extends ButterBean_Control { /** * The type of control. * * @since 1.0.0 * @access public * @var string */ public $type = 'range'; /** * Gets the attributes for the control. * * @since 1.0.0 * @access public * @return array */ public function get_attr() { $attr = parent::get_attr(); $setting = $this->get_setting(); $attr['data-reset_value'] = $setting ? $setting->default : ''; return $attr; } /** * Get the value for the setting. * * @since 1.0.0 * @access public * @param string $setting * @return mixed */ public function get_value( $setting = 'default' ) { $value = parent::get_value( $setting ); $object = $this->get_setting( $setting ); return ! $value && $object ? $object->default : $value; } }