@@ -7,18 +7,18 @@ discard block |
||
7 | 7 | * @version 1.0.19 |
8 | 8 | */ |
9 | 9 | |
10 | -defined( 'ABSPATH' ) || exit; |
|
10 | +defined('ABSPATH') || exit; |
|
11 | 11 | |
12 | -$watermark = wpinv_watermark( $invoice->get_id() ) |
|
12 | +$watermark = wpinv_watermark($invoice->get_id()) |
|
13 | 13 | |
14 | 14 | ?> |
15 | 15 | |
16 | - <?php do_action( 'getpaid_before_invoice_details_top', $invoice ); ?> |
|
16 | + <?php do_action('getpaid_before_invoice_details_top', $invoice); ?> |
|
17 | 17 | |
18 | - <?php if ( ! empty( $watermark ) ) : ?> |
|
18 | + <?php if (!empty($watermark)) : ?> |
|
19 | 19 | |
20 | 20 | <div class="getpaid-watermark no-print"> |
21 | - <p><?php echo sanitize_text_field( $watermark ) ?></p> |
|
21 | + <p><?php echo sanitize_text_field($watermark) ?></p> |
|
22 | 22 | </div> |
23 | 23 | |
24 | 24 | <?php endif; ?> |
@@ -26,15 +26,15 @@ discard block |
||
26 | 26 | <div class="getpaid-invoice-details-top mb-5"> |
27 | 27 | <div class="row"> |
28 | 28 | <div class="col-12 col-sm-6 text-left"> |
29 | - <?php do_action( 'getpaid_invoice_details_top_left', $invoice ); ?> |
|
29 | + <?php do_action('getpaid_invoice_details_top_left', $invoice); ?> |
|
30 | 30 | </div> |
31 | 31 | |
32 | 32 | <div class="col-12 col-sm-6 text-right"> |
33 | - <?php do_action( 'getpaid_invoice_details_top_right', $invoice ); ?> |
|
33 | + <?php do_action('getpaid_invoice_details_top_right', $invoice); ?> |
|
34 | 34 | </div> |
35 | 35 | </div> |
36 | 36 | </div> |
37 | 37 | |
38 | - <?php do_action( 'getpaid_after_invoice_details_top', $invoice ); ?> |
|
38 | + <?php do_action('getpaid_after_invoice_details_top', $invoice); ?> |
|
39 | 39 | |
40 | 40 | <?php |
@@ -7,51 +7,51 @@ |
||
7 | 7 | * @version 1.0.19 |
8 | 8 | */ |
9 | 9 | |
10 | -defined( 'ABSPATH' ) || exit; |
|
10 | +defined('ABSPATH') || exit; |
|
11 | 11 | |
12 | -$class = ! is_singular( 'page' ) ? 'table-sm' : ''; |
|
12 | +$class = !is_singular('page') ? 'table-sm' : ''; |
|
13 | 13 | ?> |
14 | 14 | |
15 | - <?php do_action( 'getpaid_before_invoice_meta', $invoice ); ?> |
|
15 | + <?php do_action('getpaid_before_invoice_meta', $invoice); ?> |
|
16 | 16 | <div class="getpaid-invoice-meta-data"> |
17 | 17 | |
18 | 18 | |
19 | - <?php do_action( 'getpaid_before_invoice_meta_table', $invoice ); ?> |
|
19 | + <?php do_action('getpaid_before_invoice_meta_table', $invoice); ?> |
|
20 | 20 | <table class="table <?php echo $class; ?> table-bordered"> |
21 | 21 | <tbody> |
22 | 22 | |
23 | - <?php do_action( "getpaid_before_invoice_meta_rows", $invoice ); ?> |
|
24 | - <?php foreach ( $meta as $key => $data ) : ?> |
|
23 | + <?php do_action("getpaid_before_invoice_meta_rows", $invoice); ?> |
|
24 | + <?php foreach ($meta as $key => $data) : ?> |
|
25 | 25 | |
26 | - <?php if ( ! empty( $data['value'] ) ) : ?> |
|
26 | + <?php if (!empty($data['value'])) : ?> |
|
27 | 27 | |
28 | - <?php do_action( "getpaid_before_invoice_meta_$key", $invoice, $data ); ?> |
|
28 | + <?php do_action("getpaid_before_invoice_meta_$key", $invoice, $data); ?> |
|
29 | 29 | |
30 | - <tr class="getpaid-invoice-meta-<?php echo sanitize_html_class( $key ); ?>"> |
|
30 | + <tr class="getpaid-invoice-meta-<?php echo sanitize_html_class($key); ?>"> |
|
31 | 31 | |
32 | 32 | <th> |
33 | - <?php echo sanitize_text_field( $data['label'] ); ?> |
|
33 | + <?php echo sanitize_text_field($data['label']); ?> |
|
34 | 34 | </th> |
35 | 35 | |
36 | 36 | <td> |
37 | - <span class="getpaid-invoice-meta-<?php echo sanitize_html_class( $key ); ?>-value"><?php echo wp_kses_post( $data['value'] ); ?></span> |
|
37 | + <span class="getpaid-invoice-meta-<?php echo sanitize_html_class($key); ?>-value"><?php echo wp_kses_post($data['value']); ?></span> |
|
38 | 38 | </td> |
39 | 39 | |
40 | 40 | </tr> |
41 | 41 | |
42 | - <?php do_action( "getpaid_after_invoice_meta_$key", $invoice, $data ); ?> |
|
42 | + <?php do_action("getpaid_after_invoice_meta_$key", $invoice, $data); ?> |
|
43 | 43 | |
44 | 44 | <?php endif; ?> |
45 | 45 | |
46 | 46 | <?php endforeach; ?> |
47 | - <?php do_action( "getpaid_after_invoice_meta_rows", $invoice ); ?> |
|
47 | + <?php do_action("getpaid_after_invoice_meta_rows", $invoice); ?> |
|
48 | 48 | |
49 | 49 | </tbody> |
50 | 50 | </table> |
51 | - <?php do_action( 'getpaid_after_invoice_meta_table', $invoice ); ?> |
|
51 | + <?php do_action('getpaid_after_invoice_meta_table', $invoice); ?> |
|
52 | 52 | |
53 | 53 | |
54 | 54 | </div> |
55 | - <?php do_action( 'getpaid_after_invoice_meta', $invoice ); ?> |
|
55 | + <?php do_action('getpaid_after_invoice_meta', $invoice); ?> |
|
56 | 56 | |
57 | 57 | <?php |
@@ -7,35 +7,35 @@ |
||
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="getpaid-header-right-actions"> |
15 | 15 | |
16 | - <?php if ( $invoice->is_type( 'invoice' ) ) : ?> |
|
16 | + <?php if ($invoice->is_type('invoice')) : ?> |
|
17 | 17 | |
18 | 18 | <a class="btn btn-sm btn-secondary invoice-action-print" onclick="window.print();" href="javascript:void(0)"> |
19 | - <?php _e( 'Print Invoice', 'invoicing' ); ?> |
|
19 | + <?php _e('Print Invoice', 'invoicing'); ?> |
|
20 | 20 | </a> |
21 | 21 | |
22 | - <?php if ( is_user_logged_in() ) : ?> |
|
22 | + <?php if (is_user_logged_in()) : ?> |
|
23 | 23 | |
24 | - <a class="btn btn-sm btn-secondary invoice-action-history" href="<?php echo esc_url( wpinv_get_history_page_uri() ); ?>"> |
|
25 | - <?php _e( 'Invoice History', 'invoicing' ); ?> |
|
24 | + <a class="btn btn-sm btn-secondary invoice-action-history" href="<?php echo esc_url(wpinv_get_history_page_uri()); ?>"> |
|
25 | + <?php _e('Invoice History', 'invoicing'); ?> |
|
26 | 26 | </a> |
27 | 27 | <?php endif; ?> |
28 | 28 | |
29 | - <?php if ( wpinv_current_user_can_manage_invoicing() ) : ?> |
|
29 | + <?php if (wpinv_current_user_can_manage_invoicing()) : ?> |
|
30 | 30 | |
31 | - <a class="btn btn-sm btn-secondary invoice-action-edit" href="<?php echo esc_url( get_edit_post_link( $invoice->get_id() ) ); ?>"> |
|
32 | - <?php _e( 'Edit Invoice', 'invoicing' ); ?> |
|
31 | + <a class="btn btn-sm btn-secondary invoice-action-edit" href="<?php echo esc_url(get_edit_post_link($invoice->get_id())); ?>"> |
|
32 | + <?php _e('Edit Invoice', 'invoicing'); ?> |
|
33 | 33 | </a> |
34 | 34 | <?php endif; ?> |
35 | 35 | |
36 | 36 | <?php endif; ?> |
37 | 37 | |
38 | - <?php do_action('wpinv_invoice_display_right_actions', $invoice ); ?> |
|
38 | + <?php do_action('wpinv_invoice_display_right_actions', $invoice); ?> |
|
39 | 39 | </div> |
40 | 40 | |
41 | 41 | <?php |
@@ -9,9 +9,9 @@ discard block |
||
9 | 9 | * @var array $fee |
10 | 10 | */ |
11 | 11 | |
12 | -defined( 'ABSPATH' ) || exit; |
|
12 | +defined('ABSPATH') || exit; |
|
13 | 13 | |
14 | -do_action( 'getpaid_before_invoice_fee_item', $invoice, $fee ); |
|
14 | +do_action('getpaid_before_invoice_fee_item', $invoice, $fee); |
|
15 | 15 | |
16 | 16 | ?> |
17 | 17 | |
@@ -19,61 +19,61 @@ discard block |
||
19 | 19 | |
20 | 20 | <div class="form-row"> |
21 | 21 | |
22 | - <?php foreach ( array_keys( $columns ) as $column ): ?> |
|
22 | + <?php foreach (array_keys($columns) as $column): ?> |
|
23 | 23 | |
24 | - <div class="<?php echo 'name' == $column ? 'col-12 col-sm-6' : 'col-12 col-sm' ?> getpaid-invoice-item-<?php echo sanitize_html_class( $column ); ?>"> |
|
24 | + <div class="<?php echo 'name' == $column ? 'col-12 col-sm-6' : 'col-12 col-sm' ?> getpaid-invoice-item-<?php echo sanitize_html_class($column); ?>"> |
|
25 | 25 | |
26 | 26 | <?php |
27 | 27 | |
28 | 28 | // Fires before printing a fee item column. |
29 | - do_action( "getpaid_invoice_fee_item_before_$column", $fee, $invoice ); |
|
29 | + do_action("getpaid_invoice_fee_item_before_$column", $fee, $invoice); |
|
30 | 30 | |
31 | 31 | // Item name. |
32 | - if ( 'name' == $column ) { |
|
32 | + if ('name' == $column) { |
|
33 | 33 | |
34 | 34 | // Display the name. |
35 | - echo '<div class="mb-1">' . sanitize_text_field( $fee['name'] ) . '</div>'; |
|
35 | + echo '<div class="mb-1">' . sanitize_text_field($fee['name']) . '</div>'; |
|
36 | 36 | |
37 | 37 | // And an optional description. |
38 | - $description = esc_html__( 'Fee', 'invoicing' ); |
|
38 | + $description = esc_html__('Fee', 'invoicing'); |
|
39 | 39 | echo "<small class='form-text text-muted pr-2 m-0'>$description</small>"; |
40 | 40 | |
41 | 41 | } |
42 | 42 | |
43 | 43 | // Item price. |
44 | - if ( 'price' == $column ) { |
|
44 | + if ('price' == $column) { |
|
45 | 45 | |
46 | 46 | // Display the item price (or recurring price if this is a renewal invoice) |
47 | - if ( $invoice->is_recurring() && $invoice->is_renewal() ) { |
|
48 | - echo wpinv_price( $fee['recurring_fee'], $invoice->get_currency() ); |
|
47 | + if ($invoice->is_recurring() && $invoice->is_renewal()) { |
|
48 | + echo wpinv_price($fee['recurring_fee'], $invoice->get_currency()); |
|
49 | 49 | } else { |
50 | - echo wpinv_price( $fee['initial_fee'], $invoice->get_currency() ); |
|
50 | + echo wpinv_price($fee['initial_fee'], $invoice->get_currency()); |
|
51 | 51 | } |
52 | 52 | |
53 | 53 | } |
54 | 54 | |
55 | 55 | // Item quantity. |
56 | - if ( 'quantity' == $column ) { |
|
56 | + if ('quantity' == $column) { |
|
57 | 57 | echo "—"; |
58 | 58 | } |
59 | 59 | |
60 | 60 | // Item sub total. |
61 | - if ( 'subtotal' == $column ) { |
|
61 | + if ('subtotal' == $column) { |
|
62 | 62 | |
63 | 63 | // Display the item price (or recurring price if this is a renewal invoice) |
64 | - if ( $invoice->is_recurring() && $invoice->is_renewal() ) { |
|
65 | - echo wpinv_price( $fee['recurring_fee'], $invoice->get_currency() ); |
|
64 | + if ($invoice->is_recurring() && $invoice->is_renewal()) { |
|
65 | + echo wpinv_price($fee['recurring_fee'], $invoice->get_currency()); |
|
66 | 66 | } else { |
67 | - echo wpinv_price( $fee['initial_fee'], $invoice->get_currency() ); |
|
67 | + echo wpinv_price($fee['initial_fee'], $invoice->get_currency()); |
|
68 | 68 | } |
69 | 69 | |
70 | 70 | } |
71 | 71 | |
72 | 72 | // Fires when printing a fee item column. |
73 | - do_action( "getpaid_invoice_fee_item_$column", $fee, $invoice ); |
|
73 | + do_action("getpaid_invoice_fee_item_$column", $fee, $invoice); |
|
74 | 74 | |
75 | 75 | // Fires after printing a fee item column. |
76 | - do_action( "getpaid_invoice_fee_item_after_$column", $fee, $invoice ); |
|
76 | + do_action("getpaid_invoice_fee_item_after_$column", $fee, $invoice); |
|
77 | 77 | |
78 | 78 | ?> |
79 | 79 |
@@ -9,26 +9,26 @@ discard block |
||
9 | 9 | * @var WPInv_Invoice $invoice |
10 | 10 | */ |
11 | 11 | |
12 | -defined( 'ABSPATH' ) || exit; |
|
12 | +defined('ABSPATH') || exit; |
|
13 | 13 | |
14 | 14 | // Totals rows. |
15 | -$totals = getpaid_invoice_totals_rows( $invoice ); |
|
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-left pl-0"> |
23 | 23 | |
24 | - <?php foreach ( $totals as $key => $label ) : ?> |
|
24 | + <?php foreach ($totals as $key => $label) : ?> |
|
25 | 25 | |
26 | - <div class="getpaid-invoice-line-totals-col <?php echo sanitize_html_class( $key ); ?>"> |
|
26 | + <div class="getpaid-invoice-line-totals-col <?php echo sanitize_html_class($key); ?>"> |
|
27 | 27 | |
28 | 28 | <div class="row"> |
29 | 29 | |
30 | 30 | <div class="col-12 col-sm-8 getpaid-invoice-line-totals-label"> |
31 | - <?php echo sanitize_text_field( $label ); ?> |
|
31 | + <?php echo sanitize_text_field($label); ?> |
|
32 | 32 | </div> |
33 | 33 | |
34 | 34 | <div class="col-12 col-sm-2 getpaid-invoice-line-totals-value"> |
@@ -36,32 +36,32 @@ discard block |
||
36 | 36 | <?php |
37 | 37 | |
38 | 38 | // Total tax. |
39 | - if ( 'tax' == $key ) { |
|
40 | - echo wpinv_price( wpinv_format_amount( $invoice->get_total_tax() ), $invoice->get_currency() ); |
|
39 | + if ('tax' == $key) { |
|
40 | + echo wpinv_price(wpinv_format_amount($invoice->get_total_tax()), $invoice->get_currency()); |
|
41 | 41 | } |
42 | 42 | |
43 | 43 | // Total Fee. |
44 | - if ( 'fee' == $key ) { |
|
45 | - echo wpinv_price( wpinv_format_amount( $invoice->get_total_fees() ), $invoice->get_currency() ); |
|
44 | + if ('fee' == $key) { |
|
45 | + echo wpinv_price(wpinv_format_amount($invoice->get_total_fees()), $invoice->get_currency()); |
|
46 | 46 | } |
47 | 47 | |
48 | 48 | // Total discount. |
49 | - if ( 'discount' == $key ) { |
|
50 | - echo wpinv_price( wpinv_format_amount( $invoice->get_total_discount() ), $invoice->get_currency() ); |
|
49 | + if ('discount' == $key) { |
|
50 | + echo wpinv_price(wpinv_format_amount($invoice->get_total_discount()), $invoice->get_currency()); |
|
51 | 51 | } |
52 | 52 | |
53 | 53 | // Sub total. |
54 | - if ( 'subtotal' == $key ) { |
|
55 | - echo wpinv_price( wpinv_format_amount( $invoice->get_subtotal() ), $invoice->get_currency() ); |
|
54 | + if ('subtotal' == $key) { |
|
55 | + echo wpinv_price(wpinv_format_amount($invoice->get_subtotal()), $invoice->get_currency()); |
|
56 | 56 | } |
57 | 57 | |
58 | 58 | // Total. |
59 | - if ( 'total' == $key ) { |
|
60 | - echo wpinv_price( wpinv_format_amount( $invoice->get_total() ), $invoice->get_currency() ); |
|
59 | + if ('total' == $key) { |
|
60 | + echo wpinv_price(wpinv_format_amount($invoice->get_total()), $invoice->get_currency()); |
|
61 | 61 | } |
62 | 62 | |
63 | 63 | // Fires when printing a cart total. |
64 | - do_action( "getpaid_invoice_cart_totals_$key", $invoice ); |
|
64 | + do_action("getpaid_invoice_cart_totals_$key", $invoice); |
|
65 | 65 | |
66 | 66 | ?> |
67 | 67 | |
@@ -75,4 +75,4 @@ discard block |
||
75 | 75 | </div> |
76 | 76 | </div> <!-- end .getpaid-invoice-line-totals --> |
77 | 77 | |
78 | -<?php do_action( 'getpaid_after_invoice_line_totals', $invoice, $totals ); ?> |
|
78 | +<?php do_action('getpaid_after_invoice_line_totals', $invoice, $totals); ?> |
@@ -8,21 +8,21 @@ 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 | -<?php do_action( 'getpaid_invoice_before_line_items', $invoice ); ?> |
|
15 | +<?php do_action('getpaid_invoice_before_line_items', $invoice); ?> |
|
16 | 16 | |
17 | - <h2 class="mt-5 mb-1 h4"><?php echo sprintf( esc_html__( '%s Items', 'invoicing' ), ucfirst( $invoice->get_type() )); ?></h2> |
|
17 | + <h2 class="mt-5 mb-1 h4"><?php echo sprintf(esc_html__('%s Items', 'invoicing'), ucfirst($invoice->get_type())); ?></h2> |
|
18 | 18 | <div class="getpaid-invoice-items mb-4 border"> |
19 | 19 | |
20 | 20 | |
21 | - <div class="getpaid-invoice-items-header <?php echo sanitize_html_class( $invoice->get_template() ); ?>"> |
|
21 | + <div class="getpaid-invoice-items-header <?php echo sanitize_html_class($invoice->get_template()); ?>"> |
|
22 | 22 | <div class="form-row"> |
23 | - <?php foreach ( $columns as $key => $label ) : ?> |
|
24 | - <div class="<?php echo 'name' == $key ? 'col-12 col-sm-6' : 'col-12 col-sm' ?> getpaid-invoice-line-item-col-<?php echo esc_attr( $key ); ?>"> |
|
25 | - <?php echo sanitize_text_field( $label ); ?> |
|
23 | + <?php foreach ($columns as $key => $label) : ?> |
|
24 | + <div class="<?php echo 'name' == $key ? 'col-12 col-sm-6' : 'col-12 col-sm' ?> getpaid-invoice-line-item-col-<?php echo esc_attr($key); ?>"> |
|
25 | + <?php echo sanitize_text_field($label); ?> |
|
26 | 26 | </div> |
27 | 27 | <?php endforeach; ?> |
28 | 28 | </div> |
@@ -32,20 +32,20 @@ discard block |
||
32 | 32 | <?php |
33 | 33 | |
34 | 34 | // Display the item totals. |
35 | - foreach ( $invoice->get_items() as $item ) { |
|
36 | - wpinv_get_template( 'invoice/line-item.php', compact( 'invoice', 'item', 'columns' ) ); |
|
35 | + foreach ($invoice->get_items() as $item) { |
|
36 | + wpinv_get_template('invoice/line-item.php', compact('invoice', 'item', 'columns')); |
|
37 | 37 | } |
38 | 38 | |
39 | 39 | // Display the fee totals. |
40 | - foreach ( $invoice->get_fees() as $fee ) { |
|
41 | - wpinv_get_template( 'invoice/fee-item.php', compact( 'invoice', 'fee', 'columns' ) ); |
|
40 | + foreach ($invoice->get_fees() as $fee) { |
|
41 | + wpinv_get_template('invoice/fee-item.php', compact('invoice', 'fee', 'columns')); |
|
42 | 42 | } |
43 | 43 | |
44 | 44 | // Display the cart totals. |
45 | - wpinv_get_template( 'invoice/line-totals.php', compact( 'invoice' ) ); |
|
45 | + wpinv_get_template('invoice/line-totals.php', compact('invoice')); |
|
46 | 46 | |
47 | 47 | ?> |
48 | 48 | |
49 | 49 | </div> |
50 | 50 | |
51 | -<?php do_action( 'getpaid_invoice_after_line_items', $invoice ); ?> |
|
51 | +<?php do_action('getpaid_invoice_after_line_items', $invoice); ?> |
@@ -7,11 +7,11 @@ |
||
7 | 7 | * @version 1.0.19 |
8 | 8 | */ |
9 | 9 | |
10 | -defined( 'ABSPATH' ) || exit; |
|
10 | +defined('ABSPATH') || exit; |
|
11 | 11 | |
12 | 12 | ?> |
13 | 13 | <h2 class="h3 text-dark"> |
14 | - <?php echo apply_filters( 'getpaid_invoice_type_label', ucfirst( $invoice->get_type() ), $invoice ); ?> |
|
14 | + <?php echo apply_filters('getpaid_invoice_type_label', ucfirst($invoice->get_type()), $invoice); ?> |
|
15 | 15 | </h2> |
16 | 16 | |
17 | 17 | <?php |
@@ -7,19 +7,19 @@ |
||
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="getpaid-header-left-actions"> |
15 | 15 | |
16 | - <?php if ( $invoice->is_type( 'invoice' ) && $invoice->needs_payment() && ! $invoice->is_held() ): ?> |
|
17 | - <a class="btn btn-sm btn-primary invoice-action-pay" href="<?php echo esc_url( $invoice->get_checkout_payment_url() ); ?>"> |
|
18 | - <?php _e( 'Pay For Invoice', 'invoicing' ); ?> |
|
16 | + <?php if ($invoice->is_type('invoice') && $invoice->needs_payment() && !$invoice->is_held()): ?> |
|
17 | + <a class="btn btn-sm btn-primary invoice-action-pay" href="<?php echo esc_url($invoice->get_checkout_payment_url()); ?>"> |
|
18 | + <?php _e('Pay For Invoice', 'invoicing'); ?> |
|
19 | 19 | </a> |
20 | 20 | <?php endif; ?> |
21 | 21 | |
22 | - <?php do_action('wpinv_invoice_display_left_actions', $invoice ); ?> |
|
22 | + <?php do_action('wpinv_invoice_display_left_actions', $invoice); ?> |
|
23 | 23 | |
24 | 24 | </div> |
25 | 25 |
@@ -7,15 +7,15 @@ |
||
7 | 7 | * @version 1.0.19 |
8 | 8 | */ |
9 | 9 | |
10 | -defined( 'ABSPATH' ) || exit; |
|
10 | +defined('ABSPATH') || exit; |
|
11 | 11 | |
12 | 12 | ?> |
13 | -<a target="_blank" class="logo-link text-dark" href="<?php echo esc_url( wpinv_get_business_website() ); ?>"> |
|
13 | +<a target="_blank" class="logo-link text-dark" href="<?php echo esc_url(wpinv_get_business_website()); ?>"> |
|
14 | 14 | |
15 | - <?php if ( $logo = wpinv_get_business_logo() ) { ?> |
|
16 | - <img class="logo" style="max-width:100%;" src="<?php echo esc_url( $logo ); ?>"> |
|
15 | + <?php if ($logo = wpinv_get_business_logo()) { ?> |
|
16 | + <img class="logo" style="max-width:100%;" src="<?php echo esc_url($logo); ?>"> |
|
17 | 17 | <?php } else { ?> |
18 | - <h1 class="h3"><?php echo esc_html( wpinv_get_business_name() ); ?></h1> |
|
18 | + <h1 class="h3"><?php echo esc_html(wpinv_get_business_name()); ?></h1> |
|
19 | 19 | <?php } ?> |
20 | 20 | |
21 | 21 | </a> |