Commit realizado el 12:13:52 08-04-2024
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
/**
|
||||
* Content field preview and extend buttons template.
|
||||
*
|
||||
* @since 1.7.8
|
||||
*
|
||||
* @var int $id Field id.
|
||||
* @var string $preview Preview button label.
|
||||
* @var string $expand Expand button label.
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
?>
|
||||
|
||||
<div class="wpforms-field-content-action-buttons">
|
||||
<button type="button" id="wpforms-field-option-<?php echo absint( $id ); ?>-update-preview" class="button wpforms-content-button-update-preview update-preview">
|
||||
<?php echo esc_html( $preview ); ?>
|
||||
</button>
|
||||
<button type="button" id="wpforms-field-option-<?php echo absint( $id ); ?>-expand-editor" class="button wpforms-content-button-expand-editor expand-editor">
|
||||
<svg class="expand" viewBox="0 0 14 14">
|
||||
<path d="M6.625 8.875C6.8125 8.6875 6.8125 8.34375 6.625 8.15625L5.84375 7.375C5.65625 7.1875 5.3125 7.1875 5.125 7.375L2.25 10.25L1.25 9.25C0.78125 8.75 0 9.09375 0 9.75V13.25C0 13.6875 0.3125 14 0.71875 14H4.21875C4.90625 14 5.25 13.2188 4.75 12.75L3.75 11.75L6.625 8.875ZM7.34375 5.15625C7.15625 5.34375 7.15625 5.6875 7.34375 5.875L8.125 6.65625C8.3125 6.84375 8.65625 6.84375 8.84375 6.65625L11.75 3.75L12.7188 4.78125C13.1875 5.28125 14 4.9375 14 4.25V0.75C14 0.34375 13.6562 0 13.25 0H9.75C9.0625 0 8.71875 0.8125 9.21875 1.28125L10.25 2.25L7.34375 5.15625Z"/>
|
||||
</svg>
|
||||
<svg class="collapse" viewBox="0 0 14 14">
|
||||
<path d="M0.140625 12.3594C-0.046875 12.5469 -0.046875 12.8594 0.140625 13.0469L0.953125 13.8594C1.14062 14.0469 1.45312 14.0469 1.64062 13.8594L4.76562 10.7344L5.73438 11.7656C6.20312 12.2656 7.01562 11.9219 7.01562 11.2344V7.73438C7.01562 7.32812 6.67188 6.98438 6.26562 6.98438H2.76562C2.07812 6.98438 1.73438 7.79688 2.23438 8.26562L3.26562 9.23438L0.140625 12.3594ZM13.8594 1.64062C14.0469 1.45312 14.0469 1.14062 13.8594 0.953125L13.0469 0.140625C12.8594 -0.046875 12.5469 -0.046875 12.3594 0.140625L9.26562 3.23438L8.26562 2.23438C7.79688 1.73438 7.01562 2.07812 7.01562 2.73438V6.23438C7.01562 6.67188 7.32812 6.98438 7.73438 6.98438H11.2344C11.9219 6.98438 12.2656 6.20312 11.7656 5.73438L10.7656 4.73438L13.8594 1.64062Z"/>
|
||||
</svg>
|
||||
<span clas="wpforms-expand-button-label">
|
||||
<?php echo esc_html( $expand ); ?>
|
||||
</span>
|
||||
</button>
|
||||
</div>
|
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
/**
|
||||
* Expanded icon for Internal Information Field.
|
||||
*
|
||||
* @since 1.7.6
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
?>
|
||||
<span class="icon expanded">
|
||||
<svg viewBox="0 0 10 7">
|
||||
<path d="M5.83984 0.625C5.56641 0.378906 5.15625 0.378906 4.91016 0.625L1.19141 4.34375C0.917969 4.61719 0.917969 5.02734 1.19141 5.27344L1.79297 5.90234C2.06641 6.14844 2.47656 6.14844 2.72266 5.90234L5.375 3.25L8 5.90234C8.24609 6.14844 8.68359 6.14844 8.92969 5.90234L9.55859 5.27344C9.80469 5.02734 9.80469 4.61719 9.55859 4.34375L5.83984 0.625Z"/>
|
||||
</svg>
|
||||
</span>
|
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
/**
|
||||
* Light bulb icon for Internal Information Field.
|
||||
*
|
||||
* @since 1.7.6
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
?>
|
||||
<div class="internal-information-lightbulb">
|
||||
<svg viewBox="0 0 14 20">
|
||||
<path d="M3.75 17.97c0 .12 0 .23.08.35l.97 1.4c.12.2.32.28.51.28H8.4c.2 0 .39-.08.5-.27l.98-1.41c.04-.12.08-.23.08-.35v-1.72H3.75v1.72Zm3.13-5.47c.66 0 1.25-.55 1.25-1.25 0-.66-.6-1.25-1.26-1.25-.7 0-1.25.59-1.25 1.25 0 .7.55 1.25 1.25 1.25Zm0-12.5A6.83 6.83 0 0 0 0 6.88c0 1.75.63 3.32 1.68 4.53.66.74 1.68 2.3 2.03 3.59H5.6c0-.16 0-.35-.08-.55-.2-.7-.86-2.5-2.42-4.25a5.19 5.19 0 0 1-1.21-3.32c-.04-2.86 2.3-5 5-5 2.73 0 5 2.26 5 5 0 1.2-.47 2.38-1.26 3.32a11.72 11.72 0 0 0-2.42 4.25c-.07.2-.07.35-.07.55H10a10.56 10.56 0 0 1 2.03-3.6A6.85 6.85 0 0 0 6.88 0Zm-.4 8.75h.75c.3 0 .58-.23.62-.55l.5-3.75a.66.66 0 0 0-.62-.7H5.98a.66.66 0 0 0-.63.7l.5 3.75c.05.32.32.55.63.55Z"/>
|
||||
</svg>
|
||||
</div>
|
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
/**
|
||||
* Not expanded icon for Internal Information Field.
|
||||
*
|
||||
* @since 1.7.6
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<span class="icon not-expanded">
|
||||
<svg viewBox="0 0 10 7">
|
||||
<path d="M4.91016 5.90234C5.15625 6.14844 5.56641 6.14844 5.8125 5.90234L9.53125 2.18359C9.80469 1.91016 9.80469 1.5 9.53125 1.25391L8.92969 0.625C8.65625 0.378906 8.24609 0.378906 8 0.625L5.34766 3.27734L2.72266 0.625C2.47656 0.378906 2.06641 0.378906 1.79297 0.625L1.19141 1.25391C0.917969 1.5 0.917969 1.91016 1.19141 2.18359L4.91016 5.90234Z"/>
|
||||
</svg>
|
||||
</span>
|
@@ -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>
|
@@ -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>
|
@@ -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>
|
Reference in New Issue
Block a user