@@ -7,44 +7,44 @@ |
||
7 | 7 | * @version 1.0.19 |
8 | 8 | */ |
9 | 9 | |
10 | -defined( 'ABSPATH' ) || exit; |
|
10 | +defined('ABSPATH') || exit; |
|
11 | 11 | |
12 | -if ( empty( $form->get_items() ) ) { |
|
12 | +if (empty($form->get_items())) { |
|
13 | 13 | return; |
14 | 14 | } |
15 | 15 | |
16 | -if ( ! empty( $GLOBALS['getpaid_force_checkbox'] ) ) { |
|
16 | +if (!empty($GLOBALS['getpaid_force_checkbox'])) { |
|
17 | 17 | $items_type = 'checkbox'; |
18 | 18 | } |
19 | 19 | |
20 | -if ( empty( $items_type ) ) { |
|
20 | +if (empty($items_type)) { |
|
21 | 21 | $items_type = 'total'; |
22 | 22 | } |
23 | 23 | |
24 | -do_action( 'getpaid_before_payment_form_items', $form ); |
|
24 | +do_action('getpaid_before_payment_form_items', $form); |
|
25 | 25 | |
26 | -switch( $items_type ) { |
|
26 | +switch ($items_type) { |
|
27 | 27 | case 'radio': |
28 | - wpinv_get_template( 'payment-forms/variations/radio.php', compact( 'form', 'items_type' ) ); |
|
28 | + wpinv_get_template('payment-forms/variations/radio.php', compact('form', 'items_type')); |
|
29 | 29 | break; |
30 | 30 | case 'checkbox': |
31 | - wpinv_get_template( 'payment-forms/variations/checkbox.php', compact( 'form', 'items_type' ) ); |
|
31 | + wpinv_get_template('payment-forms/variations/checkbox.php', compact('form', 'items_type')); |
|
32 | 32 | break; |
33 | 33 | case 'select': |
34 | - wpinv_get_template( 'payment-forms/variations/select.php', compact( 'form', 'items_type' ) ); |
|
34 | + wpinv_get_template('payment-forms/variations/select.php', compact('form', 'items_type')); |
|
35 | 35 | break; |
36 | 36 | } |
37 | 37 | |
38 | -do_action( 'getpaid_before_payment_form_cart', $form ); |
|
38 | +do_action('getpaid_before_payment_form_cart', $form); |
|
39 | 39 | |
40 | 40 | // Display the cart totals. |
41 | -if ( ! empty( $hide_cart ) ) { |
|
41 | +if (!empty($hide_cart)) { |
|
42 | 42 | echo '<div class="d-none">'; |
43 | 43 | } |
44 | 44 | |
45 | 45 | // Display the cart totals. |
46 | -wpinv_get_template( 'payment-forms/cart.php', compact( 'form', 'items_type' ) ); |
|
46 | +wpinv_get_template('payment-forms/cart.php', compact('form', 'items_type')); |
|
47 | 47 | |
48 | -if ( ! empty( $hide_cart ) ) { |
|
48 | +if (!empty($hide_cart)) { |
|
49 | 49 | echo '</div>'; |
50 | 50 | } |