Passed
Push — master ( ec3085...0b939f )
by Brian
04:46
created
includes/data/admin-settings.php 1 patch
Spacing   +163 added lines, -163 removed lines patch added patch discarded remove patch
@@ -8,205 +8,205 @@  discard block
 block discarded – undo
8 8
  * @version 1.0.19
9 9
  */
10 10
 
11
-defined( 'ABSPATH' ) || exit;
11
+defined('ABSPATH') || exit;
12 12
 
13
-$pages = wpinv_get_pages( true );
13
+$pages = wpinv_get_pages(true);
14 14
     
15 15
 $currencies = wpinv_get_currencies();
16 16
     
17 17
 $currency_code_options = array();
18
-foreach ( $currencies as $code => $name ) {
19
-    $currency_code_options[ $code ] = $code . ' - ' . $name . ' (' . wpinv_currency_symbol( $code ) . ')';
18
+foreach ($currencies as $code => $name) {
19
+    $currency_code_options[$code] = $code . ' - ' . $name . ' (' . wpinv_currency_symbol($code) . ')';
20 20
 }
21 21
 
22 22
 $invoice_number_padd_options = array();
23
-for ( $i = 0; $i <= 20; $i++ ) {
23
+for ($i = 0; $i <= 20; $i++) {
24 24
     $invoice_number_padd_options[$i] = $i;
25 25
 }
26 26
     
27 27
 $currency_symbol = wpinv_currency_symbol();
28 28
     
29 29
 $last_number = $reset_number = '';
30
-if ( $last_invoice_number = get_option( 'wpinv_last_invoice_number' ) ) {
31
-    $last_invoice_number = preg_replace( '/[^0-9]/', '', $last_invoice_number );
30
+if ($last_invoice_number = get_option('wpinv_last_invoice_number')) {
31
+    $last_invoice_number = preg_replace('/[^0-9]/', '', $last_invoice_number);
32 32
 
33
-    if ( !empty( $last_invoice_number ) ) {
34
-        $last_number = ' ' . wp_sprintf( __( "( Last Invoice's sequential number: <b>%s</b> )", 'invoicing' ), $last_invoice_number );
33
+    if (!empty($last_invoice_number)) {
34
+        $last_number = ' ' . wp_sprintf(__("( Last Invoice's sequential number: <b>%s</b> )", 'invoicing'), $last_invoice_number);
35 35
     }
36 36
 
37 37
     $nonce = wp_create_nonce('reset_invoice_count');
38
-    $reset_number = '<a href="'.add_query_arg(array('reset_invoice_count' => 1, '_nonce' => $nonce)).'" class="btn button">'.__('Force Reset Sequence', 'invoicing' ). '</a>';
38
+    $reset_number = '<a href="' . add_query_arg(array('reset_invoice_count' => 1, '_nonce' => $nonce)) . '" class="btn button">' . __('Force Reset Sequence', 'invoicing') . '</a>';
39 39
 }
40 40
     
41 41
 $alert_wrapper_start = '<p style="color: #F00">';
42 42
 $alert_wrapper_close = '</p>';
43 43
 
44 44
 return array(
45
-    'general' => apply_filters( 'wpinv_settings_general',
45
+    'general' => apply_filters('wpinv_settings_general',
46 46
         array(
47 47
             'main' => array(
48 48
                 'location_settings' => array(
49 49
                     'id'   => 'location_settings',
50
-                    'name' => '<h3>' . __( 'Default Location', 'invoicing' ) . '</h3>',
50
+                    'name' => '<h3>' . __('Default Location', 'invoicing') . '</h3>',
51 51
                     'desc' => '',
52 52
                     'type' => 'header',
53 53
                 ),
54 54
                 'default_country' => array(
55 55
                     'id'      => 'default_country',
56
-                    'name'    => __( 'Default Country', 'invoicing' ),
57
-                    'desc'    => __( 'Where does your store operate from?', 'invoicing' ),
56
+                    'name'    => __('Default Country', 'invoicing'),
57
+                    'desc'    => __('Where does your store operate from?', 'invoicing'),
58 58
                     'type'    => 'select',
59 59
                     'options' => wpinv_get_country_list(),
60 60
                     'std'     => 'GB',
61 61
                     'class'   => 'wpi_select2',
62
-                    'placeholder' => __( 'Select a country', 'invoicing' ),
62
+                    'placeholder' => __('Select a country', 'invoicing'),
63 63
                 ),
64 64
                 'default_state' => array(
65 65
                     'id'      => 'default_state',
66
-                    'name'    => __( 'Default State / Province', 'invoicing' ),
67
-                    'desc'    => __( 'What state / province does your store operate from?', 'invoicing' ),
66
+                    'name'    => __('Default State / Province', 'invoicing'),
67
+                    'desc'    => __('What state / province does your store operate from?', 'invoicing'),
68 68
                     'type'    => 'country_states',
69 69
                     'class'   => 'wpi_select2',
70
-                    'placeholder' => __( 'Select a state', 'invoicing' ),
70
+                    'placeholder' => __('Select a state', 'invoicing'),
71 71
                 ),
72 72
                 'store_name' => array(
73 73
                     'id'   => 'store_name',
74
-                    'name' => __( 'Store Name', 'invoicing' ),
75
-                    'desc' => __( 'Store name to print on invoices.', 'invoicing' ),
74
+                    'name' => __('Store Name', 'invoicing'),
75
+                    'desc' => __('Store name to print on invoices.', 'invoicing'),
76 76
                     'std'     => get_option('blogname'),
77 77
                     'type' => 'text',
78 78
                 ),
79 79
                 'logo' => array(
80 80
                     'id'   => 'logo',
81
-                    'name' => __( 'Logo URL', 'invoicing' ),
82
-                    'desc' => __( 'Store logo to print on invoices.', 'invoicing' ),
81
+                    'name' => __('Logo URL', 'invoicing'),
82
+                    'desc' => __('Store logo to print on invoices.', 'invoicing'),
83 83
                     'type' => 'text',
84 84
                 ),
85 85
                 'logo_width'      => array(
86 86
                     'id'          => 'logo_width',
87
-                    'name'        => __( 'Logo width', 'invoicing' ),
88
-                    'desc'        => __( 'Logo width to use in invoice image.', 'invoicing' ),
87
+                    'name'        => __('Logo width', 'invoicing'),
88
+                    'desc'        => __('Logo width to use in invoice image.', 'invoicing'),
89 89
                     'type'        => 'number',
90
-                    'placeholder' => __( 'Auto', 'invoicing' ),
90
+                    'placeholder' => __('Auto', 'invoicing'),
91 91
                 ),
92 92
                 'logo_height'     => array(
93 93
                     'id'          => 'logo_height',
94
-                    'name'        => __( 'Logo height', 'invoicing' ),
95
-                    'desc'        => __( 'Logo height to use in invoice image.', 'invoicing' ),
94
+                    'name'        => __('Logo height', 'invoicing'),
95
+                    'desc'        => __('Logo height to use in invoice image.', 'invoicing'),
96 96
                     'type'        => 'number',
97
-                    'placeholder' => __( 'Auto', 'invoicing' ),
97
+                    'placeholder' => __('Auto', 'invoicing'),
98 98
                 ),
99 99
                 'store_address' => array(
100 100
                     'id'   => 'store_address',
101
-                    'name' => __( 'Store Address', 'invoicing' ),
102
-                    'desc' => __( 'Enter the store address to display on invoice', 'invoicing' ),
101
+                    'name' => __('Store Address', 'invoicing'),
102
+                    'desc' => __('Enter the store address to display on invoice', 'invoicing'),
103 103
                     'type' => 'textarea',
104 104
                 ),
105 105
                 'page_settings' => array(
106 106
                     'id'   => 'page_settings',
107
-                    'name' => '<h3>' . __( 'Page Settings', 'invoicing' ) . '</h3>',
107
+                    'name' => '<h3>' . __('Page Settings', 'invoicing') . '</h3>',
108 108
                     'desc' => '',
109 109
                     'type' => 'header',
110 110
                 ),
111 111
                 'checkout_page' => array(
112 112
                     'id'          => 'checkout_page',
113
-                    'name'        => __( 'Checkout Page', 'invoicing' ),
114
-                    'desc'        => __( 'This is the checkout page where buyers will complete their payments. The <b>[wpinv_checkout]</b> short code must be on this page.', 'invoicing' ),
113
+                    'name'        => __('Checkout Page', 'invoicing'),
114
+                    'desc'        => __('This is the checkout page where buyers will complete their payments. The <b>[wpinv_checkout]</b> short code must be on this page.', 'invoicing'),
115 115
                     'type'        => 'select',
116 116
                     'options'     => $pages,
117 117
                     'class'       => 'wpi_select2',
118
-                    'placeholder' => __( 'Select a page', 'invoicing' ),
118
+                    'placeholder' => __('Select a page', 'invoicing'),
119 119
                     'help-tip'    => true,
120 120
                 ),
121 121
                 'success_page' => array(
122 122
                     'id'          => 'success_page',
123
-                    'name'        => __( 'Success Page', 'invoicing' ),
124
-                    'desc'        => __( 'This is the page buyers are sent to after completing their payments. The <b>[wpinv_receipt]</b> short code should be on this page.', 'invoicing' ),
123
+                    'name'        => __('Success Page', 'invoicing'),
124
+                    'desc'        => __('This is the page buyers are sent to after completing their payments. The <b>[wpinv_receipt]</b> short code should be on this page.', 'invoicing'),
125 125
                     'type'        => 'select',
126 126
                     'options'     => $pages,
127 127
                     'class'       => 'wpi_select2',
128
-                    'placeholder' => __( 'Select a page', 'invoicing' ),
128
+                    'placeholder' => __('Select a page', 'invoicing'),
129 129
                     'help-tip'    => true,
130 130
                 ),
131 131
                 'failure_page' => array(
132 132
                     'id'          => 'failure_page',
133
-                    'name'        => __( 'Failed Transaction Page', 'invoicing' ),
134
-                    'desc'        => __( 'This is the page buyers are sent to if their transaction is cancelled or fails.', 'invoicing' ),
133
+                    'name'        => __('Failed Transaction Page', 'invoicing'),
134
+                    'desc'        => __('This is the page buyers are sent to if their transaction is cancelled or fails.', 'invoicing'),
135 135
                     'type'        => 'select',
136 136
                     'options'     => $pages,
137 137
                     'class'       => 'wpi_select2',
138
-                    'placeholder' => __( 'Select a page', 'invoicing' ),
138
+                    'placeholder' => __('Select a page', 'invoicing'),
139 139
                     'help-tip'    => true,
140 140
                 ),
141 141
                 'invoice_history_page' => array(
142 142
                     'id'          => 'invoice_history_page',
143
-                    'name'        => __( 'Invoice History Page', 'invoicing' ),
144
-                    'desc'        => __( 'This page shows an invoice history for the current user. The <b>[wpinv_history]</b> short code should be on this page.', 'invoicing' ),
143
+                    'name'        => __('Invoice History Page', 'invoicing'),
144
+                    'desc'        => __('This page shows an invoice history for the current user. The <b>[wpinv_history]</b> short code should be on this page.', 'invoicing'),
145 145
                     'type'        => 'select',
146 146
                     'options'     => $pages,
147 147
                     'class'       => 'wpi_select2',
148
-                    'placeholder' => __( 'Select a page', 'invoicing' ),
148
+                    'placeholder' => __('Select a page', 'invoicing'),
149 149
                     'help-tip'    => true,
150 150
                 ),
151 151
                 'invoice_subscription_page' => array(
152 152
                     'id'          => 'invoice_subscription_page',
153
-                    'name'        => __( 'Invoice Subscriptions Page', 'invoicing' ),
154
-                    'desc'        => __( 'This page shows subscriptions history for the current user. The <b>[wpinv_subscriptions]</b> short code should be on this page.', 'invoicing' ),
153
+                    'name'        => __('Invoice Subscriptions Page', 'invoicing'),
154
+                    'desc'        => __('This page shows subscriptions history for the current user. The <b>[wpinv_subscriptions]</b> short code should be on this page.', 'invoicing'),
155 155
                     'type'        => 'select',
156 156
                     'options'     => $pages,
157 157
                     'class'       => 'wpi_select2',
158
-                    'placeholder' => __( 'Select a page', 'invoicing' ),
158
+                    'placeholder' => __('Select a page', 'invoicing'),
159 159
                     'help-tip'    => true,
160 160
                 ),
161 161
             ),
162 162
             'currency_section' => array(
163 163
                 'currency_settings' => array(
164 164
                     'id'   => 'currency_settings',
165
-                    'name' => '<h3>' . __( 'Currency Settings', 'invoicing' ) . '</h3>',
165
+                    'name' => '<h3>' . __('Currency Settings', 'invoicing') . '</h3>',
166 166
                     'desc' => '',
167 167
                     'type' => 'header',
168 168
                 ),
169 169
                 'currency' => array(
170 170
                     'id'      => 'currency',
171
-                    'name'    => __( 'Currency', 'invoicing' ),
172
-                    'desc'    => __( 'Choose your currency. Note that some payment gateways have currency restrictions.', 'invoicing' ),
171
+                    'name'    => __('Currency', 'invoicing'),
172
+                    'desc'    => __('Choose your currency. Note that some payment gateways have currency restrictions.', 'invoicing'),
173 173
                     'type'    => 'select',
174 174
                     'class'       => 'wpi_select2',
175 175
                     'options' => $currency_code_options,
176 176
                 ),
177 177
                 'currency_position' => array(
178 178
                     'id'      => 'currency_position',
179
-                    'name'    => __( 'Currency Position', 'invoicing' ),
180
-                    'desc'    => __( 'Choose the location of the currency sign.', 'invoicing' ),
179
+                    'name'    => __('Currency Position', 'invoicing'),
180
+                    'desc'    => __('Choose the location of the currency sign.', 'invoicing'),
181 181
                     'type'    => 'select',
182 182
                     'class'   => 'wpi_select2',
183 183
                     'options'  => array(
184
-                        'left'        => __( 'Left', 'invoicing' ) . ' (' . $currency_symbol . wpinv_format_amount( '99.99' ) . ')',
185
-                        'right'       => __( 'Right', 'invoicing' ) . ' ('. wpinv_format_amount( '99.99' ) . $currency_symbol . ')',
186
-                        'left_space'  => __( 'Left with space', 'invoicing' ) . ' (' . $currency_symbol . ' ' . wpinv_format_amount( '99.99' ) . ')',
187
-                        'right_space' => __( 'Right with space', 'invoicing' ) . ' (' . wpinv_format_amount( '99.99' ) . ' ' . $currency_symbol . ')'
184
+                        'left'        => __('Left', 'invoicing') . ' (' . $currency_symbol . wpinv_format_amount('99.99') . ')',
185
+                        'right'       => __('Right', 'invoicing') . ' (' . wpinv_format_amount('99.99') . $currency_symbol . ')',
186
+                        'left_space'  => __('Left with space', 'invoicing') . ' (' . $currency_symbol . ' ' . wpinv_format_amount('99.99') . ')',
187
+                        'right_space' => __('Right with space', 'invoicing') . ' (' . wpinv_format_amount('99.99') . ' ' . $currency_symbol . ')'
188 188
                     )
189 189
                 ),
190 190
                 'thousands_separator' => array(
191 191
                     'id'   => 'thousands_separator',
192
-                    'name' => __( 'Thousands Separator', 'invoicing' ),
193
-                    'desc' => __( 'The symbol (usually , or .) to separate thousands', 'invoicing' ),
192
+                    'name' => __('Thousands Separator', 'invoicing'),
193
+                    'desc' => __('The symbol (usually , or .) to separate thousands', 'invoicing'),
194 194
                     'type' => 'text',
195 195
                     'size' => 'small',
196 196
                     'std'  => ',',
197 197
                 ),
198 198
                 'decimal_separator' => array(
199 199
                     'id'   => 'decimal_separator',
200
-                    'name' => __( 'Decimal Separator', 'invoicing' ),
201
-                    'desc' => __( 'The symbol (usually , or .) to separate decimal points', 'invoicing' ),
200
+                    'name' => __('Decimal Separator', 'invoicing'),
201
+                    'desc' => __('The symbol (usually , or .) to separate decimal points', 'invoicing'),
202 202
                     'type' => 'text',
203 203
                     'size' => 'small',
204 204
                     'std'  => '.',
205 205
                 ),
206 206
                 'decimals' => array(
207 207
                     'id'   => 'decimals',
208
-                    'name' => __( 'Number of Decimals', 'invoicing' ),
209
-                    'desc' => __( 'This sets the number of decimal points shown in displayed prices.', 'invoicing' ),
208
+                    'name' => __('Number of Decimals', 'invoicing'),
209
+                    'desc' => __('This sets the number of decimal points shown in displayed prices.', 'invoicing'),
210 210
                     'type' => 'number',
211 211
                     'size' => 'small',
212 212
                     'std'  => '2',
@@ -218,21 +218,21 @@  discard block
 block discarded – undo
218 218
             'labels' => array(
219 219
                 'labels' => array(
220 220
                     'id'   => 'labels_settings',
221
-                    'name' => '<h3>' . __( 'Invoice Labels', 'invoicing' ) . '</h3>',
221
+                    'name' => '<h3>' . __('Invoice Labels', 'invoicing') . '</h3>',
222 222
                     'desc' => '',
223 223
                     'type' => 'header',
224 224
                 ),
225 225
                 'vat_invoice_notice_label' => array(
226 226
                     'id' => 'vat_invoice_notice_label',
227
-                    'name' => __( 'Invoice Notice Label', 'invoicing' ),
228
-                    'desc' => __( 'Use this to add an invoice notice section (label) to your invoices', 'invoicing' ),
227
+                    'name' => __('Invoice Notice Label', 'invoicing'),
228
+                    'desc' => __('Use this to add an invoice notice section (label) to your invoices', 'invoicing'),
229 229
                     'type' => 'text',
230 230
                     'size' => 'regular',
231 231
                 ),
232 232
                 'vat_invoice_notice' => array(
233 233
                     'id' => 'vat_invoice_notice',
234
-                    'name' => __( 'Invoice notice', 'invoicing' ),
235
-                    'desc' =>   __( 'Use this to add an invoice notice section (description) to your invoices', 'invoicing' ),
234
+                    'name' => __('Invoice notice', 'invoicing'),
235
+                    'desc' =>   __('Use this to add an invoice notice section (description) to your invoices', 'invoicing'),
236 236
                     'type' => 'text',
237 237
                     'size' => 'regular',
238 238
                 ),
@@ -244,22 +244,22 @@  discard block
 block discarded – undo
244 244
             'main' => array(
245 245
                 'gateway_settings' => array(
246 246
                     'id'   => 'api_header',
247
-                    'name' => '<h3>' . __( 'Gateway Settings', 'invoicing' ) . '</h3>',
247
+                    'name' => '<h3>' . __('Gateway Settings', 'invoicing') . '</h3>',
248 248
                     'desc' => '',
249 249
                     'type' => 'header',
250 250
                 ),
251 251
                 'gateways' => array(
252 252
                     'id'      => 'gateways',
253
-                    'name'    => __( 'Payment Gateways', 'invoicing' ),
254
-                    'desc'    => __( 'Choose the payment gateways you want to enable.', 'invoicing' ),
253
+                    'name'    => __('Payment Gateways', 'invoicing'),
254
+                    'desc'    => __('Choose the payment gateways you want to enable.', 'invoicing'),
255 255
                     'type'    => 'gateways',
256
-                    'std'     => array( 'manual'=>1 ),
256
+                    'std'     => array('manual'=>1),
257 257
                     'options' => wpinv_get_payment_gateways(),
258 258
                 ),
259 259
                 'default_gateway' => array(
260 260
                     'id'      => 'default_gateway',
261
-                    'name'    => __( 'Default Gateway', 'invoicing' ),
262
-                    'desc'    => __( 'This gateway will be loaded automatically with the checkout page.', 'invoicing' ),
261
+                    'name'    => __('Default Gateway', 'invoicing'),
262
+                    'desc'    => __('This gateway will be loaded automatically with the checkout page.', 'invoicing'),
263 263
                     'type'    => 'gateway_select',
264 264
                     'std'     => 'manual',
265 265
                     'class'   => 'wpi_select2',
@@ -274,32 +274,32 @@  discard block
 block discarded – undo
274 274
             'main' => array(
275 275
                 'tax_settings' => array(
276 276
                     'id'   => 'tax_settings',
277
-                    'name' => '<h3>' . __( 'Tax Settings', 'invoicing' ) . '</h3>',
277
+                    'name' => '<h3>' . __('Tax Settings', 'invoicing') . '</h3>',
278 278
                     'type' => 'header',
279 279
                 ),
280 280
 
281 281
                 'enable_taxes' => array(
282 282
                     'id'       => 'enable_taxes',
283
-                    'name'     => __( 'Enable Taxes', 'invoicing' ),
284
-                    'desc'     => __( 'Enable tax rates and calculations.', 'invoicing' ),
283
+                    'name'     => __('Enable Taxes', 'invoicing'),
284
+                    'desc'     => __('Enable tax rates and calculations.', 'invoicing'),
285 285
                     'type'     => 'checkbox',
286 286
                     'std'      => 0,
287 287
                 ),
288 288
 
289 289
                 'tax_subtotal_rounding' => array(
290 290
                     'id'                => 'tax_subtotal_rounding',
291
-                    'name'              => __( 'Rounding', 'invoicing' ),
292
-                    'desc'              => __( 'Round tax at subtotal level, instead of rounding per tax rate', 'invoicing' ),
291
+                    'name'              => __('Rounding', 'invoicing'),
292
+                    'desc'              => __('Round tax at subtotal level, instead of rounding per tax rate', 'invoicing'),
293 293
                     'type'              => 'checkbox',
294 294
                     'std'               => 1,
295 295
                 ),
296 296
 
297 297
                 'prices_include_tax' => array(
298 298
                     'id'      => 'prices_include_tax',
299
-                    'name'    => __( 'Prices entered with tax', 'invoicing' ),
299
+                    'name'    => __('Prices entered with tax', 'invoicing'),
300 300
                     'options' => array(
301
-                        'yes' => __( 'Yes, I will enter prices inclusive of tax', 'invoicing' ),
302
-                        'no'  => __( 'No, I will enter prices exclusive of tax', 'invoicing' ),
301
+                        'yes' => __('Yes, I will enter prices inclusive of tax', 'invoicing'),
302
+                        'no'  => __('No, I will enter prices exclusive of tax', 'invoicing'),
303 303
                     ),
304 304
                     'type'    => 'select',
305 305
                     'std'     => 'no',
@@ -307,10 +307,10 @@  discard block
 block discarded – undo
307 307
 
308 308
                 'tax_base'              => array(
309 309
                     'id'                => 'tax_base',
310
-                    'name'              => __( 'Calculate tax based on', 'invoicing' ),
310
+                    'name'              => __('Calculate tax based on', 'invoicing'),
311 311
                     'options'           => array(
312
-                        'billing'       => __( 'Customer billing address', 'invoicing' ),
313
-                        'base'          => __( 'Shop base address', 'invoicing' ),
312
+                        'billing'       => __('Customer billing address', 'invoicing'),
313
+                        'base'          => __('Shop base address', 'invoicing'),
314 314
                     ),
315 315
                     'type'              => 'select',
316 316
                     'std'               => 'billing',
@@ -318,10 +318,10 @@  discard block
 block discarded – undo
318 318
 
319 319
                 'tax_display_totals'    => array(
320 320
                     'id'                => 'tax_display_totals',
321
-                    'name'              => __( 'Display tax totals', 'invoicing' ),
321
+                    'name'              => __('Display tax totals', 'invoicing'),
322 322
                     'options'           => array(
323
-                        'single'        => __( 'As a single total', 'invoicing' ),
324
-                        'individual'    => __( 'As individual tax rates', 'invoicing' ),
323
+                        'single'        => __('As a single total', 'invoicing'),
324
+                        'individual'    => __('As individual tax rates', 'invoicing'),
325 325
                     ),
326 326
                     'type'              => 'select',
327 327
                     'std'               => 'individual',
@@ -329,8 +329,8 @@  discard block
 block discarded – undo
329 329
 
330 330
                 'tax_rate' => array(
331 331
                     'id'   => 'tax_rate',
332
-                    'name' => __( 'Fallback Tax Rate', 'invoicing' ),
333
-                    'desc' => __( 'Enter a percentage, such as 6.5. Customers not in a specific rate will be charged this rate.', 'invoicing' ),
332
+                    'name' => __('Fallback Tax Rate', 'invoicing'),
333
+                    'desc' => __('Enter a percentage, such as 6.5. Customers not in a specific rate will be charged this rate.', 'invoicing'),
334 334
                     'type' => 'number',
335 335
                     'size' => 'small',
336 336
                     'min'  => '0',
@@ -342,8 +342,8 @@  discard block
 block discarded – undo
342 342
             'rates' => array(
343 343
                 'tax_rates' => array(
344 344
                     'id'   => 'tax_rates',
345
-                    'name' => '<h3>' . __( 'Tax Rates', 'invoicing' ) . '</h3>',
346
-                    'desc' => __( 'Enter tax rates for specific regions.', 'invoicing' ),
345
+                    'name' => '<h3>' . __('Tax Rates', 'invoicing') . '</h3>',
346
+                    'desc' => __('Enter tax rates for specific regions.', 'invoicing'),
347 347
                     'type' => 'tax_rates',
348 348
                 ),
349 349
             ),
@@ -352,45 +352,45 @@  discard block
 block discarded – undo
352 352
 
353 353
                 'vat_company_name' => array(
354 354
                     'id' => 'vat_company_name',
355
-                    'name' => __( 'Company Name', 'invoicing' ),
356
-                    'desc' => wp_sprintf(__( 'Verify your company name and  VAT number on the %sEU VIES System.%s', 'invoicing' ), '<a href="http://ec.europa.eu/taxation_customs/vies/" target="_blank">', '</a>' ),
355
+                    'name' => __('Company Name', 'invoicing'),
356
+                    'desc' => wp_sprintf(__('Verify your company name and  VAT number on the %sEU VIES System.%s', 'invoicing'), '<a href="http://ec.europa.eu/taxation_customs/vies/" target="_blank">', '</a>'),
357 357
                     'type' => 'text',
358 358
                     'size' => 'regular',
359 359
                 ),
360 360
 
361 361
                 'vat_number' => array(
362 362
                     'id'   => 'vat_number',
363
-                    'name' => __( 'VAT Number', 'invoicing' ),
364
-                    'desc' => __( 'Enter your VAT number including the country identifier, eg: GB123456789', 'invoicing' ),
363
+                    'name' => __('VAT Number', 'invoicing'),
364
+                    'desc' => __('Enter your VAT number including the country identifier, eg: GB123456789', 'invoicing'),
365 365
                     'type' => 'text',
366 366
                     'size' => 'regular',
367 367
                 ),
368 368
 
369 369
                 'vat_prevent_b2c_purchase' => array(
370 370
                     'id' => 'vat_prevent_b2c_purchase',
371
-                    'name' => __( 'Prevent B2C Sales', 'invoicing' ),
372
-                    'desc' => __( 'Require everyone in the EU to provide a VAT number.', 'invoicing' ),
371
+                    'name' => __('Prevent B2C Sales', 'invoicing'),
372
+                    'desc' => __('Require everyone in the EU to provide a VAT number.', 'invoicing'),
373 373
                     'type' => 'checkbox'
374 374
                 ),
375 375
 
376 376
                 'validate_vat_number' => array(
377 377
                     'id'   => 'validate_vat_number',
378
-                    'name' => __( 'Validate VAT Number', 'invoicing' ),
379
-                    'desc' => __( 'Validate VAT numbers with VIES.', 'invoicing' ),
378
+                    'name' => __('Validate VAT Number', 'invoicing'),
379
+                    'desc' => __('Validate VAT numbers with VIES.', 'invoicing'),
380 380
                     'type' => 'checkbox'
381 381
                 ),
382 382
 
383 383
                 'vat_same_country_rule' => array(
384 384
                     'id'          => 'vat_same_country_rule',
385
-                    'name'        => __( 'Same Country Rule', 'invoicing' ),
386
-                    'desc'        => __( 'What should happen if a customer is from the same country as your business?', 'invoicing' ),
385
+                    'name'        => __('Same Country Rule', 'invoicing'),
386
+                    'desc'        => __('What should happen if a customer is from the same country as your business?', 'invoicing'),
387 387
                     'type'        => 'select',
388 388
                     'options'     => array(
389
-                        'no'        => __( 'Do not charge tax', 'invoicing' ),
390
-                        'always'    => __( 'Charge tax unless vat number is validated', 'invoicing' ),
391
-                        'vat_too'   => __( 'Charge tax even if vat number is validated', 'invoicing' )
389
+                        'no'        => __('Do not charge tax', 'invoicing'),
390
+                        'always'    => __('Charge tax unless vat number is validated', 'invoicing'),
391
+                        'vat_too'   => __('Charge tax even if vat number is validated', 'invoicing')
392 392
                     ),
393
-                    'placeholder' => __( 'Select an option', 'invoicing' ),
393
+                    'placeholder' => __('Select an option', 'invoicing'),
394 394
                     'std'         => 'vat_too',
395 395
                 ),
396 396
 
@@ -404,59 +404,59 @@  discard block
 block discarded – undo
404 404
             'main' => array(
405 405
                 'email_settings_header' => array(
406 406
                     'id'   => 'email_settings_header',
407
-                    'name' => '<h3>' . __( 'Email Sender Options', 'invoicing' ) . '</h3>',
407
+                    'name' => '<h3>' . __('Email Sender Options', 'invoicing') . '</h3>',
408 408
                     'type' => 'header',
409 409
                 ),
410 410
                 'email_from_name' => array(
411 411
                     'id'   => 'email_from_name',
412
-                    'name' => __( 'From Name', 'invoicing' ),
413
-                    'desc' => __( 'Enter the sender\'s name appears in outgoing invoice emails. This should be your site name.', 'invoicing' ),
414
-                    'std' => esc_attr( get_bloginfo( 'name', 'display' ) ),
412
+                    'name' => __('From Name', 'invoicing'),
413
+                    'desc' => __('Enter the sender\'s name appears in outgoing invoice emails. This should be your site name.', 'invoicing'),
414
+                    'std' => esc_attr(get_bloginfo('name', 'display')),
415 415
                     'type' => 'text',
416 416
                 ),
417 417
                 'email_from' => array(
418 418
                     'id'   => 'email_from',
419
-                    'name' => __( 'From Email', 'invoicing' ),
420
-                    'desc' => sprintf (__( 'Email address to send invoice emails from. This will act as the "from" address. %s If emails are not being sent it may be that your hosting prevents emails being sent if the email domains do not match.%s', 'invoicing' ), $alert_wrapper_start, $alert_wrapper_close),
421
-                    'std' => get_option( 'admin_email' ),
419
+                    'name' => __('From Email', 'invoicing'),
420
+                    'desc' => sprintf(__('Email address to send invoice emails from. This will act as the "from" address. %s If emails are not being sent it may be that your hosting prevents emails being sent if the email domains do not match.%s', 'invoicing'), $alert_wrapper_start, $alert_wrapper_close),
421
+                    'std' => get_option('admin_email'),
422 422
                     'type' => 'text',
423 423
                 ),
424 424
                 'admin_email' => array(
425 425
                     'id'   => 'admin_email',
426
-                    'name' => __( 'Admin Email', 'invoicing' ),
427
-                    'desc' => __( 'Where should we send admin notifications? This will is also act as the "reply-to" address for invoice emails', 'invoicing' ),
428
-                    'std' => get_option( 'admin_email' ),
426
+                    'name' => __('Admin Email', 'invoicing'),
427
+                    'desc' => __('Where should we send admin notifications? This will is also act as the "reply-to" address for invoice emails', 'invoicing'),
428
+                    'std' => get_option('admin_email'),
429 429
                     'type' => 'text',
430 430
                 ),
431 431
                 'overdue_settings_header' => array(
432 432
                     'id'   => 'overdue_settings_header',
433
-                    'name' => '<h3>' . __( 'Due Date Settings', 'invoicing' ) . '</h3>',
433
+                    'name' => '<h3>' . __('Due Date Settings', 'invoicing') . '</h3>',
434 434
                     'type' => 'header',
435 435
                 ),
436 436
                 'overdue_active' => array(
437 437
                     'id'   => 'overdue_active',
438
-                    'name' => __( 'Enable Due Date', 'invoicing' ),
439
-                    'desc' => __( 'Check this to enable due date option for invoices.', 'invoicing' ),
438
+                    'name' => __('Enable Due Date', 'invoicing'),
439
+                    'desc' => __('Check this to enable due date option for invoices.', 'invoicing'),
440 440
                     'type' => 'checkbox',
441 441
                     'std'  => false,
442 442
                 ),
443 443
                 'email_template_header' => array(
444 444
                     'id'   => 'email_template_header',
445
-                    'name' => '<h3>' . __( 'Email Template', 'invoicing' ) . '</h3>',
445
+                    'name' => '<h3>' . __('Email Template', 'invoicing') . '</h3>',
446 446
                     'type' => 'header',
447 447
                 ),
448 448
                 'email_header_image' => array(
449 449
                     'id'   => 'email_header_image',
450
-                    'name' => __( 'Header Image', 'invoicing' ),
451
-                    'desc' => __( 'URL to an image you want to show in the email header. Upload images using the media uploader (Admin > Media).', 'invoicing' ),
450
+                    'name' => __('Header Image', 'invoicing'),
451
+                    'desc' => __('URL to an image you want to show in the email header. Upload images using the media uploader (Admin > Media).', 'invoicing'),
452 452
                     'std' => '',
453 453
                     'type' => 'text',
454 454
                 ),
455 455
                 'email_footer_text' => array(
456 456
                     'id'   => 'email_footer_text',
457
-                    'name' => __( 'Footer Text', 'invoicing' ),
458
-                    'desc' => __( 'The text to appear in the footer of all invoice emails.', 'invoicing' ),
459
-                    'std' => get_bloginfo( 'name', 'display' ) . ' - ' . __( 'Powered by GetPaid', 'invoicing' ),
457
+                    'name' => __('Footer Text', 'invoicing'),
458
+                    'desc' => __('The text to appear in the footer of all invoice emails.', 'invoicing'),
459
+                    'std' => get_bloginfo('name', 'display') . ' - ' . __('Powered by GetPaid', 'invoicing'),
460 460
                     'type' => 'textarea',
461 461
                     'class' => 'regular-text',
462 462
                     'rows' => 2,
@@ -464,29 +464,29 @@  discard block
 block discarded – undo
464 464
                 ),
465 465
                 'email_base_color' => array(
466 466
                     'id'   => 'email_base_color',
467
-                    'name' => __( 'Base Color', 'invoicing' ),
468
-                    'desc' => __( 'The base color for invoice email template. Default <code>#557da2</code>.', 'invoicing' ),
467
+                    'name' => __('Base Color', 'invoicing'),
468
+                    'desc' => __('The base color for invoice email template. Default <code>#557da2</code>.', 'invoicing'),
469 469
                     'std' => '#557da2',
470 470
                     'type' => 'color',
471 471
                 ),
472 472
                 'email_background_color' => array(
473 473
                     'id'   => 'email_background_color',
474
-                    'name' => __( 'Background Color', 'invoicing' ),
475
-                    'desc' => __( 'The background color of email template. Default <code>#f5f5f5</code>.', 'invoicing' ),
474
+                    'name' => __('Background Color', 'invoicing'),
475
+                    'desc' => __('The background color of email template. Default <code>#f5f5f5</code>.', 'invoicing'),
476 476
                     'std' => '#f5f5f5',
477 477
                     'type' => 'color',
478 478
                 ),
479 479
                 'email_body_background_color' => array(
480 480
                     'id'   => 'email_body_background_color',
481
-                    'name' => __( 'Body Background Color', 'invoicing' ),
482
-                    'desc' => __( 'The main body background color of email template. Default <code>#fdfdfd</code>.', 'invoicing' ),
481
+                    'name' => __('Body Background Color', 'invoicing'),
482
+                    'desc' => __('The main body background color of email template. Default <code>#fdfdfd</code>.', 'invoicing'),
483 483
                     'std' => '#fdfdfd',
484 484
                     'type' => 'color',
485 485
                 ),
486 486
                 'email_text_color' => array(
487 487
                     'id'   => 'email_text_color',
488
-                    'name' => __( 'Body Text Color', 'invoicing' ),
489
-                    'desc' => __( 'The main body text color. Default <code>#505050</code>.', 'invoicing' ),
488
+                    'name' => __('Body Text Color', 'invoicing'),
489
+                    'desc' => __('The main body text color. Default <code>#505050</code>.', 'invoicing'),
490 490
                     'std' => '#505050',
491 491
                     'type' => 'color',
492 492
                 ),
@@ -501,7 +501,7 @@  discard block
 block discarded – undo
501 501
     ),
502 502
 
503 503
     // Integrations.
504
-    'integrations' => wp_list_pluck( getpaid_get_integration_settings(), 'settings', 'id' ),
504
+    'integrations' => wp_list_pluck(getpaid_get_integration_settings(), 'settings', 'id'),
505 505
 
506 506
     /** Privacy Settings */
507 507
     'privacy' => apply_filters('wpinv_settings_privacy',
@@ -509,17 +509,17 @@  discard block
 block discarded – undo
509 509
             'main' => array(
510 510
                 'invoicing_privacy_policy_settings' => array(
511 511
                     'id'   => 'invoicing_privacy_policy_settings',
512
-                    'name' => '<h3>' . __( 'Privacy Policy', 'invoicing' ) . '</h3>',
512
+                    'name' => '<h3>' . __('Privacy Policy', 'invoicing') . '</h3>',
513 513
                     'type' => 'header',
514 514
                 ),
515 515
                 'privacy_page' => array(
516 516
                     'id'          => 'privacy_page',
517
-                    'name'        => __( 'Privacy Page', 'invoicing' ),
518
-                    'desc'        => __( 'If no privacy policy page set in Settings->Privacy default settings, this page will be used on checkout page.', 'invoicing' ),
517
+                    'name'        => __('Privacy Page', 'invoicing'),
518
+                    'desc'        => __('If no privacy policy page set in Settings->Privacy default settings, this page will be used on checkout page.', 'invoicing'),
519 519
                     'type'        => 'select',
520
-                    'options'     => wpinv_get_pages( true,  __( 'Select a page', 'invoicing' )),
520
+                    'options'     => wpinv_get_pages(true, __('Select a page', 'invoicing')),
521 521
                     'class'       => 'wpi_select2',
522
-                    'placeholder' => __( 'Select a page', 'invoicing' ),
522
+                    'placeholder' => __('Select a page', 'invoicing'),
523 523
                 ),
524 524
             ),
525 525
         )
@@ -530,19 +530,19 @@  discard block
 block discarded – undo
530 530
             'main' => array(
531 531
                 'invoice_number_format_settings' => array(
532 532
                     'id'   => 'invoice_number_format_settings',
533
-                    'name' => '<h3>' . __( 'Invoice Number', 'invoicing' ) . '</h3>',
533
+                    'name' => '<h3>' . __('Invoice Number', 'invoicing') . '</h3>',
534 534
                     'type' => 'header',
535 535
                 ),
536 536
                 'sequential_invoice_number' => array(
537 537
                     'id'   => 'sequential_invoice_number',
538
-                    'name' => __( 'Sequential Invoice Numbers', 'invoicing' ),
539
-                    'desc' => __('Check this box to enable sequential invoice numbers.', 'invoicing' ) . $reset_number,
538
+                    'name' => __('Sequential Invoice Numbers', 'invoicing'),
539
+                    'desc' => __('Check this box to enable sequential invoice numbers.', 'invoicing') . $reset_number,
540 540
                     'type' => 'checkbox',
541 541
                 ),
542 542
                 'invoice_sequence_start' => array(
543 543
                     'id'   => 'invoice_sequence_start',
544
-                    'name' => __( 'Sequential Starting Number', 'invoicing' ),
545
-                    'desc' => __( 'The number at which the invoice number sequence should begin.', 'invoicing' ) . $last_number,
544
+                    'name' => __('Sequential Starting Number', 'invoicing'),
545
+                    'desc' => __('The number at which the invoice number sequence should begin.', 'invoicing') . $last_number,
546 546
                     'type' => 'number',
547 547
                     'size' => 'small',
548 548
                     'std'  => '1',
@@ -550,8 +550,8 @@  discard block
 block discarded – undo
550 550
                 ),
551 551
                 'invoice_number_padd' => array(
552 552
                     'id'      => 'invoice_number_padd',
553
-                    'name'    => __( 'Minimum Digits', 'invoicing' ),
554
-                    'desc'    => __( 'If the invoice number has less digits than this number, it is left padded with 0s. Ex: invoice number 108 will padded to 00108 if digits set to 5. The default 0 means no padding.', 'invoicing' ),
553
+                    'name'    => __('Minimum Digits', 'invoicing'),
554
+                    'desc'    => __('If the invoice number has less digits than this number, it is left padded with 0s. Ex: invoice number 108 will padded to 00108 if digits set to 5. The default 0 means no padding.', 'invoicing'),
555 555
                     'type'    => 'select',
556 556
                     'options' => $invoice_number_padd_options,
557 557
                     'std'     => 5,
@@ -559,8 +559,8 @@  discard block
 block discarded – undo
559 559
                 ),
560 560
                 'invoice_number_prefix' => array(
561 561
                     'id' => 'invoice_number_prefix',
562
-                    'name' => __( 'Invoice Number Prefix', 'invoicing' ),
563
-                    'desc' => __( 'Prefix for all invoice numbers. Ex: INV-', 'invoicing' ),
562
+                    'name' => __('Invoice Number Prefix', 'invoicing'),
563
+                    'desc' => __('Prefix for all invoice numbers. Ex: INV-', 'invoicing'),
564 564
                     'type' => 'text',
565 565
                     'size' => 'regular',
566 566
                     'std' => 'INV-',
@@ -568,46 +568,46 @@  discard block
 block discarded – undo
568 568
                 ),
569 569
                 'invoice_number_postfix' => array(
570 570
                     'id' => 'invoice_number_postfix',
571
-                    'name' => __( 'Invoice Number Postfix', 'invoicing' ),
572
-                    'desc' => __( 'Postfix for all invoice numbers.', 'invoicing' ),
571
+                    'name' => __('Invoice Number Postfix', 'invoicing'),
572
+                    'desc' => __('Postfix for all invoice numbers.', 'invoicing'),
573 573
                     'type' => 'text',
574 574
                     'size' => 'regular',
575 575
                     'std' => ''
576 576
                 ),
577 577
                 'checkout_settings' => array(
578 578
                     'id'   => 'checkout_settings',
579
-                    'name' => '<h3>' . __( 'Checkout Settings', 'invoicing' ) . '</h3>',
579
+                    'name' => '<h3>' . __('Checkout Settings', 'invoicing') . '</h3>',
580 580
                     'type' => 'header',
581 581
                 ),
582 582
                 'disable_new_user_emails' => array(
583 583
                     'id'   => 'disable_new_user_emails',
584
-                    'name' => __( 'Disable new user emails', 'invoicing' ),
585
-                    'desc' => __( 'Do not send an email to customers when a new user account is created for them.', 'invoicing' ),
584
+                    'name' => __('Disable new user emails', 'invoicing'),
585
+                    'desc' => __('Do not send an email to customers when a new user account is created for them.', 'invoicing'),
586 586
                     'type' => 'checkbox',
587 587
                 ),
588 588
                 'login_to_checkout' => array(
589 589
                     'id'   => 'login_to_checkout',
590
-                    'name' => __( 'Require Login To Checkout', 'invoicing' ),
591
-                    'desc' => __( 'If ticked then user needs to be logged in to view or pay invoice, can only view or pay their own invoice. If unticked then anyone can view or pay the invoice.', 'invoicing' ),
590
+                    'name' => __('Require Login To Checkout', 'invoicing'),
591
+                    'desc' => __('If ticked then user needs to be logged in to view or pay invoice, can only view or pay their own invoice. If unticked then anyone can view or pay the invoice.', 'invoicing'),
592 592
                     'type' => 'checkbox',
593 593
                 ),
594 594
                 'maxmind_license_key' => array(
595 595
                     'id'   => 'maxmind_license_key',
596
-                    'name' => __( 'MaxMind License Key', 'invoicing' ),
596
+                    'name' => __('MaxMind License Key', 'invoicing'),
597 597
                     'type' => 'text',
598 598
                     'size' => 'regular',
599
-                    'desc' => __( "Enter you license key if you would like to use MaxMind to automatically detect a customer's country.", 'invoicing' ) . ' <a href="https://support.maxmind.com/account-faq/license-keys/how-do-i-generate-a-license-key/">' . __( 'How to generate a free license key.', 'invoicing' ) . '</a>',
599
+                    'desc' => __("Enter you license key if you would like to use MaxMind to automatically detect a customer's country.", 'invoicing') . ' <a href="https://support.maxmind.com/account-faq/license-keys/how-do-i-generate-a-license-key/">' . __('How to generate a free license key.', 'invoicing') . '</a>',
600 600
                 ),
601 601
 
602 602
                 'uninstall_settings' => array(
603 603
                     'id'   => 'uninstall_settings',
604
-                    'name' => '<h3>' . __( 'Uninstall Settings', 'invoicing' ) . '</h3>',
604
+                    'name' => '<h3>' . __('Uninstall Settings', 'invoicing') . '</h3>',
605 605
                     'type' => 'header',
606 606
                 ),
607 607
                 'remove_data_on_unistall' => array(
608 608
                     'id'   => 'remove_data_on_unistall',
609
-                    'name' => __( 'Remove Data on Uninstall?', 'invoicing' ),
610
-                    'desc' => __( 'Check this box if you would like Invoicing plugin to completely remove all of its data when the plugin is deleted/uninstalled.', 'invoicing' ),
609
+                    'name' => __('Remove Data on Uninstall?', 'invoicing'),
610
+                    'desc' => __('Check this box if you would like Invoicing plugin to completely remove all of its data when the plugin is deleted/uninstalled.', 'invoicing'),
611 611
                     'type' => 'checkbox',
612 612
                     'std'  => ''
613 613
                 ),
@@ -616,13 +616,13 @@  discard block
 block discarded – undo
616 616
             'custom-css' => array(
617 617
                 'css_settings' => array(
618 618
                     'id'   => 'css_settings',
619
-                    'name' => '<h3>' . __( 'Custom CSS', 'invoicing' ) . '</h3>',
619
+                    'name' => '<h3>' . __('Custom CSS', 'invoicing') . '</h3>',
620 620
                     'type' => 'header',
621 621
                 ),
622 622
                 'template_custom_css' => array(
623 623
                     'id' => 'template_custom_css',
624
-                    'name' => __( 'Invoice Template CSS', 'invoicing' ),
625
-                    'desc' => __( 'Add CSS to modify appearance of the print invoice page.', 'invoicing' ),
624
+                    'name' => __('Invoice Template CSS', 'invoicing'),
625
+                    'desc' => __('Add CSS to modify appearance of the print invoice page.', 'invoicing'),
626 626
                     'type' => 'textarea',
627 627
                     'class'=> 'regular-text',
628 628
                     'rows' => 10,
@@ -636,8 +636,8 @@  discard block
 block discarded – undo
636 636
             'main' => array(
637 637
                 'tool_settings' => array(
638 638
                     'id'   => 'tool_settings',
639
-                    'name' => '<h3>' . __( 'Diagnostic Tools', 'invoicing' ) . '</h3>',
640
-                    'desc' => __( 'Invoicing diagnostic tools', 'invoicing' ),
639
+                    'name' => '<h3>' . __('Diagnostic Tools', 'invoicing') . '</h3>',
640
+                    'desc' => __('Invoicing diagnostic tools', 'invoicing'),
641 641
                     'type' => 'tools',
642 642
                 ),
643 643
             ),
Please login to merge, or discard this patch.