| Server IP : 213.186.33.4 / Your IP : 216.73.216.146 Web Server : Apache System : Linux webm005.cluster103.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64 User : karinebmkh ( 644538) PHP Version : 8.4.22 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/karinebmkh/www2/wp-content/plugins/so-widgets-bundle/base/inc/fields/ |
Upload File : |
<?php
/**
* Class SiteOrigin_Widget_Field_Slider
*/
class SiteOrigin_Widget_Field_Slider extends SiteOrigin_Widget_Field_Base {
/**
* The minimum value of the allowed range.
*
* @access protected
* @var float
*/
protected $min;
/**
* The maximum value of the allowed range.
*
* @access protected
* @var float
*/
protected $max;
/**
* The step size when moving in the range.
*
* @access protected
* @var float
*/
protected $step;
protected function render_field( $value, $instance ) {
?>
<div class="siteorigin-widget-slider-value"><?php echo ! empty( $value ) ? esc_html( $value ) : 0 ?></div>
<div class="siteorigin-widget-slider-wrapper">
<div class="siteorigin-widget-value-slider"></div>
</div>
<input type="number" class="siteorigin-widget-input" name="<?php echo esc_attr( $this->element_name ) ?>" id="<?php echo esc_attr( $this->element_id ) ?>"
value="<?php echo !empty( $value ) ? esc_attr( $value ) : 0 ?>"
min="<?php echo isset( $this->min ) ? floatval( $this->min ) : 0 ?>"
max="<?php echo isset( $this->max ) ? floatval( $this->max ) : 100 ?>"
step="<?php echo isset( $this->step ) ? floatval( $this->step ) : 1 ?>"/>
<?php
}
protected function sanitize_field_input( $value, $instance ) {
return (float) $value;
}
}