CMS Project Sync

This commit is contained in:
2026-04-15 15:59:53 -04:00
parent 015ea75186
commit a747e2a1d9
11220 changed files with 2590467 additions and 0 deletions
@@ -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,47 @@
<?php
/**
* File upload on the entry page
*
* @var int $max_file_number Max file number.
* @var string $preview_hint Hint message on the preview.
* @var string $modern_classes Modern classes.
* @var string $classic_classes Classic classes.
* @var bool $is_camera Has camera enabled.
* @var string $classic_camera Classic camera text.
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
if ( $is_camera ) {
/* translators: %1$s: Choose File to Upload opening tag, %2$s: Closing tag, %3$s: Capture With Camera opening tag. */
$description = esc_html( _n( 'Drag & Drop File, %1$sChoose File to Upload%2$s, or %3$sCapture With Camera%2$s', 'Drag & Drop Files, %1$sChoose Files to Upload%2$s, or %3$sCapture With Camera%2$s', $max_file_number, 'wpforms-lite' ) );
$description = sprintf( $description, '<span class="wpforms-file-upload-choose-file">', '</span>', '<span class="wpforms-file-upload-capture-camera">' );
} else {
/* translators: %1$s: Choose File to Upload opening tag, %2$s: Choose File to Upload closing tag. */
$description = esc_html( _n( 'Drag & Drop File or %1$sChoose File to Upload%2$s', 'Drag & Drop Files or %1$sChoose Files to Upload%2$s', $max_file_number, 'wpforms-lite' ) );
$description = sprintf( $description, '<span class="wpforms-file-upload-choose-file">', '</span>' );
}
$hidden_class = $max_file_number < 2 ? 'wpforms-hide' : '';
?>
<div class="<?php echo wpforms_sanitize_classes( $modern_classes ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>">
<svg viewBox="0 0 640 640" focusable="false" data-icon="inbox" width="50px" height="50px" fill="#B1B1B1" aria-hidden="true">
<path d="M352 173.3L352 384C352 401.7 337.7 416 320 416C302.3 416 288 401.7 288 384L288 173.3L246.6 214.7C234.1 227.2 213.8 227.2 201.3 214.7C188.8 202.2 188.8 181.9 201.3 169.4L297.3 73.4C309.8 60.9 330.1 60.9 342.6 73.4L438.6 169.4C451.1 181.9 451.1 202.2 438.6 214.7C426.1 227.2 405.8 227.2 393.3 214.7L352 173.3zM320 464C364.2 464 400 428.2 400 384L480 384C515.3 384 544 412.7 544 448L544 480C544 515.3 515.3 544 480 544L160 544C124.7 544 96 515.3 96 480L96 448C96 412.7 124.7 384 160 384L240 384C240 428.2 275.8 464 320 464zM464 488C477.3 488 488 477.3 488 464C488 450.7 477.3 440 464 440C450.7 440 440 450.7 440 464C440 477.3 450.7 488 464 488z"/>
</svg>
<span class="modern-title">
<?php echo wp_kses_post( $description ); ?>
</span>
<span class="modern-hint <?php echo sanitize_html_class( $hidden_class ); ?>">
<?php echo esc_html( $preview_hint ); ?>
</span>
</div>
<div class="<?php echo wpforms_sanitize_classes( $classic_classes ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>">
<input type="file" class="primary-input" readonly>
<span class="wpforms-file-upload-capture-camera wpforms-file-upload-capture-camera-classic <?php echo $is_camera ? '' : 'wpforms-hidden'; ?>">
<?php echo esc_html( $classic_camera ); ?>
</span>
</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,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( wpforms_html_entity_decode_deep( $value_display ) ) ); ?>"
class="wpforms-number-slider-hint">
<?php echo wp_kses_post( wpforms_html_entity_decode_deep( $value_hint ) ); ?>
</div>
@@ -0,0 +1,36 @@
<?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 $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' : ''; ?>
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( wpforms_html_entity_decode_deep( $value_display ) ) ); ?>">
<?php echo wp_kses_post( wpforms_html_entity_decode_deep( $value_hint ) ); ?>
</div>
@@ -0,0 +1,95 @@
<?php
/**
* The Order Summary preview for the Total payment field.
*
* @since 1.8.7
*
* @var array $items Order items.
* @var array $foot Order footer (subtotal, discount, total).
* @var string $total_width Total width.
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
$rows_html = '';
$total_width = $total_width ? 'width:' . $total_width . 'ch;' : '';
$fields = array_merge( (array) $items, (array) $foot );
// Display the placeholder by default.
$is_placeholder_visible = true;
// $context is set for the smart tag.
if ( isset( $context ) ) {
$is_placeholder_visible = empty( $items );
}
// Go through table items (rows).
foreach ( $fields as $field ) :
// Open a row.
$rows_html .= sprintf(
'<tr %1$s %2$s>',
wpforms_html_attributes( '', isset( $field['class'] ) ? (array) $field['class'] : [] , $field['data'] ?? [] ),
! empty( $field['is_hidden'] ) ? 'style="display:none;"' : ''
);
// Item column.
$rows_html .= sprintf(
'<td class="wpforms-order-summary-item-label" valign="top">%s</td>',
wp_kses_post( $field['label'] )
);
// Quantity column.
$rows_html .= sprintf(
'<td class="wpforms-order-summary-item-quantity" valign="top">%s</td>',
esc_html( $field['quantity'] )
);
// Price column.
$rows_html .= sprintf(
'<td class="wpforms-order-summary-item-price" valign="top" style="%1$s">%2$s</td>',
esc_attr( $total_width ),
esc_html( $field['amount'] )
);
// Close a row.
$rows_html .= '</tr>';
endforeach;
$visible_items = array_filter(
$items,
function ( $item ) {
return ! isset( $item['is_hidden'] ) || $item['is_hidden'] === false;
}
);
$is_placeholder_visible = empty( $visible_items );
$placeholder_display = $is_placeholder_visible ? 'display: table-row;' : 'display: none;';
$placeholder_classes = $is_placeholder_visible ? 'wpforms-order-summary-placeholder' : 'wpforms-order-summary-placeholder wpforms-order-summary-placeholder-hidden';
?>
<div class="wpforms-order-summary-container">
<table class="wpforms-order-summary-preview" cellpadding="0" cellspacing="0" width="100%" role="presentation">
<caption style="display: none;"><?php esc_html_e( 'Order Summary', 'wpforms-lite' ); ?></caption>
<thead>
<tr>
<th class="wpforms-order-summary-item-label" valign="top"><?php esc_html_e( 'Item', 'wpforms-lite' ); ?></th>
<th class="wpforms-order-summary-item-quantity" valign="top">
<span class="wpforms-order-summary-item-quantity-label-full"><?php esc_html_e( 'Quantity', 'wpforms-lite' ); ?></span>
<span class="wpforms-order-summary-item-quantity-label-short"><?php esc_html_e( 'Qty', 'wpforms-lite' ); ?></span>
</th>
<th class="wpforms-order-summary-item-price" valign="top" style="<?php echo esc_attr( $total_width ); ?>"><?php esc_html_e( 'Total', 'wpforms-lite' ); ?></th>
</tr>
</thead>
<tbody>
<tr class="<?php echo esc_attr( $placeholder_classes ); ?>" style="<?php echo esc_attr( $placeholder_display ); ?>">
<td colspan="3" valign="top"><?php echo esc_html__( 'There are no products selected.', 'wpforms-lite' ); ?></td>
</tr>
<?php echo $rows_html; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
</tbody>
</table>
</div>