@@ -7,20 +7,20 @@ discard block |
||
7 | 7 | * @version 1.0.19 |
8 | 8 | */ |
9 | 9 | |
10 | -defined( 'ABSPATH' ) || exit; |
|
10 | +defined('ABSPATH') || exit; |
|
11 | 11 | |
12 | 12 | // Fetch the invoice. |
13 | -if ( empty( $invoice ) ) { |
|
14 | - $invoice = new WPInv_Invoice( $GLOBALS['post'] ); |
|
13 | +if (empty($invoice)) { |
|
14 | + $invoice = new WPInv_Invoice($GLOBALS['post']); |
|
15 | 15 | } |
16 | 16 | |
17 | 17 | // Abort if it does not exist. |
18 | -if ( $invoice->get_id() == 0 ) { |
|
18 | +if ($invoice->get_id() == 0) { |
|
19 | 19 | exit; |
20 | 20 | } |
21 | 21 | |
22 | 22 | // Fires before printing an invoice. |
23 | -do_action( 'wpinv_invoice_print_before_display', $invoice ); |
|
23 | +do_action('wpinv_invoice_print_before_display', $invoice); |
|
24 | 24 | |
25 | 25 | ?><!DOCTYPE html> |
26 | 26 | |
@@ -29,16 +29,16 @@ discard block |
||
29 | 29 | |
30 | 30 | <head> |
31 | 31 | |
32 | - <meta charset="<?php bloginfo( 'charset' ); ?>"> |
|
32 | + <meta charset="<?php bloginfo('charset'); ?>"> |
|
33 | 33 | <meta name="viewport" content="width=device-width, initial-scale=1.0" > |
34 | 34 | |
35 | 35 | <meta name="robots" content="noindex,nofollow"> |
36 | 36 | |
37 | 37 | <link rel="profile" href="https://gmpg.org/xfn/11"> |
38 | 38 | |
39 | - <title>#<?php echo esc_html( $invoice->get_number() ); ?></title> |
|
39 | + <title>#<?php echo esc_html($invoice->get_number()); ?></title> |
|
40 | 40 | |
41 | - <?php do_action( 'wpinv_invoice_print_head', $invoice ); ?> |
|
41 | + <?php do_action('wpinv_invoice_print_head', $invoice); ?> |
|
42 | 42 | |
43 | 43 | <style type="text/css"> |
44 | 44 | .body{ |
@@ -70,8 +70,8 @@ discard block |
||
70 | 70 | <body class="body wpinv wpinv-print" style="font-weight: 400;"> |
71 | 71 | |
72 | 72 | <div id="wpinv-print-inner"> |
73 | - <?php do_action( 'getpaid_invoice', $invoice ); ?> |
|
74 | - <?php do_action( 'wpinv_invoice_print_body_end', $invoice ); ?> |
|
73 | + <?php do_action('getpaid_invoice', $invoice); ?> |
|
74 | + <?php do_action('wpinv_invoice_print_body_end', $invoice); ?> |
|
75 | 75 | </div> |
76 | 76 | </body> |
77 | 77 |