Initial commit: Atomaste website
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,30 @@
|
||||
<?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.
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
$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 1024 1024" focusable="false" data-icon="inbox" width="50px" height="50px" fill="#B1B1B1" aria-hidden="true">
|
||||
<path d="M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0 0 60.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"></path>
|
||||
</svg>
|
||||
<span class="modern-title">
|
||||
<?php echo esc_html( _n( 'Click or drag a file to this area to upload.', 'Click or drag files to this area to upload.', $max_file_number, 'wpforms-lite' ) ); ?>
|
||||
</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>
|
||||
</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>
|
||||
Reference in New Issue
Block a user