@@ -9,41 +9,41 @@ discard block |
||
9 | 9 | * @version 1.0.19 |
10 | 10 | */ |
11 | 11 | |
12 | -defined( 'ABSPATH' ) || exit; |
|
12 | +defined('ABSPATH') || exit; |
|
13 | 13 | |
14 | 14 | return array( |
15 | 15 | |
16 | 16 | array( |
17 | 17 | 'type' => 'heading', |
18 | - 'name' => __( 'Heading', 'invoicing' ), |
|
18 | + 'name' => __('Heading', 'invoicing'), |
|
19 | 19 | 'defaults' => array( |
20 | 20 | 'level' => 'h2', |
21 | - 'text' => __( 'Heading', 'invoicing' ), |
|
21 | + 'text' => __('Heading', 'invoicing'), |
|
22 | 22 | ) |
23 | 23 | ), |
24 | 24 | |
25 | 25 | array( |
26 | 26 | 'type' => 'paragraph', |
27 | - 'name' => __( 'Paragraph', 'invoicing' ), |
|
27 | + 'name' => __('Paragraph', 'invoicing'), |
|
28 | 28 | 'defaults' => array( |
29 | - 'text' => __( 'Paragraph text', 'invoicing' ), |
|
29 | + 'text' => __('Paragraph text', 'invoicing'), |
|
30 | 30 | ) |
31 | 31 | ), |
32 | 32 | |
33 | 33 | array( |
34 | 34 | 'type' => 'alert', |
35 | - 'name' => __( 'Alert', 'invoicing' ), |
|
35 | + 'name' => __('Alert', 'invoicing'), |
|
36 | 36 | 'defaults' => array( |
37 | 37 | 'value' => '', |
38 | 38 | 'class' => 'alert-warning', |
39 | - 'text' => __( 'Alert', 'invoicing' ), |
|
39 | + 'text' => __('Alert', 'invoicing'), |
|
40 | 40 | 'dismissible' => false, |
41 | 41 | ) |
42 | 42 | ), |
43 | 43 | |
44 | 44 | array( |
45 | 45 | 'type' => 'separator', |
46 | - 'name' => __( 'Separator', 'invoicing' ), |
|
46 | + 'name' => __('Separator', 'invoicing'), |
|
47 | 47 | 'defaults' => array( |
48 | 48 | 'value' => '', |
49 | 49 | ), |
@@ -51,11 +51,11 @@ discard block |
||
51 | 51 | |
52 | 52 | array( |
53 | 53 | 'type' => 'text', |
54 | - 'name' => __( 'Text Input', 'invoicing' ), |
|
54 | + 'name' => __('Text Input', 'invoicing'), |
|
55 | 55 | 'defaults' => array( |
56 | - 'placeholder' => __( 'Enter some text', 'invoicing' ), |
|
56 | + 'placeholder' => __('Enter some text', 'invoicing'), |
|
57 | 57 | 'value' => '', |
58 | - 'label' => __( 'Field Label', 'invoicing' ), |
|
58 | + 'label' => __('Field Label', 'invoicing'), |
|
59 | 59 | 'description' => '', |
60 | 60 | 'required' => false, |
61 | 61 | ) |
@@ -63,11 +63,11 @@ discard block |
||
63 | 63 | |
64 | 64 | array( |
65 | 65 | 'type' => 'textarea', |
66 | - 'name' => __( 'Textarea', 'invoicing' ), |
|
66 | + 'name' => __('Textarea', 'invoicing'), |
|
67 | 67 | 'defaults' => array( |
68 | - 'placeholder' => __( 'Enter your text here', 'invoicing' ), |
|
68 | + 'placeholder' => __('Enter your text here', 'invoicing'), |
|
69 | 69 | 'value' => '', |
70 | - 'label' => __( 'Textarea Label', 'invoicing' ), |
|
70 | + 'label' => __('Textarea Label', 'invoicing'), |
|
71 | 71 | 'description' => '', |
72 | 72 | 'required' => false, |
73 | 73 | ) |
@@ -75,27 +75,27 @@ discard block |
||
75 | 75 | |
76 | 76 | array( |
77 | 77 | 'type' => 'select', |
78 | - 'name' => __( 'Dropdown', 'invoicing' ), |
|
78 | + 'name' => __('Dropdown', 'invoicing'), |
|
79 | 79 | 'defaults' => array( |
80 | - 'placeholder' => __( 'Select a value', 'invoicing' ), |
|
80 | + 'placeholder' => __('Select a value', 'invoicing'), |
|
81 | 81 | 'value' => '', |
82 | - 'label' => __( 'Dropdown Label', 'invoicing' ), |
|
82 | + 'label' => __('Dropdown Label', 'invoicing'), |
|
83 | 83 | 'description' => '', |
84 | 84 | 'required' => false, |
85 | 85 | 'options' => array( |
86 | - esc_attr__( 'Option One', 'invoicing' ), |
|
87 | - esc_attr__( 'Option Two', 'invoicing' ), |
|
88 | - esc_attr__( 'Option Three', 'invoicing' ) |
|
86 | + esc_attr__('Option One', 'invoicing'), |
|
87 | + esc_attr__('Option Two', 'invoicing'), |
|
88 | + esc_attr__('Option Three', 'invoicing') |
|
89 | 89 | ), |
90 | 90 | ) |
91 | 91 | ), |
92 | 92 | |
93 | 93 | array( |
94 | 94 | 'type' => 'checkbox', |
95 | - 'name' => __( 'Checkbox', 'invoicing' ), |
|
95 | + 'name' => __('Checkbox', 'invoicing'), |
|
96 | 96 | 'defaults' => array( |
97 | 97 | 'value' => '', |
98 | - 'label' => __( 'Checkbox Label', 'invoicing' ), |
|
98 | + 'label' => __('Checkbox Label', 'invoicing'), |
|
99 | 99 | 'description' => '', |
100 | 100 | 'required' => false, |
101 | 101 | ) |
@@ -103,23 +103,23 @@ discard block |
||
103 | 103 | |
104 | 104 | array( |
105 | 105 | 'type' => 'radio', |
106 | - 'name' => __( 'Radio', 'invoicing' ), |
|
106 | + 'name' => __('Radio', 'invoicing'), |
|
107 | 107 | 'defaults' => array( |
108 | - 'label' => __( 'Select one choice', 'invoicing' ), |
|
108 | + 'label' => __('Select one choice', 'invoicing'), |
|
109 | 109 | 'options' => array( |
110 | - esc_attr__( 'Choice One', 'invoicing' ), |
|
111 | - esc_attr__( 'Choice Two', 'invoicing' ), |
|
112 | - esc_attr__( 'Choice Three', 'invoicing' ) |
|
110 | + esc_attr__('Choice One', 'invoicing'), |
|
111 | + esc_attr__('Choice Two', 'invoicing'), |
|
112 | + esc_attr__('Choice Three', 'invoicing') |
|
113 | 113 | ), |
114 | 114 | ) |
115 | 115 | ), |
116 | 116 | |
117 | 117 | array( |
118 | 118 | 'type' => 'date', |
119 | - 'name' => __( 'Date', 'invoicing' ), |
|
119 | + 'name' => __('Date', 'invoicing'), |
|
120 | 120 | 'defaults' => array( |
121 | 121 | 'value' => '', |
122 | - 'label' => __( 'Date', 'invoicing' ), |
|
122 | + 'label' => __('Date', 'invoicing'), |
|
123 | 123 | 'description' => '', |
124 | 124 | 'required' => false, |
125 | 125 | ) |
@@ -127,10 +127,10 @@ discard block |
||
127 | 127 | |
128 | 128 | array( |
129 | 129 | 'type' => 'time', |
130 | - 'name' => __( 'Time', 'invoicing' ), |
|
130 | + 'name' => __('Time', 'invoicing'), |
|
131 | 131 | 'defaults' => array( |
132 | 132 | 'value' => '', |
133 | - 'label' => __( 'Time', 'invoicing' ), |
|
133 | + 'label' => __('Time', 'invoicing'), |
|
134 | 134 | 'description' => '', |
135 | 135 | 'required' => false, |
136 | 136 | ) |
@@ -138,11 +138,11 @@ discard block |
||
138 | 138 | |
139 | 139 | array( |
140 | 140 | 'type' => 'number', |
141 | - 'name' => __( 'Number', 'invoicing' ), |
|
141 | + 'name' => __('Number', 'invoicing'), |
|
142 | 142 | 'defaults' => array( |
143 | 143 | 'placeholder' => '', |
144 | 144 | 'value' => '', |
145 | - 'label' => __( 'Number', 'invoicing' ), |
|
145 | + 'label' => __('Number', 'invoicing'), |
|
146 | 146 | 'description' => '', |
147 | 147 | 'required' => false, |
148 | 148 | ) |
@@ -150,11 +150,11 @@ discard block |
||
150 | 150 | |
151 | 151 | array( |
152 | 152 | 'type' => 'website', |
153 | - 'name' => __( 'Website', 'invoicing' ), |
|
153 | + 'name' => __('Website', 'invoicing'), |
|
154 | 154 | 'defaults' => array( |
155 | 155 | 'placeholder' => 'http://example.com', |
156 | 156 | 'value' => '', |
157 | - 'label' => __( 'Website', 'invoicing' ), |
|
157 | + 'label' => __('Website', 'invoicing'), |
|
158 | 158 | 'description' => '', |
159 | 159 | 'required' => false, |
160 | 160 | ) |
@@ -162,11 +162,11 @@ discard block |
||
162 | 162 | |
163 | 163 | array( |
164 | 164 | 'type' => 'email', |
165 | - 'name' => __( 'Email', 'invoicing' ), |
|
165 | + 'name' => __('Email', 'invoicing'), |
|
166 | 166 | 'defaults' => array( |
167 | 167 | 'placeholder' => '[email protected]', |
168 | 168 | 'value' => '', |
169 | - 'label' => __( 'Email Address', 'invoicing' ), |
|
169 | + 'label' => __('Email Address', 'invoicing'), |
|
170 | 170 | 'description' => '', |
171 | 171 | 'required' => false, |
172 | 172 | ) |
@@ -174,31 +174,31 @@ discard block |
||
174 | 174 | |
175 | 175 | array( |
176 | 176 | 'type' => 'file_upload', |
177 | - 'name' => __( 'File Upload', 'invoicing' ), |
|
177 | + 'name' => __('File Upload', 'invoicing'), |
|
178 | 178 | 'defaults' => array( |
179 | 179 | 'value' => '', |
180 | - 'label' => __( 'Upload File', 'invoicing' ), |
|
180 | + 'label' => __('Upload File', 'invoicing'), |
|
181 | 181 | 'description' => '', |
182 | 182 | 'required' => false, |
183 | 183 | 'max_file_num' => 1, |
184 | - 'file_types' => array( 'jpg|jpeg|jpe', 'gif', 'png' ), |
|
184 | + 'file_types' => array('jpg|jpeg|jpe', 'gif', 'png'), |
|
185 | 185 | ) |
186 | 186 | ), |
187 | 187 | |
188 | 188 | array( |
189 | 189 | 'type' => 'address', |
190 | - 'name' => __( 'Address', 'invoicing' ), |
|
190 | + 'name' => __('Address', 'invoicing'), |
|
191 | 191 | 'defaults' => array( |
192 | 192 | |
193 | 193 | 'address_type' => 'billing', |
194 | - 'billing_address_title' => __( 'Billing Address', 'invoicing' ), |
|
195 | - 'shipping_address_title' => __( 'Shipping Address', 'invoicing' ), |
|
196 | - 'shipping_address_toggle' => __( 'Same billing & shipping address.', 'invoicing' ), |
|
194 | + 'billing_address_title' => __('Billing Address', 'invoicing'), |
|
195 | + 'shipping_address_title' => __('Shipping Address', 'invoicing'), |
|
196 | + 'shipping_address_toggle' => __('Same billing & shipping address.', 'invoicing'), |
|
197 | 197 | 'fields' => array( |
198 | 198 | array( |
199 | 199 | 'placeholder' => 'Jon', |
200 | 200 | 'value' => '', |
201 | - 'label' => __( 'First Name', 'invoicing' ), |
|
201 | + 'label' => __('First Name', 'invoicing'), |
|
202 | 202 | 'description' => '', |
203 | 203 | 'required' => false, |
204 | 204 | 'visible' => true, |
@@ -209,7 +209,7 @@ discard block |
||
209 | 209 | array( |
210 | 210 | 'placeholder' => 'Snow', |
211 | 211 | 'value' => '', |
212 | - 'label' => __( 'Last Name', 'invoicing' ), |
|
212 | + 'label' => __('Last Name', 'invoicing'), |
|
213 | 213 | 'description' => '', |
214 | 214 | 'required' => false, |
215 | 215 | 'visible' => true, |
@@ -220,7 +220,7 @@ discard block |
||
220 | 220 | array( |
221 | 221 | 'placeholder' => '', |
222 | 222 | 'value' => '', |
223 | - 'label' => __( 'Address', 'invoicing' ), |
|
223 | + 'label' => __('Address', 'invoicing'), |
|
224 | 224 | 'description' => '', |
225 | 225 | 'required' => false, |
226 | 226 | 'visible' => true, |
@@ -231,7 +231,7 @@ discard block |
||
231 | 231 | array( |
232 | 232 | 'placeholder' => '', |
233 | 233 | 'value' => '', |
234 | - 'label' => __( 'City', 'invoicing' ), |
|
234 | + 'label' => __('City', 'invoicing'), |
|
235 | 235 | 'description' => '', |
236 | 236 | 'required' => false, |
237 | 237 | 'visible' => true, |
@@ -240,9 +240,9 @@ discard block |
||
240 | 240 | ), |
241 | 241 | |
242 | 242 | array( |
243 | - 'placeholder' => __( 'Select your country' ), |
|
243 | + 'placeholder' => __('Select your country'), |
|
244 | 244 | 'value' => '', |
245 | - 'label' => __( 'Country', 'invoicing' ), |
|
245 | + 'label' => __('Country', 'invoicing'), |
|
246 | 246 | 'description' => '', |
247 | 247 | 'required' => false, |
248 | 248 | 'visible' => true, |
@@ -251,9 +251,9 @@ discard block |
||
251 | 251 | ), |
252 | 252 | |
253 | 253 | array( |
254 | - 'placeholder' => __( 'Choose a state', 'invoicing' ), |
|
254 | + 'placeholder' => __('Choose a state', 'invoicing'), |
|
255 | 255 | 'value' => '', |
256 | - 'label' => __( 'State / Province', 'invoicing' ), |
|
256 | + 'label' => __('State / Province', 'invoicing'), |
|
257 | 257 | 'description' => '', |
258 | 258 | 'required' => false, |
259 | 259 | 'visible' => true, |
@@ -264,7 +264,7 @@ discard block |
||
264 | 264 | array( |
265 | 265 | 'placeholder' => '', |
266 | 266 | 'value' => '', |
267 | - 'label' => __( 'ZIP / Postcode', 'invoicing' ), |
|
267 | + 'label' => __('ZIP / Postcode', 'invoicing'), |
|
268 | 268 | 'description' => '', |
269 | 269 | 'required' => false, |
270 | 270 | 'visible' => true, |
@@ -275,7 +275,7 @@ discard block |
||
275 | 275 | array( |
276 | 276 | 'placeholder' => '', |
277 | 277 | 'value' => '', |
278 | - 'label' => __( 'Phone', 'invoicing' ), |
|
278 | + 'label' => __('Phone', 'invoicing'), |
|
279 | 279 | 'description' => '', |
280 | 280 | 'required' => false, |
281 | 281 | 'visible' => true, |
@@ -286,7 +286,7 @@ discard block |
||
286 | 286 | array( |
287 | 287 | 'placeholder' => '', |
288 | 288 | 'value' => '', |
289 | - 'label' => __( 'Company', 'invoicing' ), |
|
289 | + 'label' => __('Company', 'invoicing'), |
|
290 | 290 | 'description' => '', |
291 | 291 | 'required' => false, |
292 | 292 | 'visible' => false, |
@@ -297,7 +297,7 @@ discard block |
||
297 | 297 | array( |
298 | 298 | 'placeholder' => '', |
299 | 299 | 'value' => '', |
300 | - 'label' => __( 'Company ID', 'invoicing' ), |
|
300 | + 'label' => __('Company ID', 'invoicing'), |
|
301 | 301 | 'description' => '', |
302 | 302 | 'required' => false, |
303 | 303 | 'visible' => false, |
@@ -308,7 +308,7 @@ discard block |
||
308 | 308 | array( |
309 | 309 | 'placeholder' => '', |
310 | 310 | 'value' => '', |
311 | - 'label' => __( 'VAT Number', 'invoicing' ), |
|
311 | + 'label' => __('VAT Number', 'invoicing'), |
|
312 | 312 | 'description' => '', |
313 | 313 | 'required' => false, |
314 | 314 | 'visible' => false, |
@@ -321,11 +321,11 @@ discard block |
||
321 | 321 | |
322 | 322 | array( |
323 | 323 | 'type' => 'billing_email', |
324 | - 'name' => __( 'Billing Email', 'invoicing' ), |
|
324 | + 'name' => __('Billing Email', 'invoicing'), |
|
325 | 325 | 'defaults' => array( |
326 | 326 | 'placeholder' => '[email protected]', |
327 | 327 | 'value' => '', |
328 | - 'label' => __( 'Billing Email', 'invoicing' ), |
|
328 | + 'label' => __('Billing Email', 'invoicing'), |
|
329 | 329 | 'description' => '', |
330 | 330 | 'premade' => true, |
331 | 331 | ) |
@@ -333,18 +333,18 @@ discard block |
||
333 | 333 | |
334 | 334 | array( |
335 | 335 | 'type' => 'discount', |
336 | - 'name' => __( 'Discount Input', 'invoicing' ), |
|
336 | + 'name' => __('Discount Input', 'invoicing'), |
|
337 | 337 | 'defaults' => array( |
338 | 338 | 'value' => '', |
339 | - 'input_label' => __( 'Coupon Code', 'invoicing' ), |
|
340 | - 'button_label' => __( 'Apply Coupon', 'invoicing' ), |
|
341 | - 'description' => __( 'Have a discount code? Enter it above.', 'invoicing' ), |
|
339 | + 'input_label' => __('Coupon Code', 'invoicing'), |
|
340 | + 'button_label' => __('Apply Coupon', 'invoicing'), |
|
341 | + 'description' => __('Have a discount code? Enter it above.', 'invoicing'), |
|
342 | 342 | ) |
343 | 343 | ), |
344 | 344 | |
345 | 345 | array( |
346 | 346 | 'type' => 'items', |
347 | - 'name' => __( 'Items', 'invoicing' ), |
|
347 | + 'name' => __('Items', 'invoicing'), |
|
348 | 348 | 'defaults' => array( |
349 | 349 | 'value' => '', |
350 | 350 | 'items_type' => 'total', |
@@ -356,22 +356,22 @@ discard block |
||
356 | 356 | |
357 | 357 | array( |
358 | 358 | 'type' => 'price_input', |
359 | - 'name' => __( 'Price Input', 'invoicing' ), |
|
359 | + 'name' => __('Price Input', 'invoicing'), |
|
360 | 360 | 'defaults' => array( |
361 | 361 | 'placeholder' => wpinv_format_amount(0), |
362 | 362 | 'value' => wpinv_format_amount(0), |
363 | 363 | 'minimum' => wpinv_format_amount(0), |
364 | - 'label' => __( 'Enter Amount', 'invoicing' ), |
|
364 | + 'label' => __('Enter Amount', 'invoicing'), |
|
365 | 365 | 'description' => '', |
366 | 366 | ) |
367 | 367 | ), |
368 | 368 | |
369 | 369 | array( |
370 | 370 | 'type' => 'price_select', |
371 | - 'name' => __( 'Price Select', 'invoicing' ), |
|
371 | + 'name' => __('Price Select', 'invoicing'), |
|
372 | 372 | 'defaults' => array( |
373 | 373 | 'description' => '', |
374 | - 'label' => __( 'Select Amount', 'invoicing' ), |
|
374 | + 'label' => __('Select Amount', 'invoicing'), |
|
375 | 375 | 'options' => 'Option 1|10, Option 2|20', |
376 | 376 | 'placeholder' => '', |
377 | 377 | 'select_type' => 'select', |
@@ -380,39 +380,39 @@ discard block |
||
380 | 380 | |
381 | 381 | array( |
382 | 382 | 'type' => 'pay_button', |
383 | - 'name' => __( 'Payment Button', 'invoicing' ), |
|
383 | + 'name' => __('Payment Button', 'invoicing'), |
|
384 | 384 | 'defaults' => array( |
385 | 385 | 'value' => '', |
386 | 386 | 'class' => 'btn-primary', |
387 | - 'label' => __( 'Pay %price% »', 'invoicing' ), |
|
388 | - 'free' => __( 'Continue »', 'invoicing' ), |
|
389 | - 'description' => __( 'By continuing with our payment, you are agreeing to our privacy policy and terms of service.', 'invoicing' ), |
|
387 | + 'label' => __('Pay %price% »', 'invoicing'), |
|
388 | + 'free' => __('Continue »', 'invoicing'), |
|
389 | + 'description' => __('By continuing with our payment, you are agreeing to our privacy policy and terms of service.', 'invoicing'), |
|
390 | 390 | 'premade' => true, |
391 | 391 | ) |
392 | 392 | ), |
393 | 393 | |
394 | 394 | array( |
395 | 395 | 'type' => 'gateway_select', |
396 | - 'name' => __( 'Gateway Select', 'invoicing' ), |
|
396 | + 'name' => __('Gateway Select', 'invoicing'), |
|
397 | 397 | 'defaults' => array( |
398 | - 'text' => __( 'Select Payment Method', 'invoicing' ), |
|
398 | + 'text' => __('Select Payment Method', 'invoicing'), |
|
399 | 399 | 'premade' => true, |
400 | 400 | ) |
401 | 401 | ), |
402 | 402 | |
403 | 403 | array( |
404 | 404 | 'type' => 'total_payable', |
405 | - 'name' => __( 'Total Payable', 'invoicing' ), |
|
405 | + 'name' => __('Total Payable', 'invoicing'), |
|
406 | 406 | 'defaults' => array( |
407 | - 'text' => __( 'Total to pay:', 'invoicing' ), |
|
407 | + 'text' => __('Total to pay:', 'invoicing'), |
|
408 | 408 | ) |
409 | 409 | ), |
410 | 410 | |
411 | 411 | array( |
412 | 412 | 'type' => 'ip_address', |
413 | - 'name' => __( 'IP Address', 'invoicing' ), |
|
413 | + 'name' => __('IP Address', 'invoicing'), |
|
414 | 414 | 'defaults' => array( |
415 | - 'text' => __( 'Your IP address is:', 'invoicing' ), |
|
415 | + 'text' => __('Your IP address is:', 'invoicing'), |
|
416 | 416 | ) |
417 | 417 | ) |
418 | 418 | ); |