| @@ -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 | /** | 
| @@ -103,7 +103,10 @@ discard block | ||
| 103 | 103 | <?php } ?> | 
| 104 | 104 | |
| 105 | 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;"'; ?>> | |
| 106 | +            <tr class="wpinv_cart_footer_row wpinv_cart_subtotal_row"<?php if ( !wpinv_is_cart_taxed() ) { | |
| 107 | + echo ' style="display:none;"'; | |
| 108 | +} | |
| 109 | +?>> | |
| 107 | 110 | <?php do_action( 'wpinv_checkout_table_subtotal_first', $cart_items ); ?> | 
| 108 | 111 | <td colspan="<?php echo ( $cart_columns - 1 ); ?>" class="wpinv_cart_subtotal_label text-right"> | 
| 109 | 112 | <strong><?php _e( 'Sub-Total', 'invoicing' ); ?>:</strong> | 
| @@ -118,7 +121,10 @@ discard block | ||
| 118 | 121 | <?php $wpi_cart_columns = $cart_columns - 1; wpinv_cart_discounts_html( $cart_items ); ?> | 
| 119 | 122 | |
| 120 | 123 |          <?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;"'; ?>> | |
| 124 | +            <tr class="wpinv_cart_footer_row wpinv_cart_tax_row"<?php if( !wpinv_is_cart_taxed() ) { | |
| 125 | + echo ' style="display:none;"'; | |
| 126 | +} | |
| 127 | +?>> | |
| 122 | 128 | <?php do_action( 'wpinv_checkout_table_tax_first' ); ?> | 
| 123 | 129 | <td colspan="<?php echo ( $cart_columns - 1 ); ?>" class="wpinv_cart_tax_label text-right"> | 
| 124 | 130 | <strong><?php echo $tax_label; ?>:</strong> | 
| @@ -1,7 +1,8 @@ | ||
| 1 | 1 | <?php | 
| 2 | 2 | // don't load directly | 
| 3 | -if ( !defined('ABSPATH') ) | |
| 3 | +if ( !defined('ABSPATH') ) { | |
| 4 | 4 |      die('-1'); | 
| 5 | +} | |
| 5 | 6 | |
| 6 | 7 | $email_footer = apply_filters( 'wpinv_email_footer_text', wpinv_get_option( 'email_footer_text' ) ); | 
| 7 | 8 | $email_footer = $email_footer ? wpautop( wp_kses_post( wptexturize( $email_footer ) ) ) : ''; | 
| @@ -1,7 +1,8 @@ | ||
| 1 | 1 | <?php | 
| 2 | 2 | // don't load directly | 
| 3 | -if ( !defined('ABSPATH') ) | |
| 3 | +if ( !defined('ABSPATH') ) { | |
| 4 | 4 |      die('-1'); | 
| 5 | +} | |
| 5 | 6 | |
| 6 | 7 |  if ( !isset( $email_heading ) ) { | 
| 7 | 8 | global $email_heading; | 
| @@ -1,7 +1,8 @@ | ||
| 1 | 1 | <?php | 
| 2 | 2 | // don't load directly | 
| 3 | -if ( !defined('ABSPATH') ) | |
| 3 | +if ( !defined('ABSPATH') ) { | |
| 4 | 4 |      die('-1'); | 
| 5 | +} | |
| 5 | 6 | |
| 6 | 7 | do_action( 'wpinv_email_header', $email_heading, $invoice, $email_type, $sent_to_admin ); | 
| 7 | 8 | |
| @@ -1,7 +1,8 @@ | ||
| 1 | 1 | <?php | 
| 2 | 2 | // don't load directly | 
| 3 | -if ( !defined('ABSPATH') ) | |
| 3 | +if ( !defined('ABSPATH') ) { | |
| 4 | 4 |      die('-1'); | 
| 5 | +} | |
| 5 | 6 | |
| 6 | 7 | do_action( 'wpinv_email_header', $email_heading, $invoice, $email_type, $sent_to_admin ); | 
| 7 | 8 | |
| @@ -1,7 +1,8 @@ | ||
| 1 | 1 | <?php | 
| 2 | 2 | // don't load directly | 
| 3 | -if ( !defined('ABSPATH') ) | |
| 3 | +if ( !defined('ABSPATH') ) { | |
| 4 | 4 |      die('-1'); | 
| 5 | +} | |
| 5 | 6 | |
| 6 | 7 | do_action( 'wpinv_email_header', $email_heading, $invoice, $email_type, $sent_to_admin ); | 
| 7 | 8 | ?> | 
| @@ -1,7 +1,8 @@ | ||
| 1 | 1 | <?php | 
| 2 | 2 | // don't load directly | 
| 3 | -if ( !defined('ABSPATH') ) | |
| 3 | +if ( !defined('ABSPATH') ) { | |
| 4 | 4 |      die('-1'); | 
| 5 | +} | |
| 5 | 6 | |
| 6 | 7 | do_action( 'wpinv_email_header', $email_heading, $invoice, $email_type, $sent_to_admin ); | 
| 7 | 8 | |
| @@ -1,7 +1,8 @@ | ||
| 1 | 1 | <?php | 
| 2 | 2 | // don't load directly | 
| 3 | -if ( !defined('ABSPATH') ) | |
| 3 | +if ( !defined('ABSPATH') ) { | |
| 4 | 4 |      die('-1'); | 
| 5 | +} | |
| 5 | 6 | |
| 6 | 7 | do_action( 'wpinv_email_header', $email_heading, $invoice, $email_type, $sent_to_admin ); | 
| 7 | 8 | ?> |