@@ -9,7 +9,6 @@ |
||
| 9 | 9 | use GeoIp2\Exception\InvalidRequestException; |
| 10 | 10 | use GeoIp2\Exception\OutOfQueriesException; |
| 11 | 11 | use GeoIp2\ProviderInterface; |
| 12 | -use MaxMind\Exception\InvalidInputException; |
|
| 13 | 12 | use MaxMind\WebService\Client as WsClient; |
| 14 | 13 | |
| 15 | 14 | /** |
@@ -76,7 +76,7 @@ |
||
| 76 | 76 | // This is for backwards compatibility. Do not remove except for a |
| 77 | 77 | // major version bump. |
| 78 | 78 | if (is_string($options)) { |
| 79 | - $options = array( 'host' => $options ); |
|
| 79 | + $options = array('host' => $options); |
|
| 80 | 80 | } |
| 81 | 81 | |
| 82 | 82 | if (!isset($options['host'])) { |
@@ -9,6 +9,6 @@ |
||
| 9 | 9 | */ |
| 10 | 10 | |
| 11 | 11 | // If uninstall not called from WordPress, then exit. |
| 12 | -if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) { |
|
| 12 | +if (!defined('WP_UNINSTALL_PLUGIN')) { |
|
| 13 | 13 | exit; |
| 14 | 14 | } |
@@ -5,140 +5,140 @@ |
||
| 5 | 5 | |
| 6 | 6 | global $wpinv_euvat, $post, $ajax_cart_details, $wpi_cart_columns, $wpi_session; |
| 7 | 7 | $invoice = wpinv_get_invoice_cart(); |
| 8 | -$cart_items = !empty( $ajax_cart_details ) ? $ajax_cart_details : wpinv_get_cart_content_details(); |
|
| 8 | +$cart_items = !empty($ajax_cart_details) ? $ajax_cart_details : wpinv_get_cart_content_details(); |
|
| 9 | 9 | $quantities_enabled = wpinv_item_quantities_enabled(); |
| 10 | 10 | $use_taxes = wpinv_use_taxes(); |
| 11 | 11 | $tax_label = $wpinv_euvat->tax_label(); |
| 12 | -$tax_title = $use_taxes ? ( wpinv_prices_include_tax() ? wp_sprintf( __( '(%s Incl.)', 'invoicing' ), $tax_label ) : wp_sprintf( __( '(%s Excl.)', 'invoicing' ), $tax_label ) ) : ''; |
|
| 12 | +$tax_title = $use_taxes ? (wpinv_prices_include_tax() ? wp_sprintf(__('(%s Incl.)', 'invoicing'), $tax_label) : wp_sprintf(__('(%s Excl.)', 'invoicing'), $tax_label)) : ''; |
|
| 13 | 13 | ?> |
| 14 | 14 | <table id="wpinv_checkout_cart" class="table table-bordered table-hover"> |
| 15 | 15 | <thead> |
| 16 | 16 | <tr class="wpinv_cart_header_row"> |
| 17 | - <?php do_action( 'wpinv_checkout_table_header_first' ); ?> |
|
| 18 | - <th class="wpinv_cart_item_name text-left"><?php _e( 'Item Name', 'invoicing' ); ?></th> |
|
| 19 | - <th class="wpinv_cart_item_price text-right"><?php _e( 'Item Price', 'invoicing' ); ?></th> |
|
| 20 | - <?php if ( $quantities_enabled ) { ?> |
|
| 21 | - <th class="wpinv_cart_item_qty text-right"><?php _e( 'Qty', 'invoicing' ); ?></th> |
|
| 17 | + <?php do_action('wpinv_checkout_table_header_first'); ?> |
|
| 18 | + <th class="wpinv_cart_item_name text-left"><?php _e('Item Name', 'invoicing'); ?></th> |
|
| 19 | + <th class="wpinv_cart_item_price text-right"><?php _e('Item Price', 'invoicing'); ?></th> |
|
| 20 | + <?php if ($quantities_enabled) { ?> |
|
| 21 | + <th class="wpinv_cart_item_qty text-right"><?php _e('Qty', 'invoicing'); ?></th> |
|
| 22 | 22 | <?php } ?> |
| 23 | - <?php if ( $use_taxes ) { ?> |
|
| 23 | + <?php if ($use_taxes) { ?> |
|
| 24 | 24 | <th class="wpinv_cart_item_tax text-right"><?php echo $tax_label . ' <span class="normal small">(%)</span>'; ?></th> |
| 25 | 25 | <?php } ?> |
| 26 | - <th class="wpinv_cart_item_subtotal text-right"><?php echo __( 'Item Total', 'invoicing' ) . ' <span class="normal small">' . $tax_title . '<span>'; ?></th> |
|
| 27 | - <?php do_action( 'wpinv_checkout_table_header_last' ); ?> |
|
| 26 | + <th class="wpinv_cart_item_subtotal text-right"><?php echo __('Item Total', 'invoicing') . ' <span class="normal small">' . $tax_title . '<span>'; ?></th> |
|
| 27 | + <?php do_action('wpinv_checkout_table_header_last'); ?> |
|
| 28 | 28 | </tr> |
| 29 | 29 | </thead> |
| 30 | 30 | <tbody> |
| 31 | 31 | <?php |
| 32 | - do_action( 'wpinv_cart_items_before' ); |
|
| 32 | + do_action('wpinv_cart_items_before'); |
|
| 33 | 33 | |
| 34 | - if ( $cart_items ) { |
|
| 35 | - foreach ( $cart_items as $key => $item ) { |
|
| 36 | - $wpi_item = !empty( $item['id'] ) ? new WPInv_Item( $item['id'] ) : NULL; |
|
| 34 | + if ($cart_items) { |
|
| 35 | + foreach ($cart_items as $key => $item) { |
|
| 36 | + $wpi_item = !empty($item['id']) ? new WPInv_Item($item['id']) : NULL; |
|
| 37 | 37 | ?> |
| 38 | - <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'] ); ?>"> |
|
| 39 | - <?php do_action( 'wpinv_checkout_table_body_first', $item ); ?> |
|
| 38 | + <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']); ?>"> |
|
| 39 | + <?php do_action('wpinv_checkout_table_body_first', $item); ?> |
|
| 40 | 40 | <td class="wpinv_cart_item_name text-left"> |
| 41 | 41 | <?php |
| 42 | - if ( current_theme_supports( 'post-thumbnails' ) && has_post_thumbnail( $item['id'] ) ) { |
|
| 42 | + if (current_theme_supports('post-thumbnails') && has_post_thumbnail($item['id'])) { |
|
| 43 | 43 | echo '<div class="wpinv_cart_item_image">'; |
| 44 | - echo get_the_post_thumbnail( $item['id'], apply_filters( 'wpinv_checkout_image_size', array( 25,25 ) ) ); |
|
| 44 | + echo get_the_post_thumbnail($item['id'], apply_filters('wpinv_checkout_image_size', array(25, 25))); |
|
| 45 | 45 | echo '</div>'; |
| 46 | 46 | } |
| 47 | - $item_title = esc_html( wpinv_get_cart_item_name( $item ) ) . wpinv_get_item_suffix( $wpi_item ); |
|
| 47 | + $item_title = esc_html(wpinv_get_cart_item_name($item)) . wpinv_get_item_suffix($wpi_item); |
|
| 48 | 48 | echo '<span class="wpinv_checkout_cart_item_title">' . $item_title . '</span>'; |
| 49 | - if ( !empty( $wpi_item ) && $wpi_item->is_package() && !empty( $item['meta']['post_id'] ) ) { |
|
| 50 | - $post_link = !empty( $item['meta']['invoice_title'] ) ? $item['meta']['invoice_title'] : get_the_title( $item['meta']['post_id'] ); |
|
| 51 | - $summary = wp_sprintf( __( '%s: %s', 'invoicing' ), $wpi_item->get_cpt_singular_name(), $post_link ); |
|
| 52 | - echo '<small class="meta">' . wpautop( wp_kses_post( $summary ) ) . '</small>'; |
|
| 49 | + if (!empty($wpi_item) && $wpi_item->is_package() && !empty($item['meta']['post_id'])) { |
|
| 50 | + $post_link = !empty($item['meta']['invoice_title']) ? $item['meta']['invoice_title'] : get_the_title($item['meta']['post_id']); |
|
| 51 | + $summary = wp_sprintf(__('%s: %s', 'invoicing'), $wpi_item->get_cpt_singular_name(), $post_link); |
|
| 52 | + echo '<small class="meta">' . wpautop(wp_kses_post($summary)) . '</small>'; |
|
| 53 | 53 | } |
| 54 | - do_action( 'wpinv_checkout_cart_item_title_after', $item, $key ); |
|
| 54 | + do_action('wpinv_checkout_cart_item_title_after', $item, $key); |
|
| 55 | 55 | ?> |
| 56 | 56 | </td> |
| 57 | 57 | <td class="wpinv_cart_item_price text-right"> |
| 58 | 58 | <?php |
| 59 | - echo wpinv_cart_item_price( $item ); |
|
| 60 | - do_action( 'wpinv_checkout_cart_item_price_after', $item, $key ); |
|
| 59 | + echo wpinv_cart_item_price($item); |
|
| 60 | + do_action('wpinv_checkout_cart_item_price_after', $item, $key); |
|
| 61 | 61 | ?> |
| 62 | 62 | </td> |
| 63 | - <?php if ( $quantities_enabled ) { ?> |
|
| 63 | + <?php if ($quantities_enabled) { ?> |
|
| 64 | 64 | <td class="wpinv_cart_item_qty text-right"> |
| 65 | 65 | <?php |
| 66 | - echo wpinv_get_cart_item_quantity( $item ); |
|
| 67 | - do_action( 'wpinv_cart_item_quantitiy', $item, $key ); |
|
| 66 | + echo wpinv_get_cart_item_quantity($item); |
|
| 67 | + do_action('wpinv_cart_item_quantitiy', $item, $key); |
|
| 68 | 68 | ?> |
| 69 | 69 | </td> |
| 70 | 70 | <?php } ?> |
| 71 | - <?php if ( $use_taxes ) { ?> |
|
| 71 | + <?php if ($use_taxes) { ?> |
|
| 72 | 72 | <td class="wpinv_cart_item_tax text-right"> |
| 73 | 73 | <?php |
| 74 | - echo wpinv_cart_item_tax( $item ); |
|
| 74 | + echo wpinv_cart_item_tax($item); |
|
| 75 | 75 | //echo wpinv_get_cart_item_tax( $wpi_item->ID, $subtotal = '', $options = array() ); |
| 76 | - do_action( 'wpinv_cart_item_tax', $item, $key ); |
|
| 76 | + do_action('wpinv_cart_item_tax', $item, $key); |
|
| 77 | 77 | ?> |
| 78 | 78 | </td> |
| 79 | 79 | <?php } ?> |
| 80 | 80 | <td class="wpinv_cart_item_subtotal text-right"> |
| 81 | 81 | <?php |
| 82 | - echo wpinv_cart_item_subtotal( $item ); |
|
| 83 | - do_action( 'wpinv_cart_item_subtotal', $item, $key ); |
|
| 82 | + echo wpinv_cart_item_subtotal($item); |
|
| 83 | + do_action('wpinv_cart_item_subtotal', $item, $key); |
|
| 84 | 84 | ?> |
| 85 | 85 | </td> |
| 86 | - <?php do_action( 'wpinv_checkout_table_body_last', $item, $key ); ?> |
|
| 86 | + <?php do_action('wpinv_checkout_table_body_last', $item, $key); ?> |
|
| 87 | 87 | </tr> |
| 88 | 88 | <?php } ?> |
| 89 | 89 | <?php } ?> |
| 90 | - <?php do_action( 'wpinv_cart_items_middle' ); ?> |
|
| 91 | - <?php do_action( 'wpinv_cart_items_after' ); ?> |
|
| 90 | + <?php do_action('wpinv_cart_items_middle'); ?> |
|
| 91 | + <?php do_action('wpinv_cart_items_after'); ?> |
|
| 92 | 92 | </tbody> |
| 93 | 93 | <tfoot> |
| 94 | 94 | <?php $cart_columns = wpinv_checkout_cart_columns(); ?> |
| 95 | - <?php if ( has_action( 'wpinv_cart_footer_buttons' ) ) { ?> |
|
| 95 | + <?php if (has_action('wpinv_cart_footer_buttons')) { ?> |
|
| 96 | 96 | <tr class="wpinv_cart_footer_row"> |
| 97 | - <?php do_action( 'wpinv_checkout_table_buttons_first', $cart_items ); ?> |
|
| 98 | - <td colspan="<?php echo ( $cart_columns ); ?>"> |
|
| 99 | - <?php do_action( 'wpinv_cart_footer_buttons' ); ?> |
|
| 97 | + <?php do_action('wpinv_checkout_table_buttons_first', $cart_items); ?> |
|
| 98 | + <td colspan="<?php echo ($cart_columns); ?>"> |
|
| 99 | + <?php do_action('wpinv_cart_footer_buttons'); ?> |
|
| 100 | 100 | </td> |
| 101 | - <?php do_action( 'wpinv_checkout_table_buttons_first', $cart_items ); ?> |
|
| 101 | + <?php do_action('wpinv_checkout_table_buttons_first', $cart_items); ?> |
|
| 102 | 102 | </tr> |
| 103 | 103 | <?php } ?> |
| 104 | 104 | |
| 105 | - <?php if ( $use_taxes && !wpinv_prices_include_tax() ) { ?> |
|
| 106 | - <tr class="wpinv_cart_footer_row wpinv_cart_subtotal_row"<?php if ( !wpinv_is_cart_taxed() ) echo ' style="display:none;"'; ?>> |
|
| 107 | - <?php do_action( 'wpinv_checkout_table_subtotal_first', $cart_items ); ?> |
|
| 108 | - <td colspan="<?php echo ( $cart_columns - 1 ); ?>" class="wpinv_cart_subtotal_label text-right"> |
|
| 109 | - <strong><?php _e( 'Sub-Total', 'invoicing' ); ?>:</strong> |
|
| 105 | + <?php if ($use_taxes && !wpinv_prices_include_tax()) { ?> |
|
| 106 | + <tr class="wpinv_cart_footer_row wpinv_cart_subtotal_row"<?php if (!wpinv_is_cart_taxed()) echo ' style="display:none;"'; ?>> |
|
| 107 | + <?php do_action('wpinv_checkout_table_subtotal_first', $cart_items); ?> |
|
| 108 | + <td colspan="<?php echo ($cart_columns - 1); ?>" class="wpinv_cart_subtotal_label text-right"> |
|
| 109 | + <strong><?php _e('Sub-Total', 'invoicing'); ?>:</strong> |
|
| 110 | 110 | </td> |
| 111 | 111 | <td class="wpinv_cart_subtotal text-right"> |
| 112 | - <span class="wpinv_cart_subtotal_amount bold"><?php echo wpinv_cart_subtotal( $cart_items ); ?></span> |
|
| 112 | + <span class="wpinv_cart_subtotal_amount bold"><?php echo wpinv_cart_subtotal($cart_items); ?></span> |
|
| 113 | 113 | </td> |
| 114 | - <?php do_action( 'wpinv_checkout_table_subtotal_last', $cart_items ); ?> |
|
| 114 | + <?php do_action('wpinv_checkout_table_subtotal_last', $cart_items); ?> |
|
| 115 | 115 | </tr> |
| 116 | 116 | <?php } ?> |
| 117 | 117 | |
| 118 | - <?php $wpi_cart_columns = $cart_columns - 1; wpinv_cart_discounts_html( $cart_items ); ?> |
|
| 118 | + <?php $wpi_cart_columns = $cart_columns - 1; wpinv_cart_discounts_html($cart_items); ?> |
|
| 119 | 119 | |
| 120 | - <?php if ( $use_taxes ) { ?> |
|
| 121 | - <tr class="wpinv_cart_footer_row wpinv_cart_tax_row"<?php if( !wpinv_is_cart_taxed() ) echo ' style="display:none;"'; ?>> |
|
| 122 | - <?php do_action( 'wpinv_checkout_table_tax_first' ); ?> |
|
| 123 | - <td colspan="<?php echo ( $cart_columns - 1 ); ?>" class="wpinv_cart_tax_label text-right"> |
|
| 120 | + <?php if ($use_taxes) { ?> |
|
| 121 | + <tr class="wpinv_cart_footer_row wpinv_cart_tax_row"<?php if (!wpinv_is_cart_taxed()) echo ' style="display:none;"'; ?>> |
|
| 122 | + <?php do_action('wpinv_checkout_table_tax_first'); ?> |
|
| 123 | + <td colspan="<?php echo ($cart_columns - 1); ?>" class="wpinv_cart_tax_label text-right"> |
|
| 124 | 124 | <strong><?php echo $tax_label; ?>:</strong> |
| 125 | 125 | </td> |
| 126 | 126 | <td class="wpinv_cart_tax text-right"> |
| 127 | - <span class="wpinv_cart_tax_amount" data-tax="<?php echo wpinv_get_cart_tax( $cart_items ); ?>"><?php echo esc_html( wpinv_cart_tax( $cart_items ) ); ?></span> |
|
| 127 | + <span class="wpinv_cart_tax_amount" data-tax="<?php echo wpinv_get_cart_tax($cart_items); ?>"><?php echo esc_html(wpinv_cart_tax($cart_items)); ?></span> |
|
| 128 | 128 | </td> |
| 129 | - <?php do_action( 'wpinv_checkout_table_tax_last' ); ?> |
|
| 129 | + <?php do_action('wpinv_checkout_table_tax_last'); ?> |
|
| 130 | 130 | </tr> |
| 131 | 131 | <?php } ?> |
| 132 | 132 | |
| 133 | 133 | <tr class="wpinv_cart_footer_row wpinv_cart_total_row"> |
| 134 | - <?php do_action( 'wpinv_checkout_table_footer_first' ); ?> |
|
| 135 | - <td colspan="<?php echo ( $cart_columns - 1 ); ?>" class="wpinv_cart_total_label text-right"> |
|
| 136 | - <?php echo apply_filters( 'wpinv_cart_total_label', '<strong>' . __( 'Total', 'invoicing' ) . ':</strong>', $invoice ); ?> |
|
| 134 | + <?php do_action('wpinv_checkout_table_footer_first'); ?> |
|
| 135 | + <td colspan="<?php echo ($cart_columns - 1); ?>" class="wpinv_cart_total_label text-right"> |
|
| 136 | + <?php echo apply_filters('wpinv_cart_total_label', '<strong>' . __('Total', 'invoicing') . ':</strong>', $invoice); ?> |
|
| 137 | 137 | </td> |
| 138 | 138 | <td class="wpinv_cart_total text-right"> |
| 139 | - <span class="wpinv_cart_amount bold" data-subtotal="<?php echo wpinv_get_cart_total( $cart_items ); ?>" data-total="<?php echo wpinv_get_cart_total( NULL, NULL, $invoice ); ?>"><?php wpinv_cart_total( $cart_items, true, $invoice ); ?></span> |
|
| 139 | + <span class="wpinv_cart_amount bold" data-subtotal="<?php echo wpinv_get_cart_total($cart_items); ?>" data-total="<?php echo wpinv_get_cart_total(NULL, NULL, $invoice); ?>"><?php wpinv_cart_total($cart_items, true, $invoice); ?></span> |
|
| 140 | 140 | </td> |
| 141 | - <?php do_action( 'wpinv_checkout_table_footer_last' ); ?> |
|
| 141 | + <?php do_action('wpinv_checkout_table_footer_last'); ?> |
|
| 142 | 142 | </tr> |
| 143 | 143 | </tfoot> |
| 144 | 144 | </table> |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | // don't load directly |
| 3 | -if ( !defined('ABSPATH') ) |
|
| 3 | +if (!defined('ABSPATH')) |
|
| 4 | 4 | die('-1'); |
| 5 | 5 | |
| 6 | -$email_footer = apply_filters( 'wpinv_email_footer_text', wpinv_get_option( 'email_footer_text' ) ); |
|
| 7 | -$email_footer = $email_footer ? wpautop( wp_kses_post( wptexturize( $email_footer ) ) ) : ''; |
|
| 6 | +$email_footer = apply_filters('wpinv_email_footer_text', wpinv_get_option('email_footer_text')); |
|
| 7 | +$email_footer = $email_footer ? wpautop(wp_kses_post(wptexturize($email_footer))) : ''; |
|
| 8 | 8 | ?> |
| 9 | 9 | </div> |
| 10 | 10 | </td> |
@@ -1,16 +1,16 @@ 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 | -if ( !isset( $email_heading ) ) { |
|
| 6 | +if (!isset($email_heading)) { |
|
| 7 | 7 | global $email_heading; |
| 8 | 8 | } |
| 9 | 9 | ?> |
| 10 | 10 | <!DOCTYPE html> |
| 11 | 11 | <html dir="<?php echo is_rtl() ? 'rtl' : 'ltr'?>"> |
| 12 | 12 | <head> |
| 13 | - <meta http-equiv="Content-Type" content="text/html; charset=<?php bloginfo( 'charset' ); ?>" /> |
|
| 13 | + <meta http-equiv="Content-Type" content="text/html; charset=<?php bloginfo('charset'); ?>" /> |
|
| 14 | 14 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
| 15 | 15 | <meta name="robots" content="noindex,nofollow"> |
| 16 | 16 | <title><?php echo wpinv_get_blogname(); ?></title> |
@@ -22,13 +22,13 @@ discard block |
||
| 22 | 22 | <td align="center" valign="top"> |
| 23 | 23 | <div id="template_header_image"> |
| 24 | 24 | <?php |
| 25 | - if ( $img = wpinv_get_option( 'email_header_image' ) ) { |
|
| 26 | - echo '<p style="margin-top:0;"><img style="max-width:100%" src="' . esc_url( $img ) . '" alt="' . esc_attr( wpinv_get_blogname() ) . '" /></p>'; |
|
| 25 | + if ($img = wpinv_get_option('email_header_image')) { |
|
| 26 | + echo '<p style="margin-top:0;"><img style="max-width:100%" src="' . esc_url($img) . '" alt="' . esc_attr(wpinv_get_blogname()) . '" /></p>'; |
|
| 27 | 27 | } |
| 28 | 28 | ?> |
| 29 | 29 | </div> |
| 30 | 30 | <table border="0" cellpadding="0" cellspacing="0" width="100%" id="template_container"> |
| 31 | - <?php if ( !empty( $email_heading ) ) { ?> |
|
| 31 | + <?php if (!empty($email_heading)) { ?> |
|
| 32 | 32 | <tr> |
| 33 | 33 | <td align="center" valign="top"> |
| 34 | 34 | <!-- Header --> |
@@ -1,20 +1,20 @@ |
||
| 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 | -if ( $invoice->needs_payment() ) { |
|
| 8 | +if ($invoice->needs_payment()) { |
|
| 9 | 9 | ?> |
| 10 | - <p><?php printf( __( 'An invoice has been created for you on %s. To pay for this invoice please use the following link: %s', 'invoicing' ), wpinv_get_business_name(), '<a href="' . esc_url( $invoice->get_checkout_payment_url( false, true ) ) . '">' . __( 'Pay Now', 'invoicing' ) . '</a>' ); ?></p> |
|
| 10 | + <p><?php printf(__('An invoice has been created for you on %s. To pay for this invoice please use the following link: %s', 'invoicing'), wpinv_get_business_name(), '<a href="' . esc_url($invoice->get_checkout_payment_url(false, true)) . '">' . __('Pay Now', 'invoicing') . '</a>'); ?></p> |
|
| 11 | 11 | <?php |
| 12 | 12 | } |
| 13 | 13 | |
| 14 | -do_action( 'wpinv_email_invoice_details', $invoice, $email_type, $sent_to_admin ); |
|
| 14 | +do_action('wpinv_email_invoice_details', $invoice, $email_type, $sent_to_admin); |
|
| 15 | 15 | |
| 16 | -do_action( 'wpinv_email_invoice_items', $invoice, $email_type, $sent_to_admin ); |
|
| 16 | +do_action('wpinv_email_invoice_items', $invoice, $email_type, $sent_to_admin); |
|
| 17 | 17 | |
| 18 | -do_action( 'wpinv_email_billing_details', $invoice, $email_type, $sent_to_admin ); |
|
| 18 | +do_action('wpinv_email_billing_details', $invoice, $email_type, $sent_to_admin); |
|
| 19 | 19 | |
| 20 | -do_action( 'wpinv_email_footer', $invoice, $email_type, $sent_to_admin ); |
|
| 21 | 20 | \ No newline at end of file |
| 21 | +do_action('wpinv_email_footer', $invoice, $email_type, $sent_to_admin); |
|
| 22 | 22 | \ No newline at end of file |
@@ -1,19 +1,19 @@ |
||
| 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( 'Hello, a note has just been added to your invoice:', 'invoicing' ); ?></p> |
|
| 10 | -<blockquote class="wpinv-note"><?php echo wpautop( wptexturize( $customer_note ) ) ?></blockquote> |
|
| 11 | -<p><?php _e( 'For your reference, your invoice details are shown below.', 'invoicing' ); ?></p> |
|
| 9 | +<p><?php _e('Hello, a note has just been added to your invoice:', 'invoicing'); ?></p> |
|
| 10 | +<blockquote class="wpinv-note"><?php echo wpautop(wptexturize($customer_note)) ?></blockquote> |
|
| 11 | +<p><?php _e('For your reference, your invoice details are shown below.', 'invoicing'); ?></p> |
|
| 12 | 12 | <?php |
| 13 | -do_action( 'wpinv_email_invoice_details', $invoice, $email_type, $sent_to_admin ); |
|
| 13 | +do_action('wpinv_email_invoice_details', $invoice, $email_type, $sent_to_admin); |
|
| 14 | 14 | |
| 15 | -do_action( 'wpinv_email_invoice_items', $invoice, $email_type, $sent_to_admin ); |
|
| 15 | +do_action('wpinv_email_invoice_items', $invoice, $email_type, $sent_to_admin); |
|
| 16 | 16 | |
| 17 | -do_action( 'wpinv_email_billing_details', $invoice, $email_type, $sent_to_admin ); |
|
| 17 | +do_action('wpinv_email_billing_details', $invoice, $email_type, $sent_to_admin); |
|
| 18 | 18 | |
| 19 | -do_action( 'wpinv_email_footer', $invoice, $email_type, $sent_to_admin ); |
|
| 20 | 19 | \ No newline at end of file |
| 20 | +do_action('wpinv_email_footer', $invoice, $email_type, $sent_to_admin); |
|
| 21 | 21 | \ 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 has been received and is now being processed. Your invoice details are shown below for your reference:", 'invoicing' ); ?></p> |
|
| 9 | +<p><?php _e("Your invoice has been received and is now being processed. 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,10 +1,10 @@ |
||
| 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 | -echo wpautop( wptexturize( $message_body ) ); |
|
| 8 | +echo wpautop(wptexturize($message_body)); |
|
| 9 | 9 | |
| 10 | -do_action( 'wpinv_email_footer', $invoice, $email_type, $sent_to_admin ); |
|
| 11 | 10 | \ No newline at end of file |
| 11 | +do_action('wpinv_email_footer', $invoice, $email_type, $sent_to_admin); |
|
| 12 | 12 | \ No newline at end of file |