@@ -1,67 +1,67 @@ |
||
1 | 1 | <?php |
2 | 2 | // don't load directly |
3 | -if ( !defined('ABSPATH') ) |
|
3 | +if (!defined('ABSPATH')) |
|
4 | 4 | die('-1'); |
5 | 5 | |
6 | -do_action( 'wpinv_email_before_billing_details', $invoice ); ?> |
|
6 | +do_action('wpinv_email_before_billing_details', $invoice); ?> |
|
7 | 7 | <div id="wpinv-email-billing"> |
8 | - <h3 class="wpinv-address-t"><?php echo apply_filters( 'wpinv_email_billing_title', __( 'Billing Details', 'invoicing' ) ); ?></h3> |
|
8 | + <h3 class="wpinv-address-t"><?php echo apply_filters('wpinv_email_billing_title', __('Billing Details', 'invoicing')); ?></h3> |
|
9 | 9 | <?php |
10 | 10 | $address_row = ''; |
11 | - if ( $address = $invoice->get_address() ) { |
|
12 | - $address_row .= wpautop( wp_kses_post( $address ) ); |
|
11 | + if ($address = $invoice->get_address()) { |
|
12 | + $address_row .= wpautop(wp_kses_post($address)); |
|
13 | 13 | } |
14 | 14 | |
15 | 15 | $address_fields = array(); |
16 | - if ( !empty( $invoice->city ) ) { |
|
16 | + if (!empty($invoice->city)) { |
|
17 | 17 | $address_fields[] = $invoice->city; |
18 | 18 | } |
19 | 19 | |
20 | - $country_code = !empty( $invoice->country ) ? $invoice->country : ''; |
|
21 | - if ( !empty( $invoice->state ) ) { |
|
22 | - $address_fields[] = wpinv_state_name( $invoice->state, $country_code ); |
|
20 | + $country_code = !empty($invoice->country) ? $invoice->country : ''; |
|
21 | + if (!empty($invoice->state)) { |
|
22 | + $address_fields[] = wpinv_state_name($invoice->state, $country_code); |
|
23 | 23 | } |
24 | 24 | |
25 | - if ( !empty( $address_fields ) ) { |
|
26 | - $address_fields = implode( ", ", $address_fields ); |
|
27 | - $address_row .= wpautop( wp_kses_post( $address_fields ) ); |
|
25 | + if (!empty($address_fields)) { |
|
26 | + $address_fields = implode(", ", $address_fields); |
|
27 | + $address_row .= wpautop(wp_kses_post($address_fields)); |
|
28 | 28 | } |
29 | 29 | |
30 | - if ( !empty( $country_code ) ) { |
|
31 | - $country = wpinv_country_name( $country_code ); |
|
32 | - $address_row .= wpautop( wp_kses_post( trim( $country . '(' . $country_code . ')' . ' ' . $invoice->zip ) ) ); |
|
30 | + if (!empty($country_code)) { |
|
31 | + $country = wpinv_country_name($country_code); |
|
32 | + $address_row .= wpautop(wp_kses_post(trim($country . '(' . $country_code . ')' . ' ' . $invoice->zip))); |
|
33 | 33 | } |
34 | 34 | |
35 | 35 | ?> |
36 | 36 | <table class="table table-bordered table-sm wpi-billing-details"> |
37 | 37 | <tbody> |
38 | - <?php do_action( 'wpinv_email_billing_fields_first', $invoice ); ?> |
|
38 | + <?php do_action('wpinv_email_billing_fields_first', $invoice); ?> |
|
39 | 39 | <tr class="wpi-receipt-name"> |
40 | - <th class="text-left"><?php _e( 'Name', 'invoicing' ); ?></th> |
|
41 | - <td><?php if ( $sent_to_admin && $invoice->user_id ) { ?><a href="<?php echo esc_url( add_query_arg( 'user_id', $invoice->get_user_id(), self_admin_url( 'user-edit.php' ) ) ) ;?>"><?php echo esc_html( $invoice->get_user_full_name() ); ?></a><?php } else { echo esc_html( $invoice->get_user_full_name() ); } ?></td> |
|
40 | + <th class="text-left"><?php _e('Name', 'invoicing'); ?></th> |
|
41 | + <td><?php if ($sent_to_admin && $invoice->user_id) { ?><a href="<?php echo esc_url(add_query_arg('user_id', $invoice->get_user_id(), self_admin_url('user-edit.php'))); ?>"><?php echo esc_html($invoice->get_user_full_name()); ?></a><?php } else { echo esc_html($invoice->get_user_full_name()); } ?></td> |
|
42 | 42 | </tr> |
43 | 43 | <tr class="wpi-receipt-email"> |
44 | - <th class="text-left"><?php _e( 'Email', 'invoicing' ); ?></th> |
|
45 | - <td><?php echo $invoice->get_email() ;?></td> |
|
44 | + <th class="text-left"><?php _e('Email', 'invoicing'); ?></th> |
|
45 | + <td><?php echo $invoice->get_email(); ?></td> |
|
46 | 46 | </tr> |
47 | - <?php if ( $invoice->company ) { ?> |
|
47 | + <?php if ($invoice->company) { ?> |
|
48 | 48 | <tr class="wpi-receipt-company"> |
49 | - <th class="text-left"><?php _e( 'Company', 'invoicing' ); ?></th> |
|
50 | - <td><?php echo esc_html( $invoice->company ) ;?></td> |
|
49 | + <th class="text-left"><?php _e('Company', 'invoicing'); ?></th> |
|
50 | + <td><?php echo esc_html($invoice->company); ?></td> |
|
51 | 51 | </tr> |
52 | 52 | <?php } ?> |
53 | 53 | <tr class="wpi-receipt-address"> |
54 | - <th class="text-left"><?php _e( 'Address', 'invoicing' ); ?></th> |
|
55 | - <td><?php echo $address_row ;?></td> |
|
54 | + <th class="text-left"><?php _e('Address', 'invoicing'); ?></th> |
|
55 | + <td><?php echo $address_row; ?></td> |
|
56 | 56 | </tr> |
57 | - <?php if ( $invoice->phone ) { ?> |
|
57 | + <?php if ($invoice->phone) { ?> |
|
58 | 58 | <tr class="wpi-receipt-phone"> |
59 | - <th class="text-left"><?php _e( 'Phone', 'invoicing' ); ?></th> |
|
60 | - <td><?php echo esc_html( $invoice->phone ) ;?></td> |
|
59 | + <th class="text-left"><?php _e('Phone', 'invoicing'); ?></th> |
|
60 | + <td><?php echo esc_html($invoice->phone); ?></td> |
|
61 | 61 | </tr> |
62 | 62 | <?php } ?> |
63 | - <?php do_action( 'wpinv_email_billing_fields_last', $invoice ); ?> |
|
63 | + <?php do_action('wpinv_email_billing_fields_last', $invoice); ?> |
|
64 | 64 | </tbody> |
65 | 65 | </table> |
66 | 66 | </div> |
67 | -<?php do_action( 'wpinv_email_after_billing_details', $invoice ); ?> |
|
68 | 67 | \ No newline at end of file |
68 | +<?php do_action('wpinv_email_after_billing_details', $invoice); ?> |
|
69 | 69 | \ No newline at end of file |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | // don't load directly |
3 | -if ( !defined('ABSPATH') ) |
|
3 | +if (!defined('ABSPATH')) |
|
4 | 4 | die('-1'); |
5 | 5 | |
6 | 6 | global $wpinv_euvat, $ajax_cart_details; |
@@ -11,158 +11,158 @@ discard block |
||
11 | 11 | $quantities_enabled = wpinv_item_quantities_enabled(); |
12 | 12 | $use_taxes = wpinv_use_taxes(); |
13 | 13 | $zero_tax = !(float)$invoice->get_tax() > 0 ? true : false; |
14 | -$tax_label = $use_taxes && $invoice->has_vat() ? $wpinv_euvat->get_vat_name() : __( 'Tax', 'invoicing' ); |
|
15 | -$tax_title = !$zero_tax && $use_taxes ? ( wpinv_prices_include_tax() ? wp_sprintf( __( '(%s Incl.)', 'invoicing' ), $tax_label ) : wp_sprintf( __( '(%s Excl.)', 'invoicing' ), $tax_label ) ) : ''; |
|
14 | +$tax_label = $use_taxes && $invoice->has_vat() ? $wpinv_euvat->get_vat_name() : __('Tax', 'invoicing'); |
|
15 | +$tax_title = !$zero_tax && $use_taxes ? (wpinv_prices_include_tax() ? wp_sprintf(__('(%s Incl.)', 'invoicing'), $tax_label) : wp_sprintf(__('(%s Excl.)', 'invoicing'), $tax_label)) : ''; |
|
16 | 16 | |
17 | -do_action( 'wpinv_before_email_items', $invoice ); ?> |
|
17 | +do_action('wpinv_before_email_items', $invoice); ?> |
|
18 | 18 | <div id="wpinv-email-items"> |
19 | - <h3 class="wpinv-items-t"><?php echo apply_filters( 'wpinv_email_items_title', __( 'Items', 'invoicing' ) ); ?></h3> |
|
19 | + <h3 class="wpinv-items-t"><?php echo apply_filters('wpinv_email_items_title', __('Items', 'invoicing')); ?></h3> |
|
20 | 20 | <table id="wpinv_checkout_cart" class="table table-bordered table-hover"> |
21 | 21 | <thead> |
22 | 22 | <tr class="wpinv_cart_header_row"> |
23 | - <?php do_action( 'wpinv_email_items_table_header_first' ); ?> |
|
24 | - <th class="wpinv_cart_item_name text-left"><?php _e( 'Item Name', 'invoicing' ); ?></th> |
|
25 | - <th class="wpinv_cart_item_price text-right"><?php _e( 'Item Price', 'invoicing' ); ?></th> |
|
26 | - <?php if ( $quantities_enabled ) { ?> |
|
27 | - <th class="wpinv_cart_item_qty text-right"><?php _e( 'Qty', 'invoicing' ); ?></th> |
|
23 | + <?php do_action('wpinv_email_items_table_header_first'); ?> |
|
24 | + <th class="wpinv_cart_item_name text-left"><?php _e('Item Name', 'invoicing'); ?></th> |
|
25 | + <th class="wpinv_cart_item_price text-right"><?php _e('Item Price', 'invoicing'); ?></th> |
|
26 | + <?php if ($quantities_enabled) { ?> |
|
27 | + <th class="wpinv_cart_item_qty text-right"><?php _e('Qty', 'invoicing'); ?></th> |
|
28 | 28 | <?php } ?> |
29 | - <?php if ( !$zero_tax && $use_taxes ) { ?> |
|
29 | + <?php if (!$zero_tax && $use_taxes) { ?> |
|
30 | 30 | <th class="wpinv_cart_item_tax text-right"><?php echo $tax_label . ' <span class="normal small">(%)</span>'; ?></th> |
31 | 31 | <?php } ?> |
32 | - <th class="wpinv_cart_item_subtotal text-right"><?php echo __( 'Item Total', 'invoicing' ) . ' <span class="normal small">' . $tax_title . '<span>'; ?></th> |
|
33 | - <?php do_action( 'wpinv_email_items_table_header_last' ); ?> |
|
32 | + <th class="wpinv_cart_item_subtotal text-right"><?php echo __('Item Total', 'invoicing') . ' <span class="normal small">' . $tax_title . '<span>'; ?></th> |
|
33 | + <?php do_action('wpinv_email_items_table_header_last'); ?> |
|
34 | 34 | </tr> |
35 | 35 | </thead> |
36 | 36 | <tbody> |
37 | 37 | <?php |
38 | - do_action( 'wpinv_email_items_before' ); |
|
39 | - if ( $cart_items ) { |
|
40 | - foreach ( $cart_items as $key => $item ) { |
|
41 | - $wpi_item = $item['id'] ? new WPInv_Item( $item['id'] ) : NULL; |
|
38 | + do_action('wpinv_email_items_before'); |
|
39 | + if ($cart_items) { |
|
40 | + foreach ($cart_items as $key => $item) { |
|
41 | + $wpi_item = $item['id'] ? new WPInv_Item($item['id']) : NULL; |
|
42 | 42 | ?> |
43 | - <tr class="wpinv_cart_item" id="wpinv_cart_item_<?php echo esc_attr( $key ) . '_' . esc_attr( $item['id'] ); ?>" data-item-id="<?php echo esc_attr( $item['id'] ); ?>"> |
|
44 | - <?php do_action( 'wpinv_email_items_table_body_first', $item ); ?> |
|
43 | + <tr class="wpinv_cart_item" id="wpinv_cart_item_<?php echo esc_attr($key) . '_' . esc_attr($item['id']); ?>" data-item-id="<?php echo esc_attr($item['id']); ?>"> |
|
44 | + <?php do_action('wpinv_email_items_table_body_first', $item); ?> |
|
45 | 45 | <td class="wpinv_cart_item_name text-left"> |
46 | 46 | <?php |
47 | - if ( current_theme_supports( 'post-thumbnails' ) && has_post_thumbnail( $item['id'] ) ) { |
|
47 | + if (current_theme_supports('post-thumbnails') && has_post_thumbnail($item['id'])) { |
|
48 | 48 | echo '<div class="wpinv_cart_item_image">'; |
49 | - echo get_the_post_thumbnail( $item['id'], apply_filters( 'wpinv_checkout_image_size', array( 25,25 ) ) ); |
|
49 | + echo get_the_post_thumbnail($item['id'], apply_filters('wpinv_checkout_image_size', array(25, 25))); |
|
50 | 50 | echo '</div>'; |
51 | 51 | } |
52 | - $item_title = esc_html( wpinv_get_cart_item_name( $item ) ) . wpinv_get_item_suffix( $wpi_item ); |
|
52 | + $item_title = esc_html(wpinv_get_cart_item_name($item)) . wpinv_get_item_suffix($wpi_item); |
|
53 | 53 | echo '<span class="wpinv_email_cart_item_title">' . $item_title . '</span>'; |
54 | 54 | |
55 | 55 | $summary = ''; |
56 | - if ( !empty( $wpi_item ) && $wpi_item->is_package() && !empty( $item['meta']['post_id'] ) ) { |
|
57 | - $post_link = '<a href="' . get_permalink( $item['meta']['post_id'] ) .'" target="_blank">' . (!empty($item['meta']['invoice_title']) ? $item['meta']['invoice_title'] : get_the_title( $item['meta']['post_id']) ) . '</a>'; |
|
58 | - $summary = wp_sprintf( __( '%s: %s', 'invoicing' ), $wpi_item->get_cpt_singular_name(), $post_link ); |
|
56 | + if (!empty($wpi_item) && $wpi_item->is_package() && !empty($item['meta']['post_id'])) { |
|
57 | + $post_link = '<a href="' . get_permalink($item['meta']['post_id']) . '" target="_blank">' . (!empty($item['meta']['invoice_title']) ? $item['meta']['invoice_title'] : get_the_title($item['meta']['post_id'])) . '</a>'; |
|
58 | + $summary = wp_sprintf(__('%s: %s', 'invoicing'), $wpi_item->get_cpt_singular_name(), $post_link); |
|
59 | 59 | } |
60 | 60 | |
61 | - $summary = apply_filters( 'wpinv_email_invoice_line_item_summary', $summary, $item, $wpi_item, $invoice ); |
|
62 | - if ( !empty( $summary ) ) { |
|
61 | + $summary = apply_filters('wpinv_email_invoice_line_item_summary', $summary, $item, $wpi_item, $invoice); |
|
62 | + if (!empty($summary)) { |
|
63 | 63 | echo '<p class="small">' . $summary . '</p>'; |
64 | 64 | } |
65 | 65 | |
66 | - do_action( 'wpinv_email_cart_item_title_after', $item, $key ); |
|
66 | + do_action('wpinv_email_cart_item_title_after', $item, $key); |
|
67 | 67 | ?> |
68 | 68 | </td> |
69 | 69 | <td class="wpinv_cart_item_price text-right"> |
70 | 70 | <?php |
71 | - echo wpinv_cart_item_price( $item ); |
|
72 | - do_action( 'wpinv_email_cart_item_price_after', $item, $key ); |
|
71 | + echo wpinv_cart_item_price($item); |
|
72 | + do_action('wpinv_email_cart_item_price_after', $item, $key); |
|
73 | 73 | ?> |
74 | 74 | </td> |
75 | - <?php if ( $quantities_enabled ) { ?> |
|
75 | + <?php if ($quantities_enabled) { ?> |
|
76 | 76 | <td class="wpinv_cart_item_qty text-right"> |
77 | 77 | <?php |
78 | - echo wpinv_get_cart_item_quantity( $item ); |
|
79 | - do_action( 'wpinv_email_item_quantitiy', $item, $key ); |
|
78 | + echo wpinv_get_cart_item_quantity($item); |
|
79 | + do_action('wpinv_email_item_quantitiy', $item, $key); |
|
80 | 80 | ?> |
81 | 81 | </td> |
82 | 82 | <?php } ?> |
83 | - <?php if ( !$zero_tax && $use_taxes ) { ?> |
|
83 | + <?php if (!$zero_tax && $use_taxes) { ?> |
|
84 | 84 | <td class="wpinv_cart_item_tax text-right"> |
85 | 85 | <?php |
86 | - echo wpinv_cart_item_tax( $item ); |
|
87 | - do_action( 'wpinv_email_item_tax', $item, $key ); |
|
86 | + echo wpinv_cart_item_tax($item); |
|
87 | + do_action('wpinv_email_item_tax', $item, $key); |
|
88 | 88 | ?> |
89 | 89 | </td> |
90 | 90 | <?php } ?> |
91 | 91 | <td class="wpinv_cart_item_subtotal text-right"> |
92 | 92 | <?php |
93 | - echo wpinv_cart_item_subtotal( $item ); |
|
94 | - do_action( 'wpinv_email_item_subtotal', $item, $key ); |
|
93 | + echo wpinv_cart_item_subtotal($item); |
|
94 | + do_action('wpinv_email_item_subtotal', $item, $key); |
|
95 | 95 | ?> |
96 | 96 | </td> |
97 | - <?php do_action( 'wpinv_email_items_table_body_last', $item, $key ); ?> |
|
97 | + <?php do_action('wpinv_email_items_table_body_last', $item, $key); ?> |
|
98 | 98 | </tr> |
99 | 99 | <?php } ?> |
100 | 100 | <?php } ?> |
101 | - <?php do_action( 'wpinv_email_items_middle' ); ?> |
|
102 | - <?php do_action( 'wpinv_email_items_after' ); ?> |
|
101 | + <?php do_action('wpinv_email_items_middle'); ?> |
|
102 | + <?php do_action('wpinv_email_items_after'); ?> |
|
103 | 103 | </tbody> |
104 | 104 | <tfoot> |
105 | - <?php $cart_columns = wpinv_checkout_cart_columns(); if ( $zero_tax && $use_taxes ) { $cart_columns--; } ?> |
|
106 | - <?php if ( has_action( 'wpinv_email_footer_buttons' ) ) { ?> |
|
105 | + <?php $cart_columns = wpinv_checkout_cart_columns(); if ($zero_tax && $use_taxes) { $cart_columns--; } ?> |
|
106 | + <?php if (has_action('wpinv_email_footer_buttons')) { ?> |
|
107 | 107 | <tr class="wpinv_cart_footer_row"> |
108 | - <?php do_action( 'wpinv_email_items_table_buttons_first', $cart_items ); ?> |
|
109 | - <td colspan="<?php echo ( $cart_columns ); ?>"> |
|
110 | - <?php do_action( 'wpinv_email_footer_buttons' ); ?> |
|
108 | + <?php do_action('wpinv_email_items_table_buttons_first', $cart_items); ?> |
|
109 | + <td colspan="<?php echo ($cart_columns); ?>"> |
|
110 | + <?php do_action('wpinv_email_footer_buttons'); ?> |
|
111 | 111 | </td> |
112 | - <?php do_action( 'wpinv_email_items_table_buttons_first', $cart_items ); ?> |
|
112 | + <?php do_action('wpinv_email_items_table_buttons_first', $cart_items); ?> |
|
113 | 113 | </tr> |
114 | 114 | <?php } ?> |
115 | 115 | |
116 | - <?php if ( !$zero_tax && $use_taxes && !wpinv_prices_include_tax() && wpinv_is_cart_taxed() ) { ?> |
|
116 | + <?php if (!$zero_tax && $use_taxes && !wpinv_prices_include_tax() && wpinv_is_cart_taxed()) { ?> |
|
117 | 117 | <tr class="wpinv_cart_footer_row wpinv_cart_subtotal_row"> |
118 | - <?php do_action( 'wpinv_email_items_table_subtotal_first', $cart_items ); ?> |
|
119 | - <td colspan="<?php echo ( $cart_columns - 1 ); ?>" class="wpinv_cart_subtotal_label text-right"> |
|
120 | - <strong><?php _e( 'Sub-Total', 'invoicing' ); ?>:</strong> |
|
118 | + <?php do_action('wpinv_email_items_table_subtotal_first', $cart_items); ?> |
|
119 | + <td colspan="<?php echo ($cart_columns - 1); ?>" class="wpinv_cart_subtotal_label text-right"> |
|
120 | + <strong><?php _e('Sub-Total', 'invoicing'); ?>:</strong> |
|
121 | 121 | </td> |
122 | 122 | <td class="wpinv_cart_subtotal text-right"> |
123 | - <span class="wpinv_cart_subtotal_amount bold"><?php echo $invoice->get_subtotal( true ); ?></span> |
|
123 | + <span class="wpinv_cart_subtotal_amount bold"><?php echo $invoice->get_subtotal(true); ?></span> |
|
124 | 124 | </td> |
125 | - <?php do_action( 'wpinv_email_items_table_subtotal_last', $cart_items, $invoice ); ?> |
|
125 | + <?php do_action('wpinv_email_items_table_subtotal_last', $cart_items, $invoice); ?> |
|
126 | 126 | </tr> |
127 | 127 | <?php } ?> |
128 | 128 | |
129 | - <?php if ( wpinv_discount( $invoice_id, false ) > 0 ) { ?> |
|
129 | + <?php if (wpinv_discount($invoice_id, false) > 0) { ?> |
|
130 | 130 | <tr class="wpinv_cart_footer_row wpinv_cart_discount_row"> |
131 | - <?php do_action( 'wpinv_receipt_items_table_discount_first', $cart_items, $invoice ); ?> |
|
132 | - <td colspan="<?php echo ( $cart_columns - 1 ); ?>" class="wpinv_cart_discount_label text-right"> |
|
133 | - <strong><?php wpinv_get_discount_label( wpinv_discount_code( $invoice_id ) ); ?>:</strong> |
|
131 | + <?php do_action('wpinv_receipt_items_table_discount_first', $cart_items, $invoice); ?> |
|
132 | + <td colspan="<?php echo ($cart_columns - 1); ?>" class="wpinv_cart_discount_label text-right"> |
|
133 | + <strong><?php wpinv_get_discount_label(wpinv_discount_code($invoice_id)); ?>:</strong> |
|
134 | 134 | </td> |
135 | 135 | <td class="wpinv_cart_discount text-right"> |
136 | - <span class="wpinv_cart_discount_amount"><?php echo wpinv_discount( $invoice_id, true, true ); ?></span> |
|
136 | + <span class="wpinv_cart_discount_amount"><?php echo wpinv_discount($invoice_id, true, true); ?></span> |
|
137 | 137 | </td> |
138 | - <?php do_action( 'wpinv_receipt_items_table_discount_last', $cart_items, $invoice ); ?> |
|
138 | + <?php do_action('wpinv_receipt_items_table_discount_last', $cart_items, $invoice); ?> |
|
139 | 139 | </tr> |
140 | 140 | <?php } ?> |
141 | 141 | |
142 | - <?php if ( !$zero_tax && $use_taxes && wpinv_is_cart_taxed() ) { ?> |
|
142 | + <?php if (!$zero_tax && $use_taxes && wpinv_is_cart_taxed()) { ?> |
|
143 | 143 | <tr class="wpinv_cart_footer_row wpinv_cart_tax_row"> |
144 | - <?php do_action( 'wpinv_email_items_table_tax_first', $cart_items, $invoice ); ?> |
|
145 | - <td colspan="<?php echo ( $cart_columns - 1 ); ?>" class="wpinv_cart_tax_label text-right"> |
|
144 | + <?php do_action('wpinv_email_items_table_tax_first', $cart_items, $invoice); ?> |
|
145 | + <td colspan="<?php echo ($cart_columns - 1); ?>" class="wpinv_cart_tax_label text-right"> |
|
146 | 146 | <strong><?php echo $tax_label; ?>:</strong> |
147 | 147 | </td> |
148 | 148 | <td class="wpinv_cart_tax text-right"> |
149 | - <span class="wpinv_cart_tax_amount"><?php echo $invoice->get_tax( true ); ?></span> |
|
149 | + <span class="wpinv_cart_tax_amount"><?php echo $invoice->get_tax(true); ?></span> |
|
150 | 150 | </td> |
151 | - <?php do_action( 'wpinv_email_items_table_tax_last', $cart_items, $invoice ); ?> |
|
151 | + <?php do_action('wpinv_email_items_table_tax_last', $cart_items, $invoice); ?> |
|
152 | 152 | </tr> |
153 | 153 | <?php } ?> |
154 | 154 | |
155 | 155 | <tr class="wpinv_cart_footer_row"> |
156 | - <?php do_action( 'wpinv_email_items_table_footer_first', $cart_items, $invoice ); ?> |
|
157 | - <td colspan="<?php echo ( $cart_columns - 1 ); ?>" class="wpinv_cart_total_label text-right"> |
|
158 | - <?php echo apply_filters( 'wpinv_email_cart_total_label', '<strong>' . __( 'Total', 'invoicing' ) . ':</strong>', $invoice ); ?> |
|
156 | + <?php do_action('wpinv_email_items_table_footer_first', $cart_items, $invoice); ?> |
|
157 | + <td colspan="<?php echo ($cart_columns - 1); ?>" class="wpinv_cart_total_label text-right"> |
|
158 | + <?php echo apply_filters('wpinv_email_cart_total_label', '<strong>' . __('Total', 'invoicing') . ':</strong>', $invoice); ?> |
|
159 | 159 | </td> |
160 | 160 | <td class="wpinv_cart_total text-right"> |
161 | - <span class="wpinv_cart_amount bold"><?php echo $invoice->get_total( true ); ?></span> |
|
161 | + <span class="wpinv_cart_amount bold"><?php echo $invoice->get_total(true); ?></span> |
|
162 | 162 | </td> |
163 | - <?php do_action( 'wpinv_email_items_table_footer_last', $cart_items, $invoice ); ?> |
|
163 | + <?php do_action('wpinv_email_items_table_footer_last', $cart_items, $invoice); ?> |
|
164 | 164 | </tr> |
165 | 165 | </tfoot> |
166 | 166 | </table> |
167 | 167 | </div> |
168 | -<?php do_action( 'wpinv_after_email_items', $invoice ); ?> |
|
169 | 168 | \ No newline at end of file |
169 | +<?php do_action('wpinv_after_email_items', $invoice); ?> |
|
170 | 170 | \ No newline at end of file |
@@ -1,18 +1,18 @@ |
||
1 | 1 | <?php |
2 | 2 | // don't load directly |
3 | -if ( !defined('ABSPATH') ) |
|
3 | +if (!defined('ABSPATH')) |
|
4 | 4 | die('-1'); |
5 | 5 | |
6 | -do_action( 'wpinv_email_header', $email_heading, $invoice, $email_type, $sent_to_admin ); |
|
6 | +do_action('wpinv_email_header', $email_heading, $invoice, $email_type, $sent_to_admin); |
|
7 | 7 | ?> |
8 | 8 | |
9 | -<p><?php printf( __( 'Payment for invoice #%s from %s has failed. The invoice is as follows:', 'invoicing' ), $invoice->get_number(), $invoice->get_user_full_name() ); ?></p> |
|
9 | +<p><?php printf(__('Payment for invoice #%s from %s has failed. The invoice is as follows:', 'invoicing'), $invoice->get_number(), $invoice->get_user_full_name()); ?></p> |
|
10 | 10 | |
11 | 11 | <?php |
12 | -do_action( 'wpinv_email_invoice_details', $invoice, $email_type, $sent_to_admin ); |
|
12 | +do_action('wpinv_email_invoice_details', $invoice, $email_type, $sent_to_admin); |
|
13 | 13 | |
14 | -do_action( 'wpinv_email_invoice_items', $invoice, $email_type, $sent_to_admin ); |
|
14 | +do_action('wpinv_email_invoice_items', $invoice, $email_type, $sent_to_admin); |
|
15 | 15 | |
16 | -do_action( 'wpinv_email_billing_details', $invoice, $email_type, $sent_to_admin ); |
|
16 | +do_action('wpinv_email_billing_details', $invoice, $email_type, $sent_to_admin); |
|
17 | 17 | |
18 | -do_action( 'wpinv_email_footer', $invoice, $email_type, $sent_to_admin ); |
|
19 | 18 | \ No newline at end of file |
19 | +do_action('wpinv_email_footer', $invoice, $email_type, $sent_to_admin); |
|
20 | 20 | \ No newline at end of file |
@@ -1,18 +1,18 @@ |
||
1 | 1 | <?php |
2 | 2 | // don't load directly |
3 | -if ( !defined('ABSPATH') ) |
|
3 | +if (!defined('ABSPATH')) |
|
4 | 4 | die('-1'); |
5 | 5 | |
6 | -do_action( 'wpinv_email_header', $email_heading, $invoice, $email_type, $sent_to_admin ); |
|
6 | +do_action('wpinv_email_header', $email_heading, $invoice, $email_type, $sent_to_admin); |
|
7 | 7 | ?> |
8 | 8 | |
9 | -<p><?php printf( __( 'You have received an payment from %s. The invoice is as follows:', 'invoicing' ), $invoice->get_user_full_name() ); ?></p> |
|
9 | +<p><?php printf(__('You have received an payment from %s. The invoice is as follows:', 'invoicing'), $invoice->get_user_full_name()); ?></p> |
|
10 | 10 | |
11 | 11 | <?php |
12 | -do_action( 'wpinv_email_invoice_details', $invoice, $email_type, $sent_to_admin ); |
|
12 | +do_action('wpinv_email_invoice_details', $invoice, $email_type, $sent_to_admin); |
|
13 | 13 | |
14 | -do_action( 'wpinv_email_invoice_items', $invoice, $email_type, $sent_to_admin ); |
|
14 | +do_action('wpinv_email_invoice_items', $invoice, $email_type, $sent_to_admin); |
|
15 | 15 | |
16 | -do_action( 'wpinv_email_billing_details', $invoice, $email_type, $sent_to_admin ); |
|
16 | +do_action('wpinv_email_billing_details', $invoice, $email_type, $sent_to_admin); |
|
17 | 17 | |
18 | -do_action( 'wpinv_email_footer', $invoice, $email_type, $sent_to_admin ); |
|
19 | 18 | \ No newline at end of file |
19 | +do_action('wpinv_email_footer', $invoice, $email_type, $sent_to_admin); |
|
20 | 20 | \ No newline at end of file |
@@ -1,18 +1,18 @@ |
||
1 | 1 | <?php |
2 | 2 | // don't load directly |
3 | -if ( !defined('ABSPATH') ) |
|
3 | +if (!defined('ABSPATH')) |
|
4 | 4 | die('-1'); |
5 | 5 | |
6 | -do_action( 'wpinv_email_header', $email_heading, $invoice, $email_type, $sent_to_admin ); |
|
6 | +do_action('wpinv_email_header', $email_heading, $invoice, $email_type, $sent_to_admin); |
|
7 | 7 | ?> |
8 | 8 | |
9 | -<p><?php printf( __( "Hi there. Your recent invoice on %s has been paid. Your invoice details are shown below for your reference:", 'invoicing' ), wpinv_get_business_name() ); ?></p> |
|
9 | +<p><?php printf(__("Hi there. Your recent invoice on %s has been paid. Your invoice details are shown below for your reference:", 'invoicing'), wpinv_get_business_name()); ?></p> |
|
10 | 10 | |
11 | 11 | <?php |
12 | -do_action( 'wpinv_email_invoice_details', $invoice, $email_type, $sent_to_admin ); |
|
12 | +do_action('wpinv_email_invoice_details', $invoice, $email_type, $sent_to_admin); |
|
13 | 13 | |
14 | -do_action( 'wpinv_email_invoice_items', $invoice, $email_type, $sent_to_admin ); |
|
14 | +do_action('wpinv_email_invoice_items', $invoice, $email_type, $sent_to_admin); |
|
15 | 15 | |
16 | -do_action( 'wpinv_email_billing_details', $invoice, $email_type, $sent_to_admin ); |
|
16 | +do_action('wpinv_email_billing_details', $invoice, $email_type, $sent_to_admin); |
|
17 | 17 | |
18 | -do_action( 'wpinv_email_footer', $invoice, $email_type, $sent_to_admin ); |
|
19 | 18 | \ No newline at end of file |
19 | +do_action('wpinv_email_footer', $invoice, $email_type, $sent_to_admin); |
|
20 | 20 | \ No newline at end of file |
@@ -1,18 +1,18 @@ |
||
1 | 1 | <?php |
2 | 2 | // don't load directly |
3 | -if ( !defined('ABSPATH') ) |
|
3 | +if (!defined('ABSPATH')) |
|
4 | 4 | die('-1'); |
5 | 5 | |
6 | -do_action( 'wpinv_email_header', $email_heading, $invoice, $email_type, $sent_to_admin ); |
|
6 | +do_action('wpinv_email_header', $email_heading, $invoice, $email_type, $sent_to_admin); |
|
7 | 7 | ?> |
8 | 8 | |
9 | -<p><?php _e( "Your invoice is on-hold until we confirm payment has been received. Your invoice details are shown below for your reference:", 'invoicing' ); ?></p> |
|
9 | +<p><?php _e("Your invoice is on-hold until we confirm payment has been received. Your invoice details are shown below for your reference:", 'invoicing'); ?></p> |
|
10 | 10 | |
11 | 11 | <?php |
12 | -do_action( 'wpinv_email_invoice_details', $invoice, $email_type, $sent_to_admin ); |
|
12 | +do_action('wpinv_email_invoice_details', $invoice, $email_type, $sent_to_admin); |
|
13 | 13 | |
14 | -do_action( 'wpinv_email_invoice_items', $invoice, $email_type, $sent_to_admin ); |
|
14 | +do_action('wpinv_email_invoice_items', $invoice, $email_type, $sent_to_admin); |
|
15 | 15 | |
16 | -do_action( 'wpinv_email_billing_details', $invoice, $email_type, $sent_to_admin ); |
|
16 | +do_action('wpinv_email_billing_details', $invoice, $email_type, $sent_to_admin); |
|
17 | 17 | |
18 | -do_action( 'wpinv_email_footer', $invoice, $email_type, $sent_to_admin ); |
|
19 | 18 | \ No newline at end of file |
19 | +do_action('wpinv_email_footer', $invoice, $email_type, $sent_to_admin); |
|
20 | 20 | \ No newline at end of file |
@@ -1,25 +1,25 @@ |
||
1 | 1 | <?php |
2 | 2 | // don't load directly |
3 | -if ( !defined('ABSPATH') ) |
|
3 | +if (!defined('ABSPATH')) |
|
4 | 4 | die('-1'); |
5 | 5 | |
6 | -do_action( 'wpinv_email_header', $email_heading, $invoice, $email_type, $sent_to_admin ); |
|
6 | +do_action('wpinv_email_header', $email_heading, $invoice, $email_type, $sent_to_admin); |
|
7 | 7 | ?> |
8 | 8 | |
9 | 9 | <p><?php |
10 | - if ( !empty( $partial_refund ) ) { |
|
11 | - printf( __( 'Hi there. Your invoice on %s has been partially refunded.', 'invoicing' ), wpinv_get_business_name() ); |
|
10 | + if (!empty($partial_refund)) { |
|
11 | + printf(__('Hi there. Your invoice on %s has been partially refunded.', 'invoicing'), wpinv_get_business_name()); |
|
12 | 12 | } |
13 | 13 | else { |
14 | - printf( __( 'Hi there. Your invoice on %s has been refunded.', 'invoicing' ), wpinv_get_business_name() ); |
|
14 | + printf(__('Hi there. Your invoice on %s has been refunded.', 'invoicing'), wpinv_get_business_name()); |
|
15 | 15 | } |
16 | 16 | ?></p> |
17 | 17 | |
18 | 18 | <?php |
19 | -do_action( 'wpinv_email_invoice_details', $invoice, $email_type, $sent_to_admin ); |
|
19 | +do_action('wpinv_email_invoice_details', $invoice, $email_type, $sent_to_admin); |
|
20 | 20 | |
21 | -do_action( 'wpinv_email_invoice_items', $invoice, $email_type, $sent_to_admin ); |
|
21 | +do_action('wpinv_email_invoice_items', $invoice, $email_type, $sent_to_admin); |
|
22 | 22 | |
23 | -do_action( 'wpinv_email_billing_details', $invoice, $email_type, $sent_to_admin ); |
|
23 | +do_action('wpinv_email_billing_details', $invoice, $email_type, $sent_to_admin); |
|
24 | 24 | |
25 | -do_action( 'wpinv_email_footer', $invoice, $email_type, $sent_to_admin ); |
|
26 | 25 | \ No newline at end of file |
26 | +do_action('wpinv_email_footer', $invoice, $email_type, $sent_to_admin); |
|
27 | 27 | \ No newline at end of file |
@@ -1,80 +1,80 @@ discard block |
||
1 | 1 | <?php |
2 | -if ( ! defined( 'ABSPATH' ) ) { |
|
2 | +if (!defined('ABSPATH')) { |
|
3 | 3 | exit; |
4 | 4 | } |
5 | 5 | |
6 | -if ( !( $user_id = get_current_user_id() ) ) { |
|
6 | +if (!($user_id = get_current_user_id())) { |
|
7 | 7 | ?> |
8 | - <div class="wpinv-empty alert alert-error"><?php _e( 'You are not allowed to access this section', 'invoicing' ) ;?></div> |
|
8 | + <div class="wpinv-empty alert alert-error"><?php _e('You are not allowed to access this section', 'invoicing'); ?></div> |
|
9 | 9 | <?php |
10 | 10 | return; |
11 | 11 | } |
12 | 12 | |
13 | 13 | global $current_page; |
14 | -$current_page = empty( $current_page ) ? 1 : absint( $current_page ); |
|
15 | -$query = apply_filters( 'wpinv_user_invoices_query', array( 'user' => $user_id, 'page' => $current_page, 'paginate' => true ) ); |
|
16 | -$user_invoices = wpinv_get_invoices( $query ); |
|
14 | +$current_page = empty($current_page) ? 1 : absint($current_page); |
|
15 | +$query = apply_filters('wpinv_user_invoices_query', array('user' => $user_id, 'page' => $current_page, 'paginate' => true)); |
|
16 | +$user_invoices = wpinv_get_invoices($query); |
|
17 | 17 | $has_invoices = 0 < $user_invoices->total; |
18 | 18 | |
19 | -do_action( 'wpinv_before_user_invoices', $has_invoices ); ?> |
|
19 | +do_action('wpinv_before_user_invoices', $has_invoices); ?> |
|
20 | 20 | |
21 | -<?php if ( $has_invoices ) { ?> |
|
21 | +<?php if ($has_invoices) { ?> |
|
22 | 22 | <table class="table table-bordered table-hover wpi-user-invoices"> |
23 | 23 | <thead> |
24 | 24 | <tr> |
25 | - <?php foreach ( wpinv_get_user_invoices_columns() as $column_id => $column_name ) : ?> |
|
26 | - <th class="<?php echo esc_attr( $column_id ); ?> <?php echo (!empty($column_name['class']) ? $column_name['class'] : '');?>"><span class="nobr"><?php echo esc_html( $column_name['title'] ); ?></span></th> |
|
25 | + <?php foreach (wpinv_get_user_invoices_columns() as $column_id => $column_name) : ?> |
|
26 | + <th class="<?php echo esc_attr($column_id); ?> <?php echo (!empty($column_name['class']) ? $column_name['class'] : ''); ?>"><span class="nobr"><?php echo esc_html($column_name['title']); ?></span></th> |
|
27 | 27 | <?php endforeach; ?> |
28 | 28 | </tr> |
29 | 29 | </thead> |
30 | 30 | |
31 | 31 | <tbody> |
32 | - <?php foreach ( $user_invoices->invoices as $invoice ) { |
|
32 | + <?php foreach ($user_invoices->invoices as $invoice) { |
|
33 | 33 | ?> |
34 | 34 | <tr class="wpinv-item wpinv-item-<?php echo $invoice_status = $invoice->get_status(); ?>"> |
35 | - <?php foreach ( wpinv_get_user_invoices_columns() as $column_id => $column_name ) : ?> |
|
36 | - <td class="<?php echo esc_attr( $column_id ); ?> <?php echo (!empty($column_name['class']) ? $column_name['class'] : '');?>" data-title="<?php echo esc_attr( $column_name['title'] ); ?>"> |
|
37 | - <?php if ( has_action( 'wpinv_user_invoices_column_' . $column_id ) ) : ?> |
|
38 | - <?php do_action( 'wpinv_user_invoices_column_' . $column_id, $invoice ); ?> |
|
35 | + <?php foreach (wpinv_get_user_invoices_columns() as $column_id => $column_name) : ?> |
|
36 | + <td class="<?php echo esc_attr($column_id); ?> <?php echo (!empty($column_name['class']) ? $column_name['class'] : ''); ?>" data-title="<?php echo esc_attr($column_name['title']); ?>"> |
|
37 | + <?php if (has_action('wpinv_user_invoices_column_' . $column_id)) : ?> |
|
38 | + <?php do_action('wpinv_user_invoices_column_' . $column_id, $invoice); ?> |
|
39 | 39 | |
40 | - <?php elseif ( 'invoice-number' === $column_id ) : ?> |
|
41 | - <a href="<?php echo esc_url( $invoice->get_view_url() ); ?>"> |
|
42 | - <?php echo _x( '#', 'hash before invoice number', 'invoicing' ) . $invoice->get_number(); ?> |
|
40 | + <?php elseif ('invoice-number' === $column_id) : ?> |
|
41 | + <a href="<?php echo esc_url($invoice->get_view_url()); ?>"> |
|
42 | + <?php echo _x('#', 'hash before invoice number', 'invoicing') . $invoice->get_number(); ?> |
|
43 | 43 | </a> |
44 | 44 | |
45 | - <?php elseif ( 'invoice-date' === $column_id ) : $date = wpinv_get_invoice_date( $invoice->ID ); $dateYMD = wpinv_get_invoice_date( $invoice->ID, 'Y-m-d H:i:s' ); ?> |
|
46 | - <time datetime="<?php echo strtotime( $dateYMD ); ?>" title="<?php echo $dateYMD; ?>"><?php echo $date; ?></time> |
|
45 | + <?php elseif ('invoice-date' === $column_id) : $date = wpinv_get_invoice_date($invoice->ID); $dateYMD = wpinv_get_invoice_date($invoice->ID, 'Y-m-d H:i:s'); ?> |
|
46 | + <time datetime="<?php echo strtotime($dateYMD); ?>" title="<?php echo $dateYMD; ?>"><?php echo $date; ?></time> |
|
47 | 47 | |
48 | - <?php elseif ( 'invoice-status' === $column_id ) : ?> |
|
49 | - <?php echo wpinv_invoice_status_label( $invoice_status, $invoice->get_status( true ) ) ; ?> |
|
48 | + <?php elseif ('invoice-status' === $column_id) : ?> |
|
49 | + <?php echo wpinv_invoice_status_label($invoice_status, $invoice->get_status(true)); ?> |
|
50 | 50 | |
51 | - <?php elseif ( 'invoice-total' === $column_id ) : ?> |
|
52 | - <?php echo $invoice->get_total( true ); ?> |
|
51 | + <?php elseif ('invoice-total' === $column_id) : ?> |
|
52 | + <?php echo $invoice->get_total(true); ?> |
|
53 | 53 | |
54 | - <?php elseif ( 'invoice-actions' === $column_id ) : ?> |
|
54 | + <?php elseif ('invoice-actions' === $column_id) : ?> |
|
55 | 55 | <?php |
56 | 56 | $actions = array( |
57 | 57 | 'pay' => array( |
58 | 58 | 'url' => $invoice->get_checkout_payment_url(), |
59 | - 'name' => __( 'Pay Now', 'invoicing' ), |
|
59 | + 'name' => __('Pay Now', 'invoicing'), |
|
60 | 60 | 'class' => 'btn-success' |
61 | 61 | ), |
62 | 62 | 'print' => array( |
63 | 63 | 'url' => $invoice->get_view_url(), |
64 | - 'name' => __( 'Print', 'invoicing' ), |
|
64 | + 'name' => __('Print', 'invoicing'), |
|
65 | 65 | 'class' => 'btn-primary', |
66 | 66 | 'attrs' => 'target="_blank"' |
67 | 67 | ) |
68 | 68 | ); |
69 | 69 | |
70 | - if ( ! $invoice->needs_payment() ) { |
|
71 | - unset( $actions['pay'] ); |
|
70 | + if (!$invoice->needs_payment()) { |
|
71 | + unset($actions['pay']); |
|
72 | 72 | } |
73 | 73 | |
74 | - if ( $actions = apply_filters( 'wpinv_user_invoices_actions', $actions, $invoice ) ) { |
|
75 | - foreach ( $actions as $key => $action ) { |
|
74 | + if ($actions = apply_filters('wpinv_user_invoices_actions', $actions, $invoice)) { |
|
75 | + foreach ($actions as $key => $action) { |
|
76 | 76 | $class = !empty($action['class']) ? sanitize_html_class($action['class']) : ''; |
77 | - echo '<a href="' . esc_url( $action['url'] ) . '" class="btn btn-sm ' . $class . ' ' . sanitize_html_class( $key ) . '" ' . ( !empty($action['attrs']) ? $action['attrs'] : '' ) . '>' . $action['name'] . '</a>'; |
|
77 | + echo '<a href="' . esc_url($action['url']) . '" class="btn btn-sm ' . $class . ' ' . sanitize_html_class($key) . '" ' . (!empty($action['attrs']) ? $action['attrs'] : '') . '>' . $action['name'] . '</a>'; |
|
78 | 78 | } |
79 | 79 | } |
80 | 80 | ?> |
@@ -86,26 +86,26 @@ discard block |
||
86 | 86 | </tbody> |
87 | 87 | </table> |
88 | 88 | |
89 | - <?php do_action( 'wpinv_before_user_invoices_pagination' ); ?> |
|
89 | + <?php do_action('wpinv_before_user_invoices_pagination'); ?> |
|
90 | 90 | |
91 | - <?php if ( 1 < $user_invoices->max_num_pages ) : ?> |
|
91 | + <?php if (1 < $user_invoices->max_num_pages) : ?> |
|
92 | 92 | <div class="invoicing-Pagination"> |
93 | 93 | <?php |
94 | 94 | $big = 999999; |
95 | - echo paginate_links( array( |
|
96 | - 'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ), |
|
95 | + echo paginate_links(array( |
|
96 | + 'base' => str_replace($big, '%#%', esc_url(get_pagenum_link($big))), |
|
97 | 97 | 'format' => '?paged=%#%', |
98 | - 'current' => max( 1, get_query_var( 'paged' ) ), |
|
98 | + 'current' => max(1, get_query_var('paged')), |
|
99 | 99 | 'total' => $user_invoices->max_num_pages |
100 | - ) ); |
|
100 | + )); |
|
101 | 101 | ?> |
102 | 102 | </div> |
103 | 103 | <?php endif; ?> |
104 | 104 | |
105 | 105 | <?php } else { ?> |
106 | 106 | <div class="wpinv-empty alert-info"> |
107 | - <?php _e( 'No invoice has been made yet.', 'invoicing' ); ?> |
|
107 | + <?php _e('No invoice has been made yet.', 'invoicing'); ?> |
|
108 | 108 | </div> |
109 | 109 | <?php } ?> |
110 | 110 | |
111 | -<?php do_action( 'wpinv_after_user_invoices', $has_invoices ); ?> |
|
111 | +<?php do_action('wpinv_after_user_invoices', $has_invoices); ?> |
@@ -2,11 +2,11 @@ |
||
2 | 2 | global $wpi_invoice; |
3 | 3 | |
4 | 4 | $success_page_uri = wpinv_get_success_page_uri(); |
5 | -if ( !empty( $wpi_invoice ) ) { |
|
6 | - $success_page_uri = add_query_arg( 'invoice_key', $wpi_invoice->get_key(), $success_page_uri ); |
|
5 | +if (!empty($wpi_invoice)) { |
|
6 | + $success_page_uri = add_query_arg('invoice_key', $wpi_invoice->get_key(), $success_page_uri); |
|
7 | 7 | } |
8 | 8 | ?> |
9 | 9 | <div id="wpinv-payment-processing"> |
10 | - <p><?php echo wp_sprintf( __( 'Your payment is processing. This page will reload automatically in 10 seconds. If it does not, click <a href="%s">here</a>.', 'invoicing' ), $success_page_uri ); ?> <i class="fa fa-spin fa-refresh"></i></p> |
|
10 | + <p><?php echo wp_sprintf(__('Your payment is processing. This page will reload automatically in 10 seconds. If it does not, click <a href="%s">here</a>.', 'invoicing'), $success_page_uri); ?> <i class="fa fa-spin fa-refresh"></i></p> |
|
11 | 11 | <script type="text/javascript">setTimeout(function(){ window.location = '<?php echo $success_page_uri; ?>'; }, 10000);</script> |
12 | 12 | </div> |
13 | 13 | \ No newline at end of file |