Commit realizado el 12:13:52 08-04-2024

This commit is contained in:
Pagina Web Monito
2024-04-08 12:13:55 -04:00
commit 0c33094de9
7815 changed files with 1365694 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
<?php
/**
* Minimum and maximum input template for Number field.
*
* @since 1.5.7
*
* @var int $field_id Field ID.
* @var string $input_min Minimum input.
* @var string $input_max Maximum input.
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<div class="wpforms-input-row">
<div class="minimum">
<?php echo $input_min; // phpcs:ignore ?>
<label for="wpforms-field-option-<?php echo (int) $field_id; ?>-min" class="sub-label"><?php esc_html_e( 'Minimum', 'wpforms-lite' ); ?></label>
</div>
<div class="maximum">
<?php echo $input_max; // phpcs:ignore ?>
<label for="wpforms-field-option-<?php echo (int) $field_id; ?>-max" class="sub-label"><?php esc_html_e( 'Maximum', 'wpforms-lite' ); ?></label>
</div>
</div>

View File

@@ -0,0 +1,35 @@
<?php
/**
* Number Slider field builder preview.
*
* @since 1.5.7
*
* @var int $field_id Field ID.
* @var string $value_display Value display.
* @var string $value_hint Value hint.
* @var float $default_value Default value.
* @var float $min Minimum value.
* @var float $max Maximum value.
* @var float $step Step value.
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<input type="range" readonly
class="wpforms-number-slider"
id="wpforms-number-slider-<?php echo (int) $field_id; ?>"
value="<?php echo (float) $default_value; ?>"
min="<?php echo (float) $min; ?>"
max="<?php echo (float) $max; ?>"
step="<?php echo (float) $step; ?>">
<div
id="wpforms-number-slider-hint-<?php echo (int) $field_id; ?>"
data-hint="<?php echo esc_attr( wp_kses_post( $value_display ) ); ?>"
class="wpforms-number-slider-hint">
<?php echo wp_kses_post( $value_hint ); ?>
</div>

View File

@@ -0,0 +1,38 @@
<?php
/**
* Number slider field frontend template.
*
* @since 1.5.7
*
* @var array $atts Additional HTML attributes.
* @var array $class HTML classes.
* @var array $datas Data attributes.
* @var float $default_value Default field value.
* @var float $max Upper range limit.
* @var float $min Lower range limit.
* @var float $step Allowed step.
* @var string $id Element ID.
* @var string $required Is field required or not.
* @var string $value_display Value output.
* @var string $value_hint Value hint output.
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<input
type="range"
<?php wpforms_html_attributes( $id, $class, $datas, $atts, true ); ?>
<?php echo ! empty( $required ) ? 'required' : ''; ?>
value="<?php echo esc_attr( $default_value ); ?>"
min="<?php echo esc_attr( $min ); ?>"
max="<?php echo esc_attr( $max ); ?>"
step="<?php echo esc_attr( $step ); ?>">
<div class="wpforms-field-number-slider-hint"
data-hint="<?php echo esc_attr( wp_kses_post( $value_display ) ); ?>">
<?php echo wp_kses_post( $value_hint ); ?>
</div>