Use new code style

This commit is contained in:
David Stone
2025-02-07 19:02:33 -07:00
parent 0181024ae1
commit 8433379d90
672 changed files with 37107 additions and 45249 deletions

View File

@ -10,7 +10,7 @@
id="wu_form"
method="post"
class="wu_checkout_form_<?php echo esc_attr($checkout_form_name); ?> wu-relative"
<?php echo isset($checkout_form_action) ? 'action="'.esc_attr($checkout_form_action).'"' : ''; ?>
<?php echo isset($checkout_form_action) ? 'action="' . esc_attr($checkout_form_action) . '"' : ''; ?>
>
<?php
@ -25,18 +25,22 @@
*
* @since 2.0.0
*/
$form = new \WP_Ultimo\UI\Form("checkout-{$step_name}", $final_fields, array(
'title' => $display_title ? $step['name'] : '',
'views' => 'checkout/fields',
'classes' => wu_get_isset($step, 'classes', '').' wu-grid wu-grid-cols-2 wu-gap-4',
'field_wrapper_classes' => 'wu-col-span-2',
'html_attr' => array(
'id' => wu_get_isset($step, 'element_id') ? wu_get_isset($step, 'element_id') : "wu-step-{$step_name}",
),
'variables' => array(
'step' => (object) $step,
),
));
$form = new \WP_Ultimo\UI\Form(
"checkout-{$step_name}",
$final_fields,
array(
'title' => $display_title ? $step['name'] : '',
'views' => 'checkout/fields',
'classes' => wu_get_isset($step, 'classes', '') . ' wu-grid wu-grid-cols-2 wu-gap-4',
'field_wrapper_classes' => 'wu-col-span-2',
'html_attr' => array(
'id' => wu_get_isset($step, 'element_id') ? wu_get_isset($step, 'element_id') : "wu-step-{$step_name}",
),
'variables' => array(
'step' => (object) $step,
),
)
);
/**
* Render form fields.