@@ -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 | // Load colours |
7 | 8 | $bg = wpinv_get_option( 'email_background_color', '#f5f5f5' ); |
@@ -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_before_billing_details', $invoice ); ?> |
7 | 8 | <div id="wpinv-email-billing"> |
@@ -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 | global $wpinv_euvat, $ajax_cart_details; |
7 | 8 | $ajax_cart_details = $invoice->get_cart_details(); |
@@ -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 | global $wpinv_euvat; |
7 | 8 |
@@ -67,8 +67,9 @@ discard block |
||
67 | 67 | |
68 | 68 | if ( !empty( $args ) ) { |
69 | 69 | // Check for backward compatibility |
70 | - if ( is_string( $args ) ) |
|
71 | - $args = str_replace( '?', '', $args ); |
|
70 | + if ( is_string( $args ) ) { |
|
71 | + $args = str_replace( '?', '', $args ); |
|
72 | + } |
|
72 | 73 | |
73 | 74 | $args = wp_parse_args( $args ); |
74 | 75 | |
@@ -87,8 +88,9 @@ discard block |
||
87 | 88 | |
88 | 89 | if ( !empty( $args ) ) { |
89 | 90 | // Check for backward compatibility |
90 | - if ( is_string( $args ) ) |
|
91 | - $args = str_replace( '?', '', $args ); |
|
91 | + if ( is_string( $args ) ) { |
|
92 | + $args = str_replace( '?', '', $args ); |
|
93 | + } |
|
92 | 94 | |
93 | 95 | $args = wp_parse_args( $args ); |
94 | 96 | |
@@ -108,8 +110,9 @@ discard block |
||
108 | 110 | |
109 | 111 | if ( !empty( $args ) ) { |
110 | 112 | // Check for backward compatibility |
111 | - if ( is_string( $args ) ) |
|
112 | - $args = str_replace( '?', '', $args ); |
|
113 | + if ( is_string( $args ) ) { |
|
114 | + $args = str_replace( '?', '', $args ); |
|
115 | + } |
|
113 | 116 | |
114 | 117 | $args = wp_parse_args( $args ); |
115 | 118 | |
@@ -132,8 +135,9 @@ discard block |
||
132 | 135 | |
133 | 136 | if ( ! empty( $args ) ) { |
134 | 137 | // Check for backward compatibility |
135 | - if ( is_string( $args ) ) |
|
136 | - $args = str_replace( '?', '', $args ); |
|
138 | + if ( is_string( $args ) ) { |
|
139 | + $args = str_replace( '?', '', $args ); |
|
140 | + } |
|
137 | 141 | |
138 | 142 | $args = wp_parse_args( $args ); |
139 | 143 | |
@@ -148,8 +152,9 @@ discard block |
||
148 | 152 | $success_page = wpinv_get_option( 'success_page', 0 ); |
149 | 153 | $success_page = get_permalink( $success_page ); |
150 | 154 | |
151 | - if ( $query_string ) |
|
152 | - $success_page .= $query_string; |
|
155 | + if ( $query_string ) { |
|
156 | + $success_page .= $query_string; |
|
157 | + } |
|
153 | 158 | |
154 | 159 | return apply_filters( 'wpinv_success_page_url', $success_page ); |
155 | 160 | } |
@@ -158,8 +163,9 @@ discard block |
||
158 | 163 | $uri = wpinv_get_option( 'failure_page', '' ); |
159 | 164 | $uri = ! empty( $uri ) ? trailingslashit( get_permalink( $uri ) ) : home_url(); |
160 | 165 | |
161 | - if ( $extras ) |
|
162 | - $uri .= $extras; |
|
166 | + if ( $extras ) { |
|
167 | + $uri .= $extras; |
|
168 | + } |
|
163 | 169 | |
164 | 170 | return apply_filters( 'wpinv_get_failed_transaction_uri', $uri ); |
165 | 171 | } |