@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php |
|
1 | + <?php |
|
2 | 2 | /** |
3 | 3 | * Displays actions on the left side of the invoice header. |
4 | 4 | * |
@@ -8,24 +8,24 @@ discard block |
||
8 | 8 | * @var WPInv_Invoice $invoice |
9 | 9 | */ |
10 | 10 | |
11 | -defined( 'ABSPATH' ) || exit; |
|
11 | + defined( 'ABSPATH' ) || exit; |
|
12 | 12 | |
13 | -?> |
|
13 | + ?> |
|
14 | 14 | |
15 | 15 | <div class="getpaid-header-left-actions"> |
16 | 16 | |
17 | 17 | <?php if ( $invoice->is_type( 'invoice' ) && $invoice->needs_payment() && ! $invoice->is_held() ) : ?> |
18 | - <a class="btn btn-sm btn-primary m-1 d-inline-block invoice-action-pay" href="<?php echo esc_url( $invoice->get_checkout_payment_url() ); ?>"> |
|
18 | + <a class="btn btn-sm btn-primary m-1 d-inline-block invoice-action-pay" href="<?php echo esc_url( $invoice->get_checkout_payment_url() ); ?>"> |
|
19 | 19 | <?php esc_html_e( 'Pay For Invoice', 'invoicing' ); ?> |
20 | - </a> |
|
20 | + </a> |
|
21 | 21 | <?php endif; ?> |
22 | - |
|
22 | + |
|
23 | 23 | <?php if ( $invoice->is_type( 'invoice' ) && $invoice->is_paid() ) : ?> |
24 | - <a class="btn btn-sm btn-info m-1 d-inline-block invoice-action-receipt" href="<?php echo esc_url( $invoice->get_receipt_url() ); ?>"> |
|
24 | + <a class="btn btn-sm btn-info m-1 d-inline-block invoice-action-receipt" href="<?php echo esc_url( $invoice->get_receipt_url() ); ?>"> |
|
25 | 25 | <?php esc_html_e( 'View Receipt', 'invoicing' ); ?> |
26 | - </a> |
|
26 | + </a> |
|
27 | 27 | <?php endif; ?> |
28 | - |
|
28 | + |
|
29 | 29 | <?php do_action( 'wpinv_invoice_display_left_actions', $invoice ); ?> |
30 | 30 | |
31 | 31 | </div> |
@@ -0,0 +1,1 @@ |
||
1 | + |
|
0 | 2 | \ No newline at end of file |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php |
|
1 | + <?php |
|
2 | 2 | /** |
3 | 3 | * Displays left side of the invoice title. |
4 | 4 | * |
@@ -7,24 +7,24 @@ discard block |
||
7 | 7 | * @version 1.0.19 |
8 | 8 | */ |
9 | 9 | |
10 | -defined( 'ABSPATH' ) || exit; |
|
10 | + defined( 'ABSPATH' ) || exit; |
|
11 | 11 | |
12 | -$logo_width = wpinv_get_option( 'logo_width' ); |
|
13 | -$logo_height = wpinv_get_option( 'logo_height' ); |
|
12 | + $logo_width = wpinv_get_option( 'logo_width' ); |
|
13 | + $logo_height = wpinv_get_option( 'logo_height' ); |
|
14 | 14 | |
15 | -?> |
|
16 | -<a target="_blank" class="logo-link text-dark" href="<?php echo esc_url( wpinv_get_business_website() ); ?>"> |
|
15 | + ?> |
|
16 | + <a target="_blank" class="logo-link text-dark" href="<?php echo esc_url( wpinv_get_business_website() ); ?>"> |
|
17 | 17 | |
18 | 18 | <?php if ( $logo = wpinv_get_business_logo() ) : ?> |
19 | - |
|
19 | + |
|
20 | 20 | <?php if ( ! empty( $logo_width ) && ! empty( $logo_height ) ) : ?> |
21 | - <img class="logo" style="max-width:100%; width:<?php echo absint( $logo_width ); ?>px; height:<?php echo absint( $logo_height ); ?>px;" src="<?php echo esc_url( $logo ); ?>"> |
|
21 | + <img class="logo" style="max-width:100%; width:<?php echo absint( $logo_width ); ?>px; height:<?php echo absint( $logo_height ); ?>px;" src="<?php echo esc_url( $logo ); ?>"> |
|
22 | 22 | <?php else : ?> |
23 | - <img class="logo" style="max-width:100%;" src="<?php echo esc_url( $logo ); ?>"> |
|
23 | + <img class="logo" style="max-width:100%;" src="<?php echo esc_url( $logo ); ?>"> |
|
24 | 24 | <?php endif; ?> |
25 | - |
|
25 | + |
|
26 | 26 | <?php else : ?> |
27 | - <h1 class="h3"><?php echo esc_html( wpinv_get_business_name() ); ?></h1> |
|
27 | + <h1 class="h3"><?php echo esc_html( wpinv_get_business_name() ); ?></h1> |
|
28 | 28 | <?php endif; ?> |
29 | 29 | |
30 | 30 | </a> |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php |
|
1 | + <?php |
|
2 | 2 | /** |
3 | 3 | * Displays the invoice details. |
4 | 4 | * |
@@ -7,10 +7,10 @@ discard block |
||
7 | 7 | * @version 1.0.19 |
8 | 8 | */ |
9 | 9 | |
10 | -defined( 'ABSPATH' ) || exit; |
|
11 | - |
|
12 | -?> |
|
10 | + defined( 'ABSPATH' ) || exit; |
|
13 | 11 | |
12 | + ?> |
|
13 | + |
|
14 | 14 | <?php do_action( 'getpaid_before_invoice_details_main', $invoice ); ?> |
15 | 15 | |
16 | 16 | <div class="getpaid-invoice-details mt-3 mb-3"> |
@@ -28,5 +28,5 @@ discard block |
||
28 | 28 | </div> |
29 | 29 | |
30 | 30 | <?php do_action( 'getpaid_after_invoice_details_main', $invoice ); ?> |
31 | - |
|
32 | -<?php |
|
31 | + |
|
32 | + <?php |
@@ -1,69 +1,69 @@ |
||
1 | -<?php |
|
1 | + <?php |
|
2 | 2 | |
3 | -if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) { |
|
4 | - exit; |
|
3 | + if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) { |
|
4 | + exit; |
|
5 | 5 | } |
6 | 6 | |
7 | -global $wpdb; |
|
7 | + global $wpdb; |
|
8 | 8 | |
9 | -if ( get_option( 'wpinv_remove_data_on_invoice_unistall' ) ) { |
|
9 | + if ( get_option( 'wpinv_remove_data_on_invoice_unistall' ) ) { |
|
10 | 10 | |
11 | - // Fetch settings. |
|
12 | - $settings = get_option( 'wpinv_settings' ); |
|
11 | + // Fetch settings. |
|
12 | + $settings = get_option( 'wpinv_settings' ); |
|
13 | 13 | |
14 | - // Delete pages. |
|
15 | - $pages = array( 'checkout_page', 'success_page', 'failure_page', 'invoice_history_page', 'quote_history_page', 'invoice_subscription_page' ); |
|
16 | - foreach ( $pages as $page ) { |
|
17 | - if ( is_array( $settings ) && ! empty( $settings[ $page ] ) ) { |
|
18 | - wp_delete_post( $settings[ $page ], true ); |
|
14 | + // Delete pages. |
|
15 | + $pages = array( 'checkout_page', 'success_page', 'failure_page', 'invoice_history_page', 'quote_history_page', 'invoice_subscription_page' ); |
|
16 | + foreach ( $pages as $page ) { |
|
17 | + if ( is_array( $settings ) && ! empty( $settings[ $page ] ) ) { |
|
18 | + wp_delete_post( $settings[ $page ], true ); |
|
19 | + } |
|
19 | 20 | } |
20 | - } |
|
21 | 21 | |
22 | - // Delete options. |
|
23 | - $wpdb->query( "DELETE FROM {$wpdb->options} WHERE option_name LIKE 'wpinv\_%';" ); |
|
22 | + // Delete options. |
|
23 | + $wpdb->query( "DELETE FROM {$wpdb->options} WHERE option_name LIKE 'wpinv\_%';" ); |
|
24 | 24 | |
25 | - // Delete posts. |
|
26 | - $wpdb->query( |
|
27 | - "DELETE a,b |
|
25 | + // Delete posts. |
|
26 | + $wpdb->query( |
|
27 | + "DELETE a,b |
|
28 | 28 | FROM {$wpdb->posts} a |
29 | 29 | LEFT JOIN {$wpdb->postmeta} b |
30 | 30 | ON (a.ID = b.post_id) |
31 | 31 | WHERE a.post_type |
32 | 32 | IN ( 'wpi_invoice', 'wpi_item', 'wpi_discount', 'wpi_quote' );" |
33 | - ); |
|
33 | + ); |
|
34 | 34 | |
35 | - // Delete invoice notes. |
|
36 | - $wpdb->query( |
|
37 | - "DELETE a,b |
|
35 | + // Delete invoice notes. |
|
36 | + $wpdb->query( |
|
37 | + "DELETE a,b |
|
38 | 38 | FROM {$wpdb->comments} a |
39 | 39 | LEFT JOIN {$wpdb->commentmeta} b |
40 | 40 | ON (a.comment_ID = b.comment_id) |
41 | 41 | WHERE a.comment_type = 'wpinv_note'" |
42 | - ); |
|
42 | + ); |
|
43 | 43 | |
44 | - // Delete user meta. |
|
45 | - $wpdb->query( |
|
46 | - "DELETE |
|
44 | + // Delete user meta. |
|
45 | + $wpdb->query( |
|
46 | + "DELETE |
|
47 | 47 | FROM {$wpdb->usermeta} |
48 | 48 | WHERE meta_key LIKE '%_wpinv_%' OR meta_key LIKE '%_wpi_%';" |
49 | - ); |
|
49 | + ); |
|
50 | 50 | |
51 | - // Cleanup Cron Schedule |
|
52 | - wp_clear_scheduled_hook( 'wp_session_garbage_collection' ); |
|
53 | - wp_clear_scheduled_hook( 'wpinv_register_schedule_event_twicedaily' ); |
|
54 | - wp_clear_scheduled_hook( 'wpinv_register_schedule_event_daily' ); |
|
51 | + // Cleanup Cron Schedule |
|
52 | + wp_clear_scheduled_hook( 'wp_session_garbage_collection' ); |
|
53 | + wp_clear_scheduled_hook( 'wpinv_register_schedule_event_twicedaily' ); |
|
54 | + wp_clear_scheduled_hook( 'wpinv_register_schedule_event_daily' ); |
|
55 | 55 | |
56 | - // Clear any cached data that has been removed |
|
57 | - wp_cache_flush(); |
|
56 | + // Clear any cached data that has been removed |
|
57 | + wp_cache_flush(); |
|
58 | 58 | |
59 | - // Delete tables. |
|
60 | - $tables = array( |
|
61 | - "{$wpdb->prefix}wpinv_subscriptions", |
|
62 | - "{$wpdb->prefix}getpaid_invoices", |
|
63 | - "{$wpdb->prefix}getpaid_invoice_items", |
|
64 | - ); |
|
59 | + // Delete tables. |
|
60 | + $tables = array( |
|
61 | + "{$wpdb->prefix}wpinv_subscriptions", |
|
62 | + "{$wpdb->prefix}getpaid_invoices", |
|
63 | + "{$wpdb->prefix}getpaid_invoice_items", |
|
64 | + ); |
|
65 | 65 | |
66 | - foreach ( $tables as $table ) { |
|
67 | - $wpdb->query( "DROP TABLE IF EXISTS {$table}" ); |
|
68 | - } |
|
66 | + foreach ( $tables as $table ) { |
|
67 | + $wpdb->query( "DROP TABLE IF EXISTS {$table}" ); |
|
68 | + } |
|
69 | 69 | } |
@@ -1,2 +1,2 @@ |
||
1 | -<?php |
|
1 | + <?php |
|
2 | 2 | # Silence is golden. |
3 | 3 | \ No newline at end of file |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php |
|
1 | + <?php |
|
2 | 2 | /** |
3 | 3 | * Displays right side of the invoice header. |
4 | 4 | * |
@@ -8,56 +8,56 @@ discard block |
||
8 | 8 | * @var WPInv_Invoice $invoice |
9 | 9 | */ |
10 | 10 | |
11 | -defined( 'ABSPATH' ) || exit; |
|
11 | + defined( 'ABSPATH' ) || exit; |
|
12 | 12 | |
13 | -?> |
|
13 | + ?> |
|
14 | 14 | |
15 | 15 | <div class="getpaid-header-right-actions"> |
16 | 16 | |
17 | 17 | <?php |
18 | 18 | |
19 | - $actions = array(); |
|
19 | + $actions = array(); |
|
20 | 20 | |
21 | - echo sprintf( |
|
22 | - '<a href="javascript:void(0)" class="btn btn-sm m-1 d-inline-block btn-secondary text-white invoice-action-print d-none d-lg-inline-block" onclick="window.print();">%s</a>', |
|
23 | - sprintf( |
|
24 | - esc_html__( 'Print %s', 'invoicing' ), |
|
25 | - esc_html( ucfirst( $invoice->get_invoice_quote_type() ) ) |
|
26 | - ) |
|
27 | - ); |
|
28 | - |
|
29 | - if ( is_user_logged_in() ) { |
|
30 | - |
|
31 | - $actions[] = sprintf( |
|
32 | - '<a href="%s" class="btn btn-sm btn-secondary text-white m-1 d-inline-block invoice-action-history">%s</a>', |
|
33 | - esc_url( wpinv_get_history_page_uri( $invoice->get_post_type() ) ), |
|
21 | + echo sprintf( |
|
22 | + '<a href="javascript:void(0)" class="btn btn-sm m-1 d-inline-block btn-secondary text-white invoice-action-print d-none d-lg-inline-block" onclick="window.print();">%s</a>', |
|
34 | 23 | sprintf( |
35 | - __( '%s History', 'invoicing' ), |
|
24 | + esc_html__( 'Print %s', 'invoicing' ), |
|
36 | 25 | esc_html( ucfirst( $invoice->get_invoice_quote_type() ) ) |
37 | 26 | ) |
38 | 27 | ); |
39 | 28 | |
40 | - } |
|
29 | + if ( is_user_logged_in() ) { |
|
41 | 30 | |
42 | - if ( wpinv_current_user_can_manage_invoicing() ) { |
|
31 | + $actions[] = sprintf( |
|
32 | + '<a href="%s" class="btn btn-sm btn-secondary text-white m-1 d-inline-block invoice-action-history">%s</a>', |
|
33 | + esc_url( wpinv_get_history_page_uri( $invoice->get_post_type() ) ), |
|
34 | + sprintf( |
|
35 | + __( '%s History', 'invoicing' ), |
|
36 | + esc_html( ucfirst( $invoice->get_invoice_quote_type() ) ) |
|
37 | + ) |
|
38 | + ); |
|
43 | 39 | |
44 | - $actions[] = sprintf( |
|
45 | - '<a href="%s" class="btn btn-sm btn-secondary text-white m-1 d-inline-block invoice-action-edit">%s</a>', |
|
46 | - esc_url( get_edit_post_link( $invoice->get_id() ) ), |
|
47 | - sprintf( |
|
48 | - __( 'Edit %s', 'invoicing' ), |
|
49 | - esc_html( ucfirst( $invoice->get_invoice_quote_type() ) ) |
|
50 | - ) |
|
51 | - ); |
|
40 | + } |
|
41 | + |
|
42 | + if ( wpinv_current_user_can_manage_invoicing() ) { |
|
52 | 43 | |
53 | - } |
|
44 | + $actions[] = sprintf( |
|
45 | + '<a href="%s" class="btn btn-sm btn-secondary text-white m-1 d-inline-block invoice-action-edit">%s</a>', |
|
46 | + esc_url( get_edit_post_link( $invoice->get_id() ) ), |
|
47 | + sprintf( |
|
48 | + __( 'Edit %s', 'invoicing' ), |
|
49 | + esc_html( ucfirst( $invoice->get_invoice_quote_type() ) ) |
|
50 | + ) |
|
51 | + ); |
|
54 | 52 | |
55 | - $actions = apply_filters( 'getpaid_invoice_header_right_actions_array', $actions, $invoice ); |
|
56 | - echo wp_kses_post( implode( '', $actions ) ); |
|
53 | + } |
|
57 | 54 | |
58 | - ?> |
|
55 | + $actions = apply_filters( 'getpaid_invoice_header_right_actions_array', $actions, $invoice ); |
|
56 | + echo wp_kses_post( implode( '', $actions ) ); |
|
59 | 57 | |
58 | + ?> |
|
59 | + |
|
60 | 60 | <?php do_action( 'wpinv_invoice_display_right_actions', $invoice ); ?> |
61 | - </div> |
|
61 | + </div> |
|
62 | 62 | |
63 | -<?php |
|
63 | + <?php |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php |
|
1 | + <?php |
|
2 | 2 | |
3 | 3 | /** |
4 | 4 | * Displays invoice cart totals |
@@ -9,14 +9,14 @@ discard block |
||
9 | 9 | * @var WPInv_Invoice $invoice |
10 | 10 | */ |
11 | 11 | |
12 | -defined( 'ABSPATH' ) || exit; |
|
12 | + defined( 'ABSPATH' ) || exit; |
|
13 | 13 | |
14 | -// Totals rows. |
|
15 | -$totals = getpaid_invoice_totals_rows( $invoice ); |
|
14 | + // Totals rows. |
|
15 | + $totals = getpaid_invoice_totals_rows( $invoice ); |
|
16 | 16 | |
17 | -do_action( 'getpaid_before_invoice_line_totals', $invoice, $totals ); |
|
17 | + do_action( 'getpaid_before_invoice_line_totals', $invoice, $totals ); |
|
18 | 18 | |
19 | -?> |
|
19 | + ?> |
|
20 | 20 | <div class='getpaid-invoice-line-totals'> |
21 | 21 | <div class="row"> |
22 | 22 | <div class="col-12 offset-sm-6 col-sm-6 border-sm-left pl-sm-0"> |
@@ -35,65 +35,65 @@ discard block |
||
35 | 35 | |
36 | 36 | <?php |
37 | 37 | |
38 | - // Total tax. |
|
39 | - if ( 'tax' === $key ) { |
|
40 | - wpinv_the_price( $invoice->get_total_tax(), $invoice->get_currency() ); |
|
38 | + // Total tax. |
|
39 | + if ( 'tax' === $key ) { |
|
40 | + wpinv_the_price( $invoice->get_total_tax(), $invoice->get_currency() ); |
|
41 | 41 | |
42 | - if ( wpinv_use_taxes() && ! $invoice->get_disable_taxes() ) { |
|
42 | + if ( wpinv_use_taxes() && ! $invoice->get_disable_taxes() ) { |
|
43 | 43 | |
44 | - $taxes = $invoice->get_total_tax(); |
|
45 | - if ( empty( $taxes ) && GetPaid_Payment_Form_Submission_Taxes::is_eu_transaction( $invoice->get_country() ) ) { |
|
46 | - echo ' <em class="text-muted small">'; |
|
47 | - _x( '(Reverse charged)', 'This is a legal term for reverse charging tax in the EU', 'invoicing' ); |
|
48 | - echo '</em>'; |
|
44 | + $taxes = $invoice->get_total_tax(); |
|
45 | + if ( empty( $taxes ) && GetPaid_Payment_Form_Submission_Taxes::is_eu_transaction( $invoice->get_country() ) ) { |
|
46 | + echo ' <em class="text-muted small">'; |
|
47 | + _x( '(Reverse charged)', 'This is a legal term for reverse charging tax in the EU', 'invoicing' ); |
|
48 | + echo '</em>'; |
|
49 | + } |
|
49 | 50 | } |
50 | 51 | } |
51 | - } |
|
52 | 52 | |
53 | - // Check if field starts with tax__. |
|
54 | - if ( 0 === strpos( $key, 'tax__' ) ) { |
|
55 | - $tax_amount = $invoice->get_tax_total_by_name( str_replace( 'tax__', '', $key ) ); |
|
56 | - wpinv_the_price( $tax_amount, $invoice->get_currency() ); |
|
53 | + // Check if field starts with tax__. |
|
54 | + if ( 0 === strpos( $key, 'tax__' ) ) { |
|
55 | + $tax_amount = $invoice->get_tax_total_by_name( str_replace( 'tax__', '', $key ) ); |
|
56 | + wpinv_the_price( $tax_amount, $invoice->get_currency() ); |
|
57 | 57 | |
58 | - if ( wpinv_use_taxes() && ! $invoice->get_disable_taxes() ) { |
|
58 | + if ( wpinv_use_taxes() && ! $invoice->get_disable_taxes() ) { |
|
59 | 59 | |
60 | - if ( empty( $tax_amount ) && GetPaid_Payment_Form_Submission_Taxes::is_eu_transaction( $invoice->get_country() ) ) { |
|
61 | - echo ' <em class="text-muted small">'; |
|
62 | - _x( '(Reverse charged)', 'This is a legal term for reverse charging tax in the EU', 'invoicing' ); |
|
63 | - echo '</em>'; |
|
60 | + if ( empty( $tax_amount ) && GetPaid_Payment_Form_Submission_Taxes::is_eu_transaction( $invoice->get_country() ) ) { |
|
61 | + echo ' <em class="text-muted small">'; |
|
62 | + _x( '(Reverse charged)', 'This is a legal term for reverse charging tax in the EU', 'invoicing' ); |
|
63 | + echo '</em>'; |
|
64 | + } |
|
64 | 65 | } |
65 | 66 | } |
66 | - } |
|
67 | 67 | |
68 | - // Total Fee. |
|
69 | - if ( 'fee' === $key ) { |
|
70 | - wpinv_the_price( $invoice->get_total_fees(), $invoice->get_currency() ); |
|
71 | - } |
|
68 | + // Total Fee. |
|
69 | + if ( 'fee' === $key ) { |
|
70 | + wpinv_the_price( $invoice->get_total_fees(), $invoice->get_currency() ); |
|
71 | + } |
|
72 | 72 | |
73 | - // Total discount. |
|
74 | - if ( 'discount' === $key ) { |
|
75 | - wpinv_the_price( $invoice->get_total_discount(), $invoice->get_currency() ); |
|
76 | - } |
|
73 | + // Total discount. |
|
74 | + if ( 'discount' === $key ) { |
|
75 | + wpinv_the_price( $invoice->get_total_discount(), $invoice->get_currency() ); |
|
76 | + } |
|
77 | 77 | |
78 | - // Shipping. |
|
79 | - if ( 'shipping' === $key ) { |
|
80 | - wpinv_the_price( $invoice->get_shipping(), $invoice->get_currency() ); |
|
81 | - } |
|
78 | + // Shipping. |
|
79 | + if ( 'shipping' === $key ) { |
|
80 | + wpinv_the_price( $invoice->get_shipping(), $invoice->get_currency() ); |
|
81 | + } |
|
82 | 82 | |
83 | - // Sub total. |
|
84 | - if ( 'subtotal' === $key ) { |
|
85 | - wpinv_the_price( $invoice->get_subtotal(), $invoice->get_currency() ); |
|
86 | - } |
|
83 | + // Sub total. |
|
84 | + if ( 'subtotal' === $key ) { |
|
85 | + wpinv_the_price( $invoice->get_subtotal(), $invoice->get_currency() ); |
|
86 | + } |
|
87 | 87 | |
88 | - // Total. |
|
89 | - if ( 'total' === $key ) { |
|
90 | - wpinv_the_price( $invoice->get_total(), $invoice->get_currency() ); |
|
91 | - } |
|
88 | + // Total. |
|
89 | + if ( 'total' === $key ) { |
|
90 | + wpinv_the_price( $invoice->get_total(), $invoice->get_currency() ); |
|
91 | + } |
|
92 | 92 | |
93 | - // Fires when printing a cart total. |
|
94 | - do_action( "getpaid_invoice_cart_totals_$key", $invoice ); |
|
93 | + // Fires when printing a cart total. |
|
94 | + do_action( "getpaid_invoice_cart_totals_$key", $invoice ); |
|
95 | 95 | |
96 | - ?> |
|
96 | + ?> |
|
97 | 97 | |
98 | 98 | </div> |
99 | 99 | </div> |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php |
|
1 | + <?php |
|
2 | 2 | /** |
3 | 3 | * Displays an invoice. |
4 | 4 | * |
@@ -7,9 +7,9 @@ discard block |
||
7 | 7 | * @version 1.0.19 |
8 | 8 | */ |
9 | 9 | |
10 | -defined( 'ABSPATH' ) || exit; |
|
10 | + defined( 'ABSPATH' ) || exit; |
|
11 | 11 | |
12 | -?> |
|
12 | + ?> |
|
13 | 13 | |
14 | 14 | <div class="bsui"> |
15 | 15 | |
@@ -17,28 +17,28 @@ discard block |
||
17 | 17 | |
18 | 18 | <?php |
19 | 19 | |
20 | - // Fires when printing the header. |
|
21 | - do_action( 'getpaid_invoice_header', $invoice ); |
|
20 | + // Fires when printing the header. |
|
21 | + do_action( 'getpaid_invoice_header', $invoice ); |
|
22 | 22 | |
23 | - // Print the opening wrapper. |
|
24 | - echo '<div class="container bg-white getpaid-print-no-border border mt-4 mb-4 p-4 position-relative flex-grow-1">'; |
|
23 | + // Print the opening wrapper. |
|
24 | + echo '<div class="container bg-white getpaid-print-no-border border mt-4 mb-4 p-4 position-relative flex-grow-1">'; |
|
25 | 25 | |
26 | - // Print notifications. |
|
27 | - wpinv_print_errors(); |
|
26 | + // Print notifications. |
|
27 | + wpinv_print_errors(); |
|
28 | 28 | |
29 | - // Fires when printing the invoice details. |
|
30 | - do_action( 'getpaid_invoice_details', $invoice ); |
|
29 | + // Fires when printing the invoice details. |
|
30 | + do_action( 'getpaid_invoice_details', $invoice ); |
|
31 | 31 | |
32 | - // Fires when printing the invoice line items. |
|
33 | - do_action( 'getpaid_invoice_line_items', $invoice ); |
|
32 | + // Fires when printing the invoice line items. |
|
33 | + do_action( 'getpaid_invoice_line_items', $invoice ); |
|
34 | 34 | |
35 | - // Print the closing wrapper. |
|
36 | - echo '</div>'; |
|
35 | + // Print the closing wrapper. |
|
36 | + echo '</div>'; |
|
37 | 37 | |
38 | - // Fires when printing the invoice footer. |
|
39 | - do_action( 'getpaid_invoice_footer', $invoice ); |
|
38 | + // Fires when printing the invoice footer. |
|
39 | + do_action( 'getpaid_invoice_footer', $invoice ); |
|
40 | 40 | |
41 | - ?> |
|
41 | + ?> |
|
42 | 42 | |
43 | 43 | </div> |
44 | 44 | </div> |