@@ -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 | -$bg = wpinv_get_option( 'email_background_color', '#f5f5f5' ); |
|
| 13 | -$body = wpinv_get_option( 'email_body_background_color', '#fdfdfd' ); |
|
| 14 | -$base = wpinv_get_option( 'email_base_color', '#557da2' ); |
|
| 15 | -$base_text = wpinv_light_or_dark( $base, '#202020', '#ffffff' ); |
|
| 16 | -$text = wpinv_get_option( 'email_text_color', '#505050' ); |
|
| 12 | +$bg = wpinv_get_option('email_background_color', '#f5f5f5'); |
|
| 13 | +$body = wpinv_get_option('email_body_background_color', '#fdfdfd'); |
|
| 14 | +$base = wpinv_get_option('email_base_color', '#557da2'); |
|
| 15 | +$base_text = wpinv_light_or_dark($base, '#202020', '#ffffff'); |
|
| 16 | +$text = wpinv_get_option('email_text_color', '#505050'); |
|
| 17 | 17 | |
| 18 | -$bg_darker_10 = wpinv_hex_darker( $bg, 10 ); |
|
| 19 | -$body_darker_10 = wpinv_hex_darker( $body, 10 ); |
|
| 20 | -$base_lighter_20 = wpinv_hex_lighter( $base, 20 ); |
|
| 21 | -$base_lighter_40 = wpinv_hex_lighter( $base, 40 ); |
|
| 22 | -$text_lighter_20 = wpinv_hex_lighter( $text, 20 ); |
|
| 18 | +$bg_darker_10 = wpinv_hex_darker($bg, 10); |
|
| 19 | +$body_darker_10 = wpinv_hex_darker($body, 10); |
|
| 20 | +$base_lighter_20 = wpinv_hex_lighter($base, 20); |
|
| 21 | +$base_lighter_40 = wpinv_hex_lighter($base, 40); |
|
| 22 | +$text_lighter_20 = wpinv_hex_lighter($text, 20); |
|
| 23 | 23 | |
| 24 | 24 | // !important; is a gmail hack to prevent styles being stripped if it doesn't like something. |
| 25 | 25 | ?> |
| 26 | 26 | #wrapper { |
| 27 | - background-color: <?php echo esc_attr( $bg ); ?>; |
|
| 27 | + background-color: <?php echo esc_attr($bg); ?>; |
|
| 28 | 28 | margin: 0; |
| 29 | 29 | -webkit-text-size-adjust: none !important; |
| 30 | 30 | padding: 3%; |
@@ -45,15 +45,15 @@ discard block |
||
| 45 | 45 | |
| 46 | 46 | #template_container { |
| 47 | 47 | box-shadow: 0 1px 4px rgba(0,0,0,0.1) !important; |
| 48 | - background-color: <?php echo esc_attr( $body ); ?>; |
|
| 49 | - border: 1px solid <?php echo esc_attr( $bg_darker_10 ); ?>; |
|
| 48 | + background-color: <?php echo esc_attr($body); ?>; |
|
| 49 | + border: 1px solid <?php echo esc_attr($bg_darker_10); ?>; |
|
| 50 | 50 | border-radius: 3px !important; |
| 51 | 51 | } |
| 52 | 52 | |
| 53 | 53 | #template_header { |
| 54 | - background-color: <?php echo esc_attr( $base ); ?>; |
|
| 54 | + background-color: <?php echo esc_attr($base); ?>; |
|
| 55 | 55 | border-radius: 3px 3px 0 0 !important; |
| 56 | - color: <?php echo esc_attr( $base_text ); ?>; |
|
| 56 | + color: <?php echo esc_attr($base_text); ?>; |
|
| 57 | 57 | border-bottom: 0; |
| 58 | 58 | font-weight: bold; |
| 59 | 59 | line-height: 100%; |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | } |
| 67 | 67 | |
| 68 | 68 | #template_header h1 { |
| 69 | - color: <?php echo esc_attr( $base_text ); ?>; |
|
| 69 | + color: <?php echo esc_attr($base_text); ?>; |
|
| 70 | 70 | } |
| 71 | 71 | |
| 72 | 72 | #template_footer td { |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | |
| 78 | 78 | #template_footer #credit { |
| 79 | 79 | border:0; |
| 80 | - color: <?php echo esc_attr( $base_lighter_40 ); ?>; |
|
| 80 | + color: <?php echo esc_attr($base_lighter_40); ?>; |
|
| 81 | 81 | font-family: Arial; |
| 82 | 82 | font-size:12px; |
| 83 | 83 | line-height:125%; |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | } |
| 87 | 87 | |
| 88 | 88 | #body_content { |
| 89 | - background-color: <?php echo esc_attr( $body ); ?>; |
|
| 89 | + background-color: <?php echo esc_attr($body); ?>; |
|
| 90 | 90 | } |
| 91 | 91 | |
| 92 | 92 | #body_content table td { |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | } |
| 107 | 107 | |
| 108 | 108 | #body_content_inner { |
| 109 | - color: <?php echo esc_attr( $text_lighter_20 ); ?>; |
|
| 109 | + color: <?php echo esc_attr($text_lighter_20); ?>; |
|
| 110 | 110 | font-family: Arial,Helvetica,sans-serif; |
| 111 | 111 | font-size: 14px; |
| 112 | 112 | line-height: 150%; |
@@ -114,17 +114,17 @@ discard block |
||
| 114 | 114 | } |
| 115 | 115 | |
| 116 | 116 | .td { |
| 117 | - color: <?php echo esc_attr( $text_lighter_20 ); ?>; |
|
| 118 | - border: 1px solid <?php echo esc_attr( $body_darker_10 ); ?>; |
|
| 117 | + color: <?php echo esc_attr($text_lighter_20); ?>; |
|
| 118 | + border: 1px solid <?php echo esc_attr($body_darker_10); ?>; |
|
| 119 | 119 | } |
| 120 | 120 | |
| 121 | 121 | .text { |
| 122 | - color: <?php echo esc_attr( $text ); ?>; |
|
| 122 | + color: <?php echo esc_attr($text); ?>; |
|
| 123 | 123 | font-family: Arial,Helvetica,sans-serif; |
| 124 | 124 | } |
| 125 | 125 | |
| 126 | 126 | .link { |
| 127 | - color: <?php echo esc_attr( $base ); ?>; |
|
| 127 | + color: <?php echo esc_attr($base); ?>; |
|
| 128 | 128 | } |
| 129 | 129 | |
| 130 | 130 | #header_wrapper { |
@@ -133,19 +133,19 @@ discard block |
||
| 133 | 133 | } |
| 134 | 134 | |
| 135 | 135 | h1 { |
| 136 | - color: <?php echo esc_attr( $base ); ?>; |
|
| 136 | + color: <?php echo esc_attr($base); ?>; |
|
| 137 | 137 | font-family: Arial,Helvetica,sans-serif; |
| 138 | 138 | font-size: 30px; |
| 139 | 139 | font-weight: 300; |
| 140 | 140 | line-height: 150%; |
| 141 | 141 | margin: 0; |
| 142 | 142 | text-align: <?php echo is_rtl() ? 'right' : 'left'; ?>; |
| 143 | - text-shadow: 0 1px 0 <?php echo esc_attr( $base_lighter_20 ); ?>; |
|
| 143 | + text-shadow: 0 1px 0 <?php echo esc_attr($base_lighter_20); ?>; |
|
| 144 | 144 | -webkit-font-smoothing: antialiased; |
| 145 | 145 | } |
| 146 | 146 | |
| 147 | 147 | h2 { |
| 148 | - color: <?php echo esc_attr( $base ); ?>; |
|
| 148 | + color: <?php echo esc_attr($base); ?>; |
|
| 149 | 149 | display: block; |
| 150 | 150 | font-family: Arial,Helvetica,sans-serif; |
| 151 | 151 | font-size: 18px; |
@@ -156,7 +156,7 @@ discard block |
||
| 156 | 156 | } |
| 157 | 157 | |
| 158 | 158 | h3 { |
| 159 | - color: <?php echo esc_attr( $base ); ?>; |
|
| 159 | + color: <?php echo esc_attr($base); ?>; |
|
| 160 | 160 | display: block; |
| 161 | 161 | font-family: Arial,Helvetica,sans-serif; |
| 162 | 162 | font-size: 16px; |
@@ -167,7 +167,7 @@ discard block |
||
| 167 | 167 | } |
| 168 | 168 | |
| 169 | 169 | a { |
| 170 | - color: <?php echo esc_attr( $base ); ?>; |
|
| 170 | + color: <?php echo esc_attr($base); ?>; |
|
| 171 | 171 | font-weight: normal; |
| 172 | 172 | text-decoration: underline; |
| 173 | 173 | } |
@@ -185,7 +185,7 @@ discard block |
||
| 185 | 185 | } |
| 186 | 186 | |
| 187 | 187 | .table-bordered { |
| 188 | - border: 1px solid <?php echo esc_attr( $body_darker_10 ); ?>; |
|
| 188 | + border: 1px solid <?php echo esc_attr($body_darker_10); ?>; |
|
| 189 | 189 | border-collapse: collapse; |
| 190 | 190 | border-spacing: 0; |
| 191 | 191 | width: 100%; |
@@ -193,8 +193,8 @@ discard block |
||
| 193 | 193 | |
| 194 | 194 | .table-bordered th, |
| 195 | 195 | .table-bordered td { |
| 196 | - border: 1px solid <?php echo esc_attr( $body_darker_10 ); ?>; |
|
| 197 | - color: <?php echo esc_attr( $text_lighter_20 ); ?>; |
|
| 196 | + border: 1px solid <?php echo esc_attr($body_darker_10); ?>; |
|
| 197 | + color: <?php echo esc_attr($text_lighter_20); ?>; |
|
| 198 | 198 | font-size: 14px; |
| 199 | 199 | } |
| 200 | 200 | .small { |
@@ -294,9 +294,9 @@ discard block |
||
| 294 | 294 | text-decoration: none; |
| 295 | 295 | } |
| 296 | 296 | .btn-default { |
| 297 | - color: <?php echo esc_attr( $base_text ); ?>; |
|
| 298 | - background-color: <?php echo esc_attr( $base ); ?>; |
|
| 299 | - border-color: <?php echo esc_attr( $base ); ?>; |
|
| 297 | + color: <?php echo esc_attr($base_text); ?>; |
|
| 298 | + background-color: <?php echo esc_attr($base); ?>; |
|
| 299 | + border-color: <?php echo esc_attr($base); ?>; |
|
| 300 | 300 | } |
| 301 | 301 | .btn-primary { |
| 302 | 302 | color: #fff; |
@@ -7,22 +7,22 @@ |
||
| 7 | 7 | * @version 1.0.19 |
| 8 | 8 | */ |
| 9 | 9 | |
| 10 | -defined( 'ABSPATH' ) || exit; |
|
| 10 | +defined('ABSPATH') || exit; |
|
| 11 | 11 | |
| 12 | 12 | // Print the email header. |
| 13 | -do_action( 'wpinv_email_header', $email_heading, $invoice, $email_type, $sent_to_admin ); |
|
| 13 | +do_action('wpinv_email_header', $email_heading, $invoice, $email_type, $sent_to_admin); |
|
| 14 | 14 | |
| 15 | 15 | // Generate the custom message body. |
| 16 | 16 | echo $message_body; |
| 17 | 17 | |
| 18 | 18 | // Print invoice details. |
| 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 | 21 | // Print invoice items. |
| 22 | -do_action( 'wpinv_email_invoice_items', $invoice, $email_type, $sent_to_admin ); |
|
| 22 | +do_action('wpinv_email_invoice_items', $invoice, $email_type, $sent_to_admin); |
|
| 23 | 23 | |
| 24 | 24 | // Print the billing details. |
| 25 | -do_action( 'wpinv_email_billing_details', $invoice, $email_type, $sent_to_admin ); |
|
| 25 | +do_action('wpinv_email_billing_details', $invoice, $email_type, $sent_to_admin); |
|
| 26 | 26 | |
| 27 | 27 | // Print the email footer. |
| 28 | -do_action( 'wpinv_email_footer', $invoice, $email_type, $sent_to_admin ); |
|
| 28 | +do_action('wpinv_email_footer', $invoice, $email_type, $sent_to_admin); |
|
@@ -7,21 +7,21 @@ |
||
| 7 | 7 | * @version 1.0.19 |
| 8 | 8 | */ |
| 9 | 9 | |
| 10 | -defined( 'ABSPATH' ) || exit; |
|
| 10 | +defined('ABSPATH') || exit; |
|
| 11 | 11 | |
| 12 | -do_action( 'wpinv_email_header', $email_heading, $invoice, $email_type, $sent_to_admin ); |
|
| 12 | +do_action('wpinv_email_header', $email_heading, $invoice, $email_type, $sent_to_admin); |
|
| 13 | 13 | |
| 14 | -do_action( 'wpinv_email_before_note_details', $invoice, $email_type, $sent_to_admin, $customer_note ); |
|
| 14 | +do_action('wpinv_email_before_note_details', $invoice, $email_type, $sent_to_admin, $customer_note); |
|
| 15 | 15 | |
| 16 | 16 | // Generate the custom message body. |
| 17 | -echo wptexturize( wp_kses_post( str_replace( '{customer_note}', $customer_note, $message_body ) ) ); |
|
| 17 | +echo wptexturize(wp_kses_post(str_replace('{customer_note}', $customer_note, $message_body))); |
|
| 18 | 18 | |
| 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_after_note_details', $invoice, $email_type, $sent_to_admin, $customer_note ); |
|
| 25 | +do_action('wpinv_email_after_note_details', $invoice, $email_type, $sent_to_admin, $customer_note); |
|
| 26 | 26 | |
| 27 | -do_action( 'wpinv_email_footer', $invoice, $email_type, $sent_to_admin ); |
|
| 28 | 27 | \ No newline at end of file |
| 28 | +do_action('wpinv_email_footer', $invoice, $email_type, $sent_to_admin); |
|
| 29 | 29 | \ No newline at end of file |
@@ -10,63 +10,63 @@ discard block |
||
| 10 | 10 | * @var array $columns |
| 11 | 11 | */ |
| 12 | 12 | |
| 13 | -defined( 'ABSPATH' ) || exit; |
|
| 13 | +defined('ABSPATH') || exit; |
|
| 14 | 14 | |
| 15 | 15 | ?> |
| 16 | 16 | |
| 17 | -<?php do_action( 'getpaid_before_email_fee_item', $invoice, $fee ); ?> |
|
| 17 | +<?php do_action('getpaid_before_email_fee_item', $invoice, $fee); ?> |
|
| 18 | 18 | |
| 19 | 19 | <tr class="wpinv_cart_item item-fee"> |
| 20 | 20 | |
| 21 | - <?php foreach ( array_keys( $columns ) as $column ): ?> |
|
| 21 | + <?php foreach (array_keys($columns) as $column): ?> |
|
| 22 | 22 | |
| 23 | - <td class="<?php echo 'name' == $column ? 'text-left' : 'text-right' ?> wpinv_cart_item_<?php echo sanitize_html_class( $column ); ?>"> |
|
| 23 | + <td class="<?php echo 'name' == $column ? 'text-left' : 'text-right' ?> wpinv_cart_item_<?php echo sanitize_html_class($column); ?>"> |
|
| 24 | 24 | |
| 25 | 25 | <?php |
| 26 | 26 | |
| 27 | 27 | // Fires before printing a fee item column. |
| 28 | - do_action( "getpaid_email_fee_item_before_$column", $fee, $invoice ); |
|
| 28 | + do_action("getpaid_email_fee_item_before_$column", $fee, $invoice); |
|
| 29 | 29 | |
| 30 | 30 | // Item name. |
| 31 | - if ( 'name' == $column ) { |
|
| 31 | + if ('name' == $column) { |
|
| 32 | 32 | |
| 33 | 33 | // Display the name. |
| 34 | - echo '<div class="wpinv_email_cart_item_title">' . sanitize_text_field( $fee['name'] ) . '</div>'; |
|
| 34 | + echo '<div class="wpinv_email_cart_item_title">' . sanitize_text_field($fee['name']) . '</div>'; |
|
| 35 | 35 | |
| 36 | 36 | // And an optional description. |
| 37 | - $description = esc_html__( 'Fee', 'invoicing' ); |
|
| 37 | + $description = esc_html__('Fee', 'invoicing'); |
|
| 38 | 38 | echo "<p class='small'>$description</p>"; |
| 39 | 39 | |
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | // Item price. |
| 43 | - if ( 'price' == $column ) { |
|
| 43 | + if ('price' == $column) { |
|
| 44 | 44 | |
| 45 | 45 | // Display the item price (or recurring price if this is a renewal invoice) |
| 46 | - if ( $invoice->is_recurring() && $invoice->is_renewal() ) { |
|
| 47 | - echo wpinv_price( $fee['recurring_fee'], $invoice->get_currency() ); |
|
| 46 | + if ($invoice->is_recurring() && $invoice->is_renewal()) { |
|
| 47 | + echo wpinv_price($fee['recurring_fee'], $invoice->get_currency()); |
|
| 48 | 48 | } else { |
| 49 | - echo wpinv_price( $fee['initial_fee'], $invoice->get_currency() ); |
|
| 49 | + echo wpinv_price($fee['initial_fee'], $invoice->get_currency()); |
|
| 50 | 50 | } |
| 51 | 51 | |
| 52 | 52 | } |
| 53 | 53 | |
| 54 | 54 | // Item quantity. |
| 55 | - if ( 'quantity' == $column ) { |
|
| 55 | + if ('quantity' == $column) { |
|
| 56 | 56 | echo "—"; |
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | // Item sub total. |
| 60 | - if ( 'subtotal' == $column ) { |
|
| 61 | - if ( $invoice->is_recurring() && $invoice->is_renewal() ) { |
|
| 62 | - echo wpinv_price( $fee['recurring_fee'], $invoice->get_currency() ); |
|
| 60 | + if ('subtotal' == $column) { |
|
| 61 | + if ($invoice->is_recurring() && $invoice->is_renewal()) { |
|
| 62 | + echo wpinv_price($fee['recurring_fee'], $invoice->get_currency()); |
|
| 63 | 63 | } else { |
| 64 | - echo wpinv_price( $fee['initial_fee'], $invoice->get_currency() ); |
|
| 64 | + echo wpinv_price($fee['initial_fee'], $invoice->get_currency()); |
|
| 65 | 65 | } |
| 66 | 66 | } |
| 67 | 67 | |
| 68 | 68 | // Fires when printing a line item column. |
| 69 | - do_action( "getpaid_email_fee_item_$column", $fee, $invoice ); |
|
| 69 | + do_action("getpaid_email_fee_item_$column", $fee, $invoice); |
|
| 70 | 70 | |
| 71 | 71 | ?> |
| 72 | 72 | |
@@ -76,4 +76,4 @@ discard block |
||
| 76 | 76 | |
| 77 | 77 | </tr> |
| 78 | 78 | |
| 79 | -<?php do_action( 'getpaid_after_email_fee_item', $invoice, $fee ); ?> |
|
| 79 | +<?php do_action('getpaid_after_email_fee_item', $invoice, $fee); ?> |
|
@@ -8,18 +8,18 @@ |
||
| 8 | 8 | * @var WPInv_Subscription $object |
| 9 | 9 | */ |
| 10 | 10 | |
| 11 | -defined( 'ABSPATH' ) || exit; |
|
| 11 | +defined('ABSPATH') || exit; |
|
| 12 | 12 | |
| 13 | 13 | $invoice = $object->get_parent_payment(); |
| 14 | 14 | |
| 15 | 15 | // Print the email header. |
| 16 | -do_action( 'wpinv_email_header', $email_heading, $invoice, $email_type, $sent_to_admin ); |
|
| 16 | +do_action('wpinv_email_header', $email_heading, $invoice, $email_type, $sent_to_admin); |
|
| 17 | 17 | |
| 18 | 18 | // Generate the custom message body. |
| 19 | 19 | echo $message_body; |
| 20 | 20 | |
| 21 | 21 | // Print the billing details. |
| 22 | -do_action( 'wpinv_email_billing_details', $invoice, $email_type, $sent_to_admin ); |
|
| 22 | +do_action('wpinv_email_billing_details', $invoice, $email_type, $sent_to_admin); |
|
| 23 | 23 | |
| 24 | 24 | // Print the email footer. |
| 25 | -do_action( 'wpinv_email_footer', $invoice, $email_type, $sent_to_admin ); |
|
| 25 | +do_action('wpinv_email_footer', $invoice, $email_type, $sent_to_admin); |
|
@@ -8,24 +8,24 @@ |
||
| 8 | 8 | * @var WPInv_Subscription $object |
| 9 | 9 | */ |
| 10 | 10 | |
| 11 | -defined( 'ABSPATH' ) || exit; |
|
| 11 | +defined('ABSPATH') || exit; |
|
| 12 | 12 | |
| 13 | 13 | $invoice = $object->get_parent_payment(); |
| 14 | 14 | |
| 15 | 15 | // Print the email header. |
| 16 | -do_action( 'wpinv_email_header', $email_heading, $invoice, $email_type, $sent_to_admin ); |
|
| 16 | +do_action('wpinv_email_header', $email_heading, $invoice, $email_type, $sent_to_admin); |
|
| 17 | 17 | |
| 18 | 18 | // Generate the custom message body. |
| 19 | 19 | echo $message_body; |
| 20 | 20 | |
| 21 | 21 | // Print invoice details. |
| 22 | -do_action( 'wpinv_email_invoice_details', $invoice, $email_type, $sent_to_admin ); |
|
| 22 | +do_action('wpinv_email_invoice_details', $invoice, $email_type, $sent_to_admin); |
|
| 23 | 23 | |
| 24 | 24 | // Print invoice items. |
| 25 | -do_action( 'wpinv_email_invoice_items', $invoice, $email_type, $sent_to_admin ); |
|
| 25 | +do_action('wpinv_email_invoice_items', $invoice, $email_type, $sent_to_admin); |
|
| 26 | 26 | |
| 27 | 27 | // Print the billing details. |
| 28 | -do_action( 'wpinv_email_billing_details', $invoice, $email_type, $sent_to_admin ); |
|
| 28 | +do_action('wpinv_email_billing_details', $invoice, $email_type, $sent_to_admin); |
|
| 29 | 29 | |
| 30 | 30 | // Print the email footer. |
| 31 | -do_action( 'wpinv_email_footer', $invoice, $email_type, $sent_to_admin ); |
|
| 31 | +do_action('wpinv_email_footer', $invoice, $email_type, $sent_to_admin); |
|
@@ -8,18 +8,18 @@ |
||
| 8 | 8 | * @var WPInv_Subscription $object |
| 9 | 9 | */ |
| 10 | 10 | |
| 11 | -defined( 'ABSPATH' ) || exit; |
|
| 11 | +defined('ABSPATH') || exit; |
|
| 12 | 12 | |
| 13 | 13 | $invoice = $object->get_parent_payment(); |
| 14 | 14 | |
| 15 | 15 | // Print the email header. |
| 16 | -do_action( 'wpinv_email_header', $email_heading, $invoice, $email_type, $sent_to_admin ); |
|
| 16 | +do_action('wpinv_email_header', $email_heading, $invoice, $email_type, $sent_to_admin); |
|
| 17 | 17 | |
| 18 | 18 | // Generate the custom message body. |
| 19 | 19 | echo $message_body; |
| 20 | 20 | |
| 21 | 21 | // Print the billing details. |
| 22 | -do_action( 'wpinv_email_billing_details', $invoice, $email_type, $sent_to_admin ); |
|
| 22 | +do_action('wpinv_email_billing_details', $invoice, $email_type, $sent_to_admin); |
|
| 23 | 23 | |
| 24 | 24 | // Print the email footer. |
| 25 | -do_action( 'wpinv_email_footer', $invoice, $email_type, $sent_to_admin ); |
|
| 25 | +do_action('wpinv_email_footer', $invoice, $email_type, $sent_to_admin); |
|
@@ -8,18 +8,18 @@ |
||
| 8 | 8 | * @var WPInv_Subscription $object |
| 9 | 9 | */ |
| 10 | 10 | |
| 11 | -defined( 'ABSPATH' ) || exit; |
|
| 11 | +defined('ABSPATH') || exit; |
|
| 12 | 12 | |
| 13 | 13 | $invoice = $object->get_parent_payment(); |
| 14 | 14 | |
| 15 | 15 | // Print the email header. |
| 16 | -do_action( 'wpinv_email_header', $email_heading, $invoice, $email_type, $sent_to_admin ); |
|
| 16 | +do_action('wpinv_email_header', $email_heading, $invoice, $email_type, $sent_to_admin); |
|
| 17 | 17 | |
| 18 | 18 | // Generate the custom message body. |
| 19 | 19 | echo $message_body; |
| 20 | 20 | |
| 21 | 21 | // Print the billing details. |
| 22 | -do_action( 'wpinv_email_billing_details', $invoice, $email_type, $sent_to_admin ); |
|
| 22 | +do_action('wpinv_email_billing_details', $invoice, $email_type, $sent_to_admin); |
|
| 23 | 23 | |
| 24 | 24 | // Print the email footer. |
| 25 | -do_action( 'wpinv_email_footer', $invoice, $email_type, $sent_to_admin ); |
|
| 25 | +do_action('wpinv_email_footer', $invoice, $email_type, $sent_to_admin); |
|
@@ -8,18 +8,18 @@ |
||
| 8 | 8 | * @var WPInv_Subscription $object |
| 9 | 9 | */ |
| 10 | 10 | |
| 11 | -defined( 'ABSPATH' ) || exit; |
|
| 11 | +defined('ABSPATH') || exit; |
|
| 12 | 12 | |
| 13 | 13 | $invoice = $object->get_parent_payment(); |
| 14 | 14 | |
| 15 | 15 | // Print the email header. |
| 16 | -do_action( 'wpinv_email_header', $email_heading, $invoice, $email_type, $sent_to_admin ); |
|
| 16 | +do_action('wpinv_email_header', $email_heading, $invoice, $email_type, $sent_to_admin); |
|
| 17 | 17 | |
| 18 | 18 | // Generate the custom message body. |
| 19 | 19 | echo $message_body; |
| 20 | 20 | |
| 21 | 21 | // Print the billing details. |
| 22 | -do_action( 'wpinv_email_billing_details', $invoice, $email_type, $sent_to_admin ); |
|
| 22 | +do_action('wpinv_email_billing_details', $invoice, $email_type, $sent_to_admin); |
|
| 23 | 23 | |
| 24 | 24 | // Print the email footer. |
| 25 | -do_action( 'wpinv_email_footer', $invoice, $email_type, $sent_to_admin ); |
|
| 25 | +do_action('wpinv_email_footer', $invoice, $email_type, $sent_to_admin); |
|