* Update translation text domain * Escape everything that should be escaped. * Add nonce checks where needed. * Sanitize all inputs. * Apply Code style changes across the codebase. * Correct many deprecation notices. * Optimize load order of many filters. * Add Proper Build script * Use emojii flags * Fix i18n deprecation notice for translating too early * Put all scripts in footer and load async
50 lines
908 B
PHP
50 lines
908 B
PHP
<form id="wu_form" method="post" class="wu-styling wu-relative">
|
|
|
|
<?php
|
|
|
|
/**
|
|
* Instantiate the form for the order details.
|
|
*
|
|
* @since 2.0.0
|
|
*/
|
|
$order_form = new \WP_Ultimo\UI\Form(
|
|
'product-fields',
|
|
$product_fields,
|
|
[
|
|
'title' => __('Products', 'wp-multisite-waas'),
|
|
'views' => 'checkout/fields',
|
|
]
|
|
);
|
|
|
|
/**
|
|
* Render form fields.
|
|
*
|
|
* @see /view/checkout/fields/ for the template files for each field type.
|
|
* @since 2.0.0
|
|
*/
|
|
$order_form->render();
|
|
|
|
/**
|
|
* Instantiate the form for the submit button and such.
|
|
*
|
|
* @since 2.0.0
|
|
*/
|
|
$submit = new \WP_Ultimo\UI\Form('submit-fields', $submit_fields, ['views' => 'checkout/fields']);
|
|
|
|
/**
|
|
* Render form fields.
|
|
*
|
|
* @see /view/checkout/fields/ for the template files for each field type.
|
|
* @since 2.0.0
|
|
*/
|
|
$submit->render();
|
|
|
|
/**
|
|
* Add a security nonce field.
|
|
*/
|
|
wp_nonce_field('wu_checkout');
|
|
|
|
?>
|
|
|
|
</form>
|